The weather app on Elvin’s phone shows a temperature graph for a winter day: each moment of the day has one temperature. One look at the graph answers several questions: when is it warmest and coldest, when is it above zero, when does it rise and when does it fall? These questions can be asked about any function, and the answers are called the properties of the function. In this lesson we learn to find them from the formula, without a graph, and to get new graphs from old ones without calculation.
In “Linear functions and their graphs” we met the idea of a function, in “The quadratic function and its graph” we shifted the parabola, and in “Square roots, nth roots and rational exponents” we saw the graph of y = √x. Now we extend these ideas to any function. This language will be needed for exponential, logarithmic and trigonometric functions and later for the derivative.
Function, domain and range
FunctionDefinition
A rule that assigns to each value of the variable x exactly one value of the variable y: y = f(x). All values that x may take form the domain D(f); all values that y takes form the range E(f).
A function can be given in four ways: by a formula (y = x² − 1), by a table (temperature by the hour), by a graph and in words (“to each natural number, the number of its divisors”). You can also tell whether a curve is the graph of a function: every vertical line must meet it at most once. The circle x² + y² = 25 is not the graph of a function: for x = 3 we get both y = 4 and y = −4.
The domain of a function given by a formula consists of all x for which the formula makes sense: a denominator must not be zero, and the expression under an even root must not be negative (we solved such conditions in detail in “Quadratic inequalities and the interval method”). The range is harder to find. The most reliable method: a number a belongs to E(f) exactly when the equation f(x) = a has at least one solution.
Where
- D(f)
- the domain — the allowed values of x
- E(f)
- the range — the values that y takes
- a
- the number being tested
Express x through a and find for which a this is possible. In simple cases there is a shorter way: estimate the pieces (…)² ≥ 0, √(…) ≥ 0, |…| ≥ 0.
Domain and range
Problem
1) Find the domain of y = √(8 − 2x) + 1/x. Find the range: 2) y = x² − 4x + 7; 3) y = 3 − √(x + 1); 4) y = 4/(x² + 1); 5) y = (2x + 1)/(x − 1).
Show solutionHide solution
Solution
2) Complete the square: y = (x − 2)² + 3 ≥ 3, and y = 3 at x = 2. E = [3, +∞).
3) √(x + 1) takes every non-negative value, so y = 3 − √(x + 1) ≤ 3. E = (−∞, 3].
4) x² + 1 ≥ 1 ⇒ 0 < 4/(x² + 1) ≤ 4, and y = 4 at x = 0. E = (0, 4].
5) (2x + 1)/(x − 1) = a ⇒ 2x + 1 = ax − a ⇒ x(a − 2) = a + 1 ⇒ x = (a + 1)/(a − 2). This is possible when a ≠ 2 (and x ≠ 1 holds too, since a + 1 ≠ a − 2). E = (−∞, 2) ∪ (2, +∞).
Zeros, sign, increasing and decreasing
Zeros and sign intervalsDefinition
The values of x with f(x) = 0 are the zeros of the function: there the graph crosses or touches the x-axis. The intervals where the function keeps its sign are its sign intervals: where f(x) > 0 the graph is above the x-axis, where f(x) < 0 it is below.
Where
- x₁, x₂
- any two values from the interval
- f(x₂) − f(x₁)
- the difference whose sign we study in a proof
For an increasing function a larger argument gives a larger value, and the graph rises from left to right. An increasing or decreasing function takes each value at most once, so the equation f(x) = a has at most one root.
Zeros, sign and proving monotonicity
Problem
1) Find the zeros and sign intervals of f(x) = x³ − 4x.
2) Prove that f(x) = 5 − 2x is decreasing.
3) Prove that f(x) = 1/x is decreasing on (0, +∞).
4) Prove that f(x) = x³ is increasing on the whole number line.
Show solutionHide solution
Solution
2) Let x₁ < x₂. f(x₂) − f(x₁) = (5 − 2x₂) − (5 − 2x₁) = −2(x₂ − x₁) < 0, because x₂ − x₁ > 0. So f(x₂) < f(x₁): the function is decreasing.
3) Let 0 < x₁ < x₂. f(x₂) − f(x₁) = 1/x₂ − 1/x₁ = (x₁ − x₂)/(x₁x₂). The numerator is negative and the denominator positive, so the difference is negative: the function is decreasing.
4) x₂³ − x₁³ = (x₂ − x₁)(x₂² + x₁x₂ + x₁²). The second bracket equals (x₂ + x₁/2)² + ¾x₁² and is positive when x₁ ≠ x₂. So x₁ < x₂ ⇒ x₁³ < x₂³: the function is increasing.
Such proofs are easy only for simple functions. In “Increasing and decreasing functions. Extrema” the derivative will answer the same question for any function in one step.
Even and odd functions. Periodic functions
The graph of y = x² is symmetric about the y-axis, because x and −x give the same value. The graph of y = x³ is symmetric about the origin: opposite the point (2, 8) lies the point (−2, −8). These two kinds of symmetry halve the work: draw the right half of the graph and reflect it.
Where
- D(f)
- −x must also lie in the domain: the domain is symmetric about 0
- f(−x)
- the formula with −x in place of x, simplified
The graph of an even function is symmetric about the y-axis; the graph of an odd function is symmetric about the origin. Most functions are neither even nor odd.
The domain
If the domain is not symmetric about 0, the function is neither even nor odd — you are done.
Compute f(−x)
Replace x with −x and simplify: (−x)² = x², (−x)³ = −x³, |−x| = |x|.
Compare
f(−x) = f(x) — even; f(−x) = −f(x) — odd. If neither holds, show it with one number: for example, f(−1) ≠ f(1) and f(−1) ≠ −f(1).
Even, odd or neither?
Problem
Decide whether the function is even, odd or neither: 1) f(x) = x⁴ − 3x²; 2) f(x) = x³ + 2x; 3) f(x) = x/(x² + 1); 4) f(x) = x² + x; 5) f(x) = √x; 6) f(x) = |x| − x².
Show solutionHide solution
Solution
2) f(−x) = −x³ − 2x = −(x³ + 2x) = −f(x) — odd.
3) f(−x) = −x/(x² + 1) = −f(x) — odd.
4) f(1) = 2, f(−1) = 0: f(−1) ≠ f(1) and f(−1) ≠ −f(1) — neither.
5) D(f) = [0, +∞) is not symmetric — neither.
6) |−x| − (−x)² = |x| − x² = f(x) — even.
Some processes repeat after the same amount of time: the hands of a clock, day and night, the phases of the Moon. In mathematics such functions are called periodic. The most important examples are sin x and cos x, whose period is 2π — we study them in detail in “Trigonometric functions and their graphs”.
Where
- T
- the period: a number T ≠ 0; usually the smallest positive period is given
- x
- any number in the domain (x ± T is in it too)
If T is a period, so are 2T, 3T and −T: f(x + nT) = f(x). The graph is one piece of length T repeated again and again.
Values of a periodic function
Problem
The function f has period 4, f(1) = 3 and f(2) = −1. 1) Find f(9), f(−6) and f(2026). 2) If, in addition, f is odd, find f(7).
Show solutionHide solution
Solution
2) 7 = −1 + 2 · 4 ⇒ f(7) = f(−1) = −f(1) = −3.
Basic functions and graph transformations
You should know the graphs of the four functions below: transformations turn them into many new graphs. The graph of y = k/x is a hyperbola: for k > 0 its branches lie in quadrants I and III, for k < 0 in quadrants II and IV; they come closer and closer to the axes but never meet them.
| Function | D(f) | E(f) | Even/odd | Monotonicity |
|---|---|---|---|---|
| y = k/x (k > 0) | x ≠ 0 | y ≠ 0 | odd | decreasing on (−∞, 0) and on (0, +∞) separately |
| y = √x | [0, +∞) | [0, +∞) | neither | increasing |
| y = |x| | (−∞, +∞) | [0, +∞) | even | decreasing on (−∞, 0], increasing on [0, +∞) |
| y = x³ | (−∞, +∞) | (−∞, +∞) | odd | increasing |
Changing the formula of any y = f(x) a little gives new graphs. The rule is easy to remember: a change made to x acts horizontally and “in reverse”; a change made to the whole function acts vertically and “as written”. We saw the parabola being shifted in “The quadratic function and its graph”; now the rules hold for every function.
Where
- a
- horizontal shift: a > 0 — to the right, a < 0 — to the left
- b
- vertical shift: b > 0 — up, b < 0 — down
Every point moves (x, y) → (x + a, y + b). The domain shifts by a and the range by b.
Shifts
Problem
Say how each graph is obtained and find the domain and range: 1) y = √(x − 2) + 1; 2) y = 2/(x + 1) − 3; 3) y = (x − 1)³ + 2.
Show solutionHide solution
Solution
2) The hyperbola y = 2/x moved 1 unit to the left and 3 units down. The graph approaches the lines x = −1 and y = −3 (they are called asymptotes). D: x ≠ −1, E: y ≠ −3. Check: for x = 0, y = 2 − 3 = −1.
3) The cubic parabola moved 1 unit to the right and 2 units up; its centre of symmetry (0, 0) → (1, 2). D = E = (−∞, +∞).
Where
- k · f(x)
- stretch (k > 1) or compression (0 < k < 1) along the y-axis by the factor k: (x, y) → (x, ky)
- f(kx)
- compression along the x-axis by the factor k (k > 1): (x, y) → (x/k, y)
- −f(x), f(−x)
- reflection in the x-axis and in the y-axis
- |f(x)|
- the parts below the x-axis are reflected upwards; the rest stays
With several transformations, work in order: first those on x (shift, compression), then stretches and reflections, then the vertical shift, and an outer absolute value last.
Stretches, reflections and the absolute value
Problem
1) Compare the graphs of y = 2√x and y = √(4x). 2) Find the domain of y = √(−x). 3) Sketch y = |x² − 4| and find how the number of solutions of |x² − 4| = a depends on a.
Show solutionHide solution
Solution
2) It is the reflection of y = √x in the y-axis: −x ≥ 0 ⇒ D = (−∞, 0].
3) The zeros of the parabola y = x² − 4 are ±2; for −2 < x < 2 it lies below the x-axis. We reflect this part upwards: the vertex (0, −4) → (0, 4). Number of solutions: a < 0 — 0; a = 0 — 2 (x = ±2); 0 < a < 4 — 4; a = 4 — 3 (x = 0 and x = ±2√2); a > 4 — 2.
Interactive
The inverse function
The function y = 2x + 1 computes y from x. Sometimes we need the opposite question: if y is known, what is x? x = (y − 1)/2. This is possible only when f takes each value once — for example, when f is increasing or decreasing. The function y = x² has no inverse on the whole number line: the value y = 4 comes from both x = 2 and x = −2.
Inverse functionDefinition
If f takes each of its values once, the function g that assigns to each y in E(f) the only x with f(x) = y is the inverse function of f. As usual, we call its argument x again: y = g(x).
Where
- g
- the inverse of f, also written f⁻¹
- D, E
- the domain and range swap places in the inverse
If (a, b) lies on the graph of f, then (b, a) lies on the graph of g. So the graphs of mutually inverse functions are symmetric in the line y = x.
Does an inverse exist?
f must take each value once (for example, be increasing or decreasing).
Solve for x
From y = f(x), express x in terms of y.
Swap the letters
Swap x and y: y = g(x).
State the domain and check
D(g) = E(f). Check: g(f(x)) must equal x.
Finding inverse functions
Problem
Find the inverse function: 1) y = 2x + 1; 2) y = √(x − 2); 3) y = x³ − 1; 4) y = x², x ≥ 0.
Show solutionHide solution
Solution
2) D(f) = [2, +∞), E(f) = [0, +∞). y² = x − 2 ⇒ x = y² + 2 ⇒ y = x² + 2, x ≥ 0 — only the right branch of the parabola.
3) x³ = y + 1 ⇒ x = ∛(y + 1) ⇒ y = ∛(x + 1). Check: f(2) = 7, g(7) = ∛8 = 2.
4) For x ≥ 0 the function is increasing; x = √y ⇒ y = √x. The graphs are symmetric in the line y = x. The functions y = aˣ and y = logₐx form the same kind of pair (“Logarithms, their properties and the logarithmic function”).
Interactive
- 1.The domain of y = √(x − 5) is x ≥
- 2.The least value of y = (x + 2)² − 7 is
- 3.The inverse of y = 2x − 6 is y = x/2 +
Remember
- A function assigns exactly one y to each x; D(f) is the set of allowed x, E(f) the set of values taken: a ∈ E(f) ⇔ f(x) = a has a solution.
- Zeros are the roots of f(x) = 0; increasing: x₁ < x₂ ⇒ f(x₁) < f(x₂), decreasing: f(x₁) > f(x₂); a monotonic function takes each value once.
- Even: f(−x) = f(x), the graph is symmetric about the y-axis; odd: f(−x) = −f(x), the graph is symmetric about the origin; the domain must be symmetric.
- Periodic: f(x + T) = f(x); shifting by a whole number of periods does not change the value.
- y = f(x − a) + b — a units right, b units up; k · f(x) — vertical stretch, f(kx) — horizontal compression; −f(x), f(−x) — reflections in the axes; |f(x)| — the part below the x-axis flips up.
- An inverse exists only when f takes each value once: solve for x and swap the letters; D(g) = E(f), and the graphs are symmetric in y = x.