Key ideas
- A function maps each element of the domain to exactly one element of the range.
- A function is one-one if each output comes from only one input. Horizontal line test: every horizontal line cuts the graph at most once.
- Inverse function f⁻¹ (H2 only) exists only if f is one-one. Then:
- D(f⁻¹) = R(f) and R(f⁻¹) = D(f).
- The graph of f⁻¹ is the reflection of f in y = x.
- Composite function fg (H2 only) means "do g first, then f". fg exists only if R(g) ⊆ D(f).
Worked example: inverse (H2 only)
f(x) = 2x + 3, x ∈ ℝ.
Let y = 2x + 3 → x = (y − 3)/2 → f⁻¹(x) = (x − 3)/2, x ∈ ℝ.
Worked example: composite (H2 only)
f(x) = 2x + 3, g(x) = x².
fg(x) = f(x²) = 2x² + 3
gf(x) = g(2x + 3) = (2x + 3)²
Note fg ≠ gf in general.
Worked example: restricting the domain
g(x) = x² is not one-one on ℝ. Restricting the domain to x ≥ 0 makes it one-one, so g⁻¹(x) = √x, x ≥ 0.
Common mistakes
- Writing f⁻¹(x) = 1/f(x) (an inverse is not a reciprocal).
- Doing fg in the wrong order.
- Forgetting to state the domain of f⁻¹.
Try these
- f(x) = (x + 1)/(x − 2), x ≠ 2. Find f⁻¹(x). (H2)
- f(x) = x + 4, g(x) = 3x. Find fg(2) and gf(2).
- Why does f(x) = x² − 4x not have an inverse for x ∈ ℝ? Suggest a domain restriction.
Show answers
- y(x − 2) = x + 1 → x(y − 1) = 2y + 1 → f⁻¹(x) = (2x + 1)/(x − 1), x ≠ 1
- fg(2) = f(6) = 10; gf(2) = g(6) = 18
- It is not one-one (a horizontal line cuts it twice); e.g. restrict to x ≥ 2 (the vertex is at x = 2)