Extended. A function is a machine: put a number in, apply the rule, get one number out. Run the machine backwards for the inverse, or feed one machine into another for a composite.
\(f(a)\) means substitute \(a\) into the rule. \(f^{-1}\) undoes \(f\): write \(y = f(x)\) and rearrange to make \(x\) the subject. \(gf(x) = g(f(x))\): apply \(f\) FIRST, then \(g\).
Fig. 1: f(x) = 2x + 1 and its inverse f⁻¹(x) = (x − 1)/2 are reflections of each other in the line y = x; f(1) = 3, so f⁻¹(3) = 1
Section 01
Function notation.
In the lab's functions tab, type inputs into the function machine and watch the mapping diagram fill in, each arrow joining an input to its output. Change the domain and see the range change with it.
\(f(x) = 3x - 5\) is the rule; \(f(4)\) means put \(x = 4\): \(f(4) = 12 - 5 = 7\).
Domain: the set of input values allowed.
Range: the set of output values produced from the domain.
Mapping diagram: inputs in one column, outputs in another, an arrow from each input to its output.
Worked example Evaluating and solving
\(f(x) = 3x - 5\). Find (a) \(f(-2)\) (b) the value of \(x\) for which \(f(x) = 10\).
(a) \(f(-2) = 3(-2) - 5 = -6 - 5 = -11\).
(b) Set the rule equal to 10: \(3x - 5 = 10\).
\(3x = 15\), so \(x = 5\).
Answer: (a) \(-11\) (b) \(x = 5\)
Worked example Domain and range
\(h(x) = 2x^2 + 3\) has domain \(\{-2, -1, 0, 1, 2\}\). Find the range.
\(h(-2) = 2(4) + 3 = 11\) and \(h(2) = 11\).
\(h(-1) = 2(1) + 3 = 5\) and \(h(1) = 5\).
\(h(0) = 3\).
List each output once.
Answer: Range \(= \{3, 5, 11\}\). (With all real numbers as the domain, the range would be \(h(x) \ge 3\).)
Examiner trap
In \(2x^2\) only the \(x\) is squared: \(h(-2) = 2 \times (-2)^2 + 3 = 2 \times 4 + 3 = 11\), not \((2 \times -2)^2 + 3 = 19\).
Section 02
Inverse functions.
Open the inverse functions tab and drag the blue point along \(y = f(x)\). Its reflection in the line \(y = x\) traces out \(y = f^{-1}(x)\): every input and output swap places.
Worked example A linear inverse
\(f(x) = 3x - 5\). Find \(f^{-1}(x)\).
Write \(y = 3x - 5\).
Make \(x\) the subject: \(y + 5 = 3x\), so \(x = \dfrac{y + 5}{3}\).
Subtract 12 and divide by 3: \(x = \dfrac{5y - 12}{3}\).
Check: \(g(1) = \dfrac{3 \times 5}{5} = 3\), and \(\dfrac{5 \times 3 - 12}{3} = 1\). It undoes \(g\).
Answer: \(g^{-1}(x) = \dfrac{5x - 12}{3}\)
Your turn
\(f(x) = 3x - 5\). Find \(f^{-1}(7)\) without finding \(f^{-1}(x)\).
\(f^{-1}(7)\) is the input that gives 7: solve \(3x - 5 = 7\), so \(x = 4\). Check with \(f^{-1}(x) = \dfrac{x + 5}{3}\): \(\dfrac{12}{3} = 4\).
Examiner trap
\(f^{-1}(x)\) is NOT \(\dfrac{1}{f(x)}\). The \(-1\) means 'inverse', not a power: for \(f(x) = 3x - 5\), \(f^{-1}(x) = \dfrac{x + 5}{3}\), not \(\dfrac{1}{3x - 5}\).
Stage 1 · Learn
Check your understanding
Four quick checks. Each correct answer earns XP and records this skill on your profile.
Quick check+10 XP
\(f(x) = 3x - 5\). Find \(f(4)\).
Quick check+10 XP
What is the domain of a function?
Quick check+10 XP
\(f(x) = x + 6\). What is \(f^{-1}(x)\)?
Quick check+10 XP
\(f(x) = 2x\) and \(g(x) = x + 1\). Find \(gf(3)\).
Section 03
Composite functions.
In the composite functions tab, chain two machines together and swap their order. The output of the first machine becomes the input of the second, and changing the order usually changes the answer.