Sub topic 3
Inverse functions and one-to-one checks
This chapter assumes you can solve linear and quadratic equations, plot points on the coordinate plane, and use the laws of logarithms.
Inverse functions and one-to-one checks
A function f has an inverse only if each output comes from exactly one input. Such a function is called one-to-one. The horizontal line test checks this on a graph: if any horizontal line meets the graph twice, no inverse exists over that domain.
To find an inverse, swap x and y, then solve for y. For f(x) = 2x + 3, write y = 2x + 3, swap to get x = 2y + 3, and solve to get f⁻¹(x) = (x − 3)/2. Verify by composing the two functions, which should return x.
def f(x):
return 2 * x + 3
def f_inv(x):
return (x - 3) / 2
for x in [-1, 0, 4.5]:
print(x, f_inv(f(x)) == x)Exponential and logarithmic graphs
The function y = 2^x is increasing and passes through (0, 1). It is one-to-one, so its inverse is y = log₂ x, which passes through (1, 0). The graph of an inverse is the mirror image of the original across the line y = x.
| Function | Passes through | Behaviour |
|---|---|---|
| y = 2^x | (0, 1) | Increasing, always positive |
| y = log₂ x | (1, 0) | Increasing, defined for x > 0 |
Finding maxima and minima from graphs
Read the highest or lowest point of the graph over the given domain. For a parabola, the vertex gives the extreme value. For f(x) = x² − 6x + 5, the vertex is at x = 3 and the minimum value is −4. On a closed interval, also check the endpoints.
Counting solutions by intersecting graphs
Solutions of f(x) = g(x) are the x-coordinates where the two graphs meet. For |x − 2| = x/2, check each case. If x ≥ 2, then x − 2 = x/2 gives x = 4. If x < 2, then 2 − x = x/2 gives x = 4/3. Both values lie in their cases, so the equation has two solutions.
Functional equations: substitution and symmetry
Suppose f(x) + 2f(1/x) = 3x for x ≠ 0. Replace x with 1/x to get f(1/x) + 2f(x) = 3/x. Solve this pair of equations and you get f(x) = 2/x − x. Substitute back to check that the original equation holds.
If f is even, then f(−x) = f(x), so you only need to work out one side of the graph.
Exam strategy: choosing between algebra and graphs
Use algebra when the equation solves quickly. Sketch the graph when the question asks for the number of solutions, or for the extremum of a piecewise or modulus function.
Exercise
How many real solutions does |x − 2| = x/2 have?
Show answer
Two solutions, x = 4/3 and x = 4.