Functions and transformations
Domain and range, one-one functions, inverse functions and their graphs, composite functions and when they exist, and the four graph transformations described in the exact words examiners credit.
mentorriyaz.in
In 30 seconds
- A function sends every input in its domain to exactly one output. The set of outputs is the range.
- Only a one-one function has an inverse. The graph of f⁻¹ is the reflection of the graph of f in y = x, and the domain and range swap over.
- fg(x) means f(g(x)): do g first. It only exists when every output of g is an allowed input for f.
- Transformations: changes outside f act on y in the obvious way; changes inside f act on x in the opposite way. Always name the type ("translation", "stretch", "reflection") with its vector, factor or line.
By the end you can
- Find the range of a function, including quadratics on a restricted domain.
- Decide whether a function is one-one and find its inverse, with the correct domain.
- Form composite functions, decide whether they exist, and find their ranges.
- Describe and apply translations, stretches and reflections, including combinations.
1Domain, range and one-one functions
Key words
Domain — the set of input values (x-values) the function is defined for. It is part of the definition: f(x) = x² for x ≥ 0 is a different function from f(x) = x² for x ∈ ℝ.
Range — the set of output values (y-values) the function actually produces.
One-one function — every output comes from exactly one input. Test: every horizontal line meets the graph at most once.
Many-one function — some output comes from two or more inputs, e.g. f(x) = x² on ℝ, since f(2) = f(−2) = 4.
- Finding a range: sketch the graph over the given domain. For quadratics, complete the square to find the vertex, then check the endpoints of the domain.
- Notation: write the range in terms of f(x) or y, e.g. f(x) ≥ 2, not x ≥ 2. The June 2024 report flagged incomplete range inequalities.
f(x) = x² − 6x + 11 for x ≥ 3. Find the range of f.
- x² − 6x + 11 = (x − 3)² + 2 M1
- the vertex (3, 2) is at the left end of the domain and the graph rises from there
- range: f(x) ≥ 2 A1
f(x) = x² + 4x for x ≤ k. Find the largest value of k for which f is one-one.
- x² + 4x = (x + 2)² − 4, so the vertex is at x = −2 M1
- f is one-one on one side of the vertex only
- largest k: k = −2 A1
2Inverse functions
Finding f⁻¹
- 1 · Write y = f(x). 2 · Rearrange to make x the subject. 3 · Swap x and y (or replace y by x) to get f⁻¹(x). 4 · State the domain of f⁻¹: it is the range of f.
f(x) = x² − 6x + 11 for x ≥ 3. Find f⁻¹(x) and state its domain.
- y = (x − 3)² + 2 ⇒ (x − 3)² = y − 2 M1
- x − 3 = +√(y − 2): take the positive root because x ≥ 3 M1
- f⁻¹(x) = 3 + √(x − 2), for x ≥ 2 A1 B1
- check: f(4) = 3 and f⁻¹(3) = 3 + 1 = 4 ✓
g(x) = (2x + 3)/(x − 1) for x > 1. Find g⁻¹(x).
- y(x − 1) = 2x + 3 ⇒ xy − y = 2x + 3 M1
- xy − 2x = y + 3 ⇒ x(y − 2) = y + 3 ⇒ x = (y + 3)/(y − 2) M1
- g⁻¹(x) = (x + 3)/(x − 2), x > 2 A1 (the range of g is g(x) > 2)
The graph of f⁻¹
- Draw the line y = x on any sketch of f and f⁻¹, and use the same scale on both axes. Examiners deducted marks when the mirror line was missing.
- Where do f and f⁻¹ meet? For an increasing function, any intersection lies on y = x, so you can solve f(x) = x instead of f(x) = f⁻¹(x).
3Composite functions
fg(x) = f(g(x))
- Do the inside function first. fg(x): apply g, then apply f to the result. gf is usually different.
- fg exists only if the range of g lies inside the domain of f.
- Range of fg: find the range of g, then find what f does to that set. Don't just simplify the formula and guess.
f(x) = 2x + 1 and g(x) = x² − 3, both for x ∈ ℝ. Find fg(x) and gf(x), and solve gf(x) = 6.
- fg(x) = f(x² − 3) = 2(x² − 3) + 1 = 2x² − 5 B1
- gf(x) = g(2x + 1) = (2x + 1)² − 3 B1
- (2x + 1)² − 3 = 6 ⇒ (2x + 1)² = 9 ⇒ 2x + 1 = ±3 M1
- x = 1 or x = −2 A1
f(x) = 1/(x − 2) for x > 2 and g(x) = x² + 1 for x ∈ ℝ. Explain why fg does not exist, and find the range of gf.
- range of g is g(x) ≥ 1, but f needs inputs greater than 2 (e.g. g(0) = 1 is not in the domain of f), so fg does not exist B1
- range of f is f(x) > 0, which is inside the domain of g, so gf exists: gf(x) = 1/(x − 2)² + 1 M1
- 1/(x − 2)² takes every positive value, so gf(x) > 1 A1
4Transformations of graphs
The four basic transformations
| Equation | Transformation (use these words) | Effect on a point (x, y) |
|---|---|---|
| y = f(x) + a | translation by the vector 0a | (x, y + a) |
| y = f(x + a) | translation by the vector −a0 | (x − a, y) |
| y = af(x) | stretch parallel to the y-axis, scale factor a | (x, ay) |
| y = f(ax) | stretch parallel to the x-axis, scale factor 1/a | (x/a, y) |
| y = −f(x) | reflection in the x-axis | (x, −y) |
| y = f(−x) | reflection in the y-axis | (−x, y) |
Combinations: order matters
- Vertical and horizontal changes are independent, so their order doesn't matter: y = f(2x) − 3 is a stretch parallel to the x-axis (factor ½) and a translation by 0−3, in either order.
- Two changes in the same direction do depend on order. y = 2f(x) + 3 is "stretch ×2 then translate up 3". y = 2[f(x) + 3] is "translate up 3 then stretch ×2" (the curve ends up 6 higher).
- Work from the equation outwards: for y = af(x) + b, deal with the multiplication before the addition, as you would when calculating.
Describe a sequence of transformations that maps y = x² onto y = 3(x + 1)² − 4.
- translation by −10 gives y = (x + 1)² B1
- stretch parallel to the y-axis, scale factor 3, gives y = 3(x + 1)² B1
- translation by 0−4 gives y = 3(x + 1)² − 4 B1
- (the stretch must come before the downward translation)
The curve y = x² − 4x is reflected in the x-axis and then translated by 30. Find the equation of the new curve.
- reflection: y = −(x² − 4x) B1
- translation by 30: replace x by x − 3 M1
- y = −[(x − 3)² − 4(x − 3)] = −(x² − 10x + 21)
- y = −x² + 10x − 21 A1
Trigonometric functions
- The same rules apply to trig graphs: y = 3 − 2 sin x is y = sin x stretched by factor 2 parallel to the y-axis, reflected in the x-axis, then translated by 03.
- Range of a sin or cos expression: sin x lies between −1 and 1, so 3 − 2 sin x lies between 1 and 5.
Test yourself — cover the answers first
Quick check
- What condition must a function satisfy to have an inverse?
- f(x) = 3x − 2. Find f⁻¹(x).
- What is the domain of f⁻¹ in terms of f?
- Describe the transformation y = f(x) → y = f(x − 5).
- f(x) = x + 4, g(x) = 2x. Find gf(1) and fg(1).
Exam-style
- f(x) = 4 − (x − 2)² for x ≥ 2. (a) State the range of f. (b) Find f⁻¹(x) and its domain. (c) Sketch y = f(x) and y = f⁻¹(x) on one diagram.
- Describe fully two transformations that map y = cos x onto y = 2 cos(x/3).
- f(x) = 1/(x + 1) for x > −1 and g(x) = 2x − 1 for x > a. Find the least value of a for which fg exists.
Show answers
- it must be one-one
- (x + 2)/3
- the range of f
- translation by the vector (5, 0)
- gf(1) = 10; fg(1) = 6
- (a) f(x) ≤ 4
(b) f⁻¹(x) = 2 + √(4 − x), x ≤ 4
(c) reflections of each other in y = x, meeting on that line - stretch parallel to the y-axis, scale factor 2; stretch parallel to the x-axis, scale factor 3
- need 2x − 1 > −1 for every input, so x > 0: a = 0
Send it to me on WhatsApp. I read every message.
Want regular help? Send this to your parent →