f − 1 ( f ( x ) ) = x ; f ( x ) = a x + b ⇒ f − 1 ( x ) = a x − b
On this page
Before you start
This page is easier if you are comfortable with:
What Inverse function means
To find the inverse, write y = f ( x ) , swap x and y , and rearrange to make y the subject.
The graph of y = f − 1 ( x ) is the reflection of y = f ( x ) in the line y = x .
Only one-to-one functions have inverses over their whole domain. Compose it with the original to get the identity (composite function), its graph is the reflection in y = x (graph of an inverse function ), and linear cases are done by rearranging y = mx + c for x . It also helps to know Modulus function , which uses the same ideas.
This page is part of Graphs and functions in Algebra . Topics that work alongside it: Composite function , Graph of an inverse function , Rearranging y = mx + c for x , Exponential graph , Reciprocal graph and Tangent to a circle .
What is it used for? The inverse function f⁻¹ reverses f. If f takes x to y, then f⁻¹ takes y back to x.
Undoing a conversion, such as Celsius to Fahrenheit and back. Solving equations by applying the inverse. Finding the reverse of a formula or process.
How to use inverse function
Write y = f ( x ) . Swap x and y . Rearrange for y . Write f − 1 ( x ) and check.
Graph y = f(x) = 2x + 1 and its inverse -3 -2 -1 0 1 2 3 4 5 -3 -2 -1 0 1 2 3 4 5 y = f(x) = 2x + 1 and its inverse x y f(x) = 2x + 1 f⁻¹(x) = (x − 1)/2 y = x Graph with x from -3 to 5 and y from -3 to 5. Shows the curve f(x) = 2x + 1; the curve f⁻¹(x) = (x − 1)/2; the curve y = x. The two graphs are reflections of each other in the line y = x.
Worked examples
The examples marked with a button were worked out by the solver on this page. You can try each one yourself.
Example 1: a linear function Find the inverse of f ( x ) = 3 x − 2 .
Try this in the solver: inverse of f(x)=3x-2
Inverse function Answer checked
Answer
f − 1 ( x ) = x + 2 3 f^{-1}(x) = \frac{x+2}{3} f − 1 ( x ) = 3 x + 2 f and f^-1 -6 -4 -2 0 2 4 6 -6 -4 -2 0 2 4 6 f and f^-1 f(x) f^-1(x) y = x Graph with x from -6 to 6 and y from -6 to 6. Shows the curve f(x); the curve f^-1(x); the curve y = x. The function
f ( x ) = 3 x − 2
Write y = f ( x )
y = 3 x − 2
Swap the roles: make x the subject
Undo the operations in reverse order.
x = 3 x + 2
Rename y as x
f − 1 ( x ) = 3 x + 2
Check: applying the function and then its inverse gets you back
f − 1 ( f ( 0.5 ) ) = f − 1 ( − 0.5 ) = 0.5 ✓
Example 2: a fractional function Find the inverse of f ( x ) = 2 x + 1 .
Try this in the solver: inverse of f(x)=(x+1)/2
Inverse function Answer checked
Answer
f − 1 ( x ) = 2 x − 1 f^{-1}(x) = 2 x-1 f − 1 ( x ) = 2 x − 1 f and f^-1 -6 -4 -2 0 2 4 6 -6 -4 -2 0 2 4 6 f and f^-1 f(x) f^-1(x) y = x Graph with x from -6 to 6 and y from -6 to 6. Shows the curve f(x); the curve f^-1(x); the curve y = x. The function
f ( x ) = 2 x + 1
Write y = f ( x )
y = 2 x + 1
Swap the roles: make x the subject
Undo the operations in reverse order.
x = 2 x − 1
Rename y as x
f − 1 ( x ) = 2 x − 1
Check: applying the function and then its inverse gets you back
f − 1 ( f ( 0.5 ) ) = f − 1 ( 0.75 ) = 0.5 ✓
Example 3: a simple linear function Find the inverse of f(x) = 5x + 2.
Try this in the solver: inverse of f(x)=5x+2
Inverse function Answer checked
Answer
f − 1 ( x ) = x − 2 5 f^{-1}(x) = \frac{x-2}{5} f − 1 ( x ) = 5 x − 2 f and f^-1 -6 -4 -2 0 2 4 6 -6 -4 -2 0 2 4 6 f and f^-1 f(x) f^-1(x) y = x Graph with x from -6 to 6 and y from -6 to 6. Shows the curve f(x); the curve f^-1(x); the curve y = x. The function
f ( x ) = 5 x + 2
Write y = f ( x )
y = 5 x + 2
Swap the roles: make x the subject
Undo the operations in reverse order.
x = 5 x − 2
Rename y as x
f − 1 ( x ) = 5 x − 2
Check: applying the function and then its inverse gets you back
f − 1 ( f ( 0.5 ) ) = f − 1 ( 4.5 ) = 0.5 ✓
Special cases
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
A linear function f(x) = 3x − 2: f⁻¹(x) = (x + 2) ÷ 3
Swap and rearrange.
A fractional function f(x) = (x + 1) ÷ 2: f⁻¹(x) = 2x − 1
Multiply by 2, subtract 1.
The check f(f⁻¹(x)) = x
Compose with the inverse.
The graph The inverse is the reflection in y = x
Swap the coordinates.
Word problems
To find f⁻¹, write y = f(x), swap x and y, then rearrange to make y the subject.
A linear function Find the inverse of f(x) = 3x − 2.
Write y = 3x − 2 Swap x = 3y − 2 Rearrange y = (x + 2) ÷ 3 Check: f(4) = 10 and f⁻¹(10) = 4 ✓ f⁻¹(x) = (x + 2) ÷ 3.
A fractional function Find the inverse of f(x) = (x + 1) ÷ 2.
Swap x = (y + 1) ÷ 2 Multiply by 2 2x = y + 1 Rearrange y = 2x − 1 Check: f(5) = 3 and f⁻¹(3) = 5 ✓ f⁻¹(x) = 2x − 1.
Using the inverse Higher f(x) = 3x − 2. Solve f(x) = 10.
Use f⁻¹ x = (10 + 2) ÷ 3 Calculate x = 4 Check: 3 × 4 − 2 = 10 ✓ x = 4.
Another function Higher Find the inverse of f(x) = 5 − 2x.
Swap x = 5 − 2y Rearrange y = (5 − x) ÷ 2 Check: f(1) = 3 and f⁻¹(3) = 1 ✓ f⁻¹(x) = (5 − x) ÷ 2.
Common mistakes
Taking the reciprocal f⁻¹(x) = 1 ÷ f(x) ✗
f⁻¹ is the inverse function ✓
The −1 is not a power.
Not swapping rearranging y = 3x − 2 without swapping ✗
swap x and y first ✓
Then rearrange for y.
Only changing the sign f⁻¹(x) = 3x + 2 ✗
(x + 2) ÷ 3 ✓
Undo in reverse order.
Not checking no check ✗
f(f⁻¹(x)) = x ✓
Compose to confirm.
Exam tips
Swap x and y.
Rearrange for y.
Undo in reverse order.
Check by composing.
f⁻¹ is not 1/f.
Practice questions
Try each one on paper, then open the answer. Use the solver above to see the full working.
1. Find f⁻¹(7) for f(x) = x + 3 Foundation 4
2. Find f⁻¹(12) for f(x) = 2x Foundation 6
3. Find f⁻¹(11) for f(x) = 2x + 1 Foundation 5
4. Find f⁻¹(8) for f(x) = 3x − 4 Higher 4
5. Find f⁻¹(1) for f(x) = 5 − 2x Higher 2
6. Find f⁻¹(4) for f(x) = (x + 2) ÷ 3 Higher 10
Practice generator Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.
Foundation Higher Mixed New question
Solve: …
The practice generator needs JavaScript.
Key terms
Inverse function Undoes the function. f⁻¹ The inverse of f. One-to-one Each output has one input. Reflection The graph is reflected in y = x. Domain The allowed inputs. Range The outputs.
Frequently asked questions
How do you find an inverse function? Swap x and y, then rearrange.
What is f⁻¹(x)? The function that undoes f.
Is f⁻¹ the same as 1/f? No.
What does the graph look like? A reflection in y = x.
Which page covers composites? composite functions.
Which page covers both? composite and inverse functions .