An inverse function undoes a function, but only a one-one function has an inverse. You find inverses, restrict a domain so that an inverse exists, and see that a function and its inverse are reflections of each other in the line y = x.
about 25 min1 simulation1 practice question
Lesson 2 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
Running a function backwards
A function f turns an input into an output. Its inversef−1 turns that output back into the input. If f(3)=11, then f−1(11)=3.
To find f−1(x):
Write y=f(x).
Swap x and y.
Solve for y. That y is f−1(x).
For f(x)=3x−5: write x=3y−5, so y=3x+5. Then f−1(x)=3x+5. The correct notation matters: f−1(x) is not f(x)1.
A function with a fraction needs one more step. For f(x)=x−32x+1, x=3:
Swap: x=y−32y+1.
Clear the fraction: xy−3x=2y+1.
Gather the y terms: xy−2y=3x+1, so y(x−2)=3x+1.
Divide: f−1(x)=x−23x+1, for x=2.
Notice that x=2 is the value that f(x) never takes. The domain of f−1 is the range of f, and the range of f−1 is the domain of f.
Why some functions have no inverse
The function f(x)=x2 for all real x is many-one. The output 9 comes from x=3 and from x=−3. If we tried to run it backwards, 9 would need two answers. An inverse must give exactly one answer, so only a one-one function has an inverse. In words: f(x)=x2 has no inverse because two different inputs give the same output.
We can often restrict the domain to make a function one-one. The function f(x)=x2 for x≥0 is one-one, and its inverse is f−1(x)=x.
For a quadratic, the domain must stay on one side of the turning point. The function f(x)=(x−2)2+3 for x≥2 is one-one. Its range is f(x)≥3, so the inverse is f−1(x)=2+x−3 for x≥3. We take the plus sign because the range of f−1 is the domain of f, which is x≥2.
The graph of an inverse
The graph of y=f−1(x) is the reflection of the graph of y=f(x) in the line y=x. A point (a,b) on f becomes the point (b,a) on f−1. The two graphs meet on the line y=x, if they meet at all.
A graph with equal scales. The blue curve is y equals x squared for x at least 0, rising from the origin. The green curve is its inverse, y equals the square root of x, the mirror image of the blue curve in the dashed line y equals x. The point (2, 4) on the blue curve and its mirror image (4, 2) on the green curve are marked in red.
The functions ex and lnx are inverses of each other. So the inverse of f(x)=e2x is f−1(x)=21lnx. You study them in the third course of this chapter.
Practise with new numbers
Try it in Python
The program checks that the inverse of f(x)=(x−3)2+2 undoes f for x≥3, and shows what happens outside the restricted domain.
Common mistakes
Taking f−1(x) as f(x)1. The notation −1 means the inverse function.
Forgetting to restrict the domain. A many-one function has no inverse until the domain is restricted.
Choosing the wrong square-root sign. Use the sign that matches the restricted domain.
Swapping the domain and range. The domain of f−1 is the range of f.
Dropping the excluded value from the inverse of a fraction.
Remember these
To find f−1(x): write y=f(x), swap x and y, solve for y.
Only a one-one function has an inverse. Restrict the domain if you need to.
Domain of f−1 = range of f. Range of f−1 = domain of f.
The graph of f−1 is the reflection of the graph of f in y=x.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Find f−1(x) when f(x)=4x+9.
Explain in words why g(x)=x2−4 for all real x has no inverse.
The function f(x)=(x−1)2+5 has the domain x≥1. Find f−1(x) and state its domain.
A point on the graph of f is (2,7). Which point is on the graph of f−1?
The inverse of f(x)=e2x is f−1(x)=21lnx. Use your calculator to find f−1(20) to 2 decimal places.
References
Cambridge International, IGCSE Additional Mathematics 0606 syllabus (2025, 2026 and 2027), unit 1 Functions.
OpenStax, Precalculus 2e, chapter 1 Functions, the section on inverse functions.
Enroll free in Domain, Range, Inverse and Composite Functions
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.