Inverse Functions
Every question with a fully worked solution.
- Inverse Functions - Video - How To Find The Inverse of a Function Watch
Theory
The inverse function \(f^{-1}\) reverses what \(f\) does. This Year 11 Mathematics Extension 1 page covers one-to-one functions and the horizontal line test, finding \(f^{-1}(x)\) by interchanging \(x\) and \(y\), the domain and range of an inverse, restricting the domain, reflecting in \(y=x\), and solving \(f(x)=f^{-1}(x)\).
A function is one-to-one if each \(y\)-value comes from only one \(x\)-value. The horizontal line test: a function is one-to-one exactly when every horizontal line meets its graph at most once. \(y=x^3\) is one-to-one; \(y=x^2\) is not, because \(y=4\) meets it at \(x=-2\) and \(x=2\).
Only a one-to-one function has an inverse function \(f^{-1}\). It undoes \(f\): if \(f(a)=b\), then \(f^{-1}(b)=a\). To find it, let \(y=f(x)\), interchange \(x\) and \(y\), then make \(y\) the subject.
Interchanging \(x\) and \(y\) turns each point \((a,b)\) into \((b,a)\), so the graph of \(y=f^{-1}(x)\) is the reflection of \(y=f(x)\) in the line \(y=x\). For the same reason the domain of \(f^{-1}\) is the range of \(f\), and the range of \(f^{-1}\) is the domain of \(f\).
If a function is not one-to-one, restrict its domain to a part that is. For a parabola, keep one side of the axis of symmetry: \(y=x^2\) for \(x\ge 0\) has inverse \(y=\sqrt x\). When making \(y\) the subject gives \(\pm\), the range of \(f^{-1}\) (the domain of \(f\)) decides the sign.
A function and its inverse cancel: \(f(f^{-1}(x))=x\) and \(f^{-1}(f(x))=x\). Exponential and logarithmic functions are inverses: \(y=a^x\) and \(y=\log_a x\), and \(y=e^x\) and \(y=\log_e x=\ln x\).
To find where \(y=f(x)\) and \(y=f^{-1}(x)\) meet, solve \(f(x)=f^{-1}(x)\) and keep only the solutions that lie in both domains. If you squared both sides, also check each solution in the original equation (or in the condition the square root needs, such as \(2-x^2\ge 0\) when \(2-x^2=\sqrt{2-x}\)): squaring can bring in extra roots.
Finding the inverse: from \(y=f(x)\), interchange \(x\) and \(y\):
Points and values swap:
A function and its inverse cancel:
Domain and range swap:
| \(f(x)\) | \(f^{-1}(x)\) |
|---|---|
| \(x^3\) | \(\sqrt[3]{x}\) |
| \(x^2,\ x\ge 0\) | \(\sqrt x\) |
| \(a^x\) | \(\log_a x\) |
| \(e^x\) | \(\log_e x\) |
How to find an inverse function
- Check that \(f\) is one-to-one with the horizontal line test. If it is not, restrict the domain (for a parabola, one side of the vertex).
- Write \(y=f(x)\) and interchange \(x\) and \(y\).
- Make \(y\) the subject: undo each operation in reverse order. Use logarithms to undo an exponential, and complete the square or use the quadratic formula for a quadratic.
- Choose the sign of any \(\pm\) using the range of \(f^{-1}\), which is the domain of \(f\).
- State the domain of \(f^{-1}\) (the range of \(f\)) and its range (the domain of \(f\)).
- Check: \(f(f^{-1}(x))=x\), and the graph of \(f^{-1}\) is the reflection of \(f\) in \(y=x\).
Sketching \(y=f^{-1}(x)\)
- Draw \(y=x\) as a dashed line.
- Swap the coordinates of the key points: intercepts, endpoints and turning points.
- Reflect asymptotes too: a horizontal asymptote \(y=c\) becomes a vertical asymptote \(x=c\).
(i) Find \(f^{-1}(x)\).
(ii) Show that \(f\left(f^{-1}(x)\right)=f^{-1}\left(f(x)\right)=x\).
(i) Let \(y=4x-3\). Interchange \(x\) and \(y\), then make \(y\) the subject:
| \(x\) | \(=\) | \(4y-3\) |
| \(4y\) | \(=\) | \(x+3\) |
| \(y\) | \(=\) | \(\dfrac{x+3}{4}\) |
| \(\therefore\ f^{-1}(x)\) | \(=\) | \(\boldsymbol{\dfrac{x+3}{4}}\) |
(ii)
| \(f\left(f^{-1}(x)\right)\) | \(=\) | \(4\left(\dfrac{x+3}{4}\right)-3\) |
| \(\) | \(=\) | \(x+3-3\) |
| \(\) | \(=\) | \(x\) |
| \(f^{-1}\left(f(x)\right)\) | \(=\) | \(\dfrac{(4x-3)+3}{4}\) |
| \(\) | \(=\) | \(\dfrac{4x}{4}\) |
| \(\) | \(=\) | \(x\) |
\(\therefore\ f\left(f^{-1}(x)\right)=f^{-1}\left(f(x)\right)=x\). The two lines are reflections in \(y=x\).
(i) Find \(f^{-1}(x)\).
(ii) State the domain and range of \(f^{-1}(x)\).
(iii) The point \((1,4)\) lies on \(y=f(x)\). Write down a point on \(y=f^{-1}(x)\).
(i) Let \(y=3^x+1\). Interchange \(x\) and \(y\):
| \(x\) | \(=\) | \(3^y+1\) |
| \(3^y\) | \(=\) | \(x-1\) |
| \(y\) | \(=\) | \(\log_3(x-1)\) |
| \(\therefore\ f^{-1}(x)\) | \(=\) | \(\boldsymbol{\log_3(x-1)}\) |
(ii) \(f\) has domain all real \(x\). Since \(3^x>0\), its range is \(y>1\). Swap them:
| \(\text{Domain of } f^{-1}:\) | \(\) | \(x>1\) |
| \(\text{Range of } f^{-1}:\) | \(\) | \(\text{all real } y\) |
(iii) Swap the coordinates: \(\boldsymbol{(4,1)}\). Check: \(\log_3(4-1)=\log_3 3=1\).
The asymptote \(y=1\) of \(y=f(x)\) reflects to the asymptote \(x=1\) of \(y=f^{-1}(x)\).
(i) Use the horizontal line test to explain why \(f(x)\) has no inverse function over all real \(x\).
(ii) State the largest domain containing \(x=0\) for which \(f(x)\) has an inverse function.
(iii) For this domain, find \(f^{-1}(x)\) and state its domain and range.
(i) \(f(0)=5\) and \(f(-6)=36-36+5=5\). The line \(y=5\) meets the parabola twice, so \(f\) is not one-to-one and has no inverse function.
(ii) Complete the square:
| \(f(x)\) | \(=\) | \((x+3)^2-4\) |
The vertex is \((-3,-4)\). Keep one side of the axis \(x=-3\). The side containing \(x=0\) is \(\boldsymbol{x\ge -3}\).
(iii) Let \(y=(x+3)^2-4\). Interchange \(x\) and \(y\):
| \(x\) | \(=\) | \((y+3)^2-4\) |
| \((y+3)^2\) | \(=\) | \(x+4\) |
| \(y+3\) | \(=\) | \(\pm\sqrt{x+4}\) |
| \(y\) | \(=\) | \(-3\pm\sqrt{x+4}\) |
Range of \(f^{-1}\) = domain of \(f\): \(y\ge -3\), so take the positive root.
| \(\therefore\ f^{-1}(x)\) | \(=\) | \(\boldsymbol{-3+\sqrt{x+4}}\) |
Domain of \(f^{-1}\) = range of \(f\): \(x\ge -4\). Range of \(f^{-1}\): \(y\ge -3\).
(i) Find \(f^{-1}(x)\) and state its domain and range.
(ii) Find the coordinates of the point where \(y=f(x)\) and \(y=f^{-1}(x)\) meet.
(i) Let \(y=\dfrac{2}{x+1}\). Interchange \(x\) and \(y\):
| \(x\) | \(=\) | \(\dfrac{2}{y+1}\) |
| \(y+1\) | \(=\) | \(\dfrac{2}{x}\) |
| \(\therefore\ f^{-1}(x)\) | \(=\) | \(\boldsymbol{\dfrac{2}{x}-1}\) |
For \(x>-1\), \(x+1>0\), so \(f(x)>0\): the range of \(f\) is \(y>0\). Domain of \(f^{-1}\): \(x>0\). Range of \(f^{-1}\): \(y>-1\).
(ii) Solve \(f(x)=f^{-1}(x)\):
| \(\dfrac{2}{x+1}\) | \(=\) | \(\dfrac{2}{x}-1\) |
| \(\dfrac{2}{x}-\dfrac{2}{x+1}\) | \(=\) | \(1\) |
| \(\dfrac{2(x+1)-2x}{x(x+1)}\) | \(=\) | \(1\) |
| \(2\) | \(=\) | \(x(x+1)\) |
| \(x^2+x-2\) | \(=\) | \(0\) |
| \((x+2)(x-1)\) | \(=\) | \(0\) |
\(x=-2\) is outside both domains (\(x>-1\) and \(x>0\)): reject it. \(x=1\) gives \(f(1)=\dfrac22=1\).
\(\therefore\) the graphs meet at \(\boldsymbol{(1,1)}\).
Common pitfalls
Frequently asked questions
How do you find the inverse of a function?
Write \(y=f(x)\), interchange \(x\) and \(y\), and make \(y\) the subject. For \(f(x)=4x-3\): \(x=4y-3\), so \(f^{-1}(x)=\dfrac{x+3}{4}\). Then state the domain and range of the inverse.
What is the horizontal line test?
A function is one-to-one, and so has an inverse function, exactly when every horizontal line meets its graph at most once. A parabola fails the test unless its domain is restricted to one side of the vertex.
How are the domain and range of an inverse function related to the original function?
They swap. The domain of \(f^{-1}\) is the range of \(f\), and the range of \(f^{-1}\) is the domain of \(f\). For \(f(x)=3^x+1\), the range is \(y>1\), so \(f^{-1}(x)=\log_3(x-1)\) has domain \(x>1\).
Is f⁻¹(x) the same as 1/f(x)?
No. \(f^{-1}\) is the inverse function, which undoes \(f\). The reciprocal \(\dfrac{1}{f(x)}\) is a different function.
Why is the graph of an inverse function a reflection in y = x?
Finding the inverse interchanges \(x\) and \(y\), so every point \((a,b)\) on \(y=f(x)\) becomes \((b,a)\) on \(y=f^{-1}(x)\). Swapping the coordinates of a point reflects it in the line \(y=x\).
How do you find where a function and its inverse intersect?
Solve the equation \(f(x)=f^{-1}(x)\), then reject any solution that is not in the domain of both \(f\) and \(f^{-1}\). If you squared both sides, also check each solution in the original equation. Substitute the remaining values into \(f(x)\) to get the points.