Inverse Function Equation Solver with Worked Examples

The inverse function undoes : . For , . Type “inverse of f(x)=3x-2” and the solver finds it.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Inverse function means

To find the inverse, write , swap and , and rearrange to make the subject.

The graph of is the reflection of in the line .

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.

How to use inverse function

  1. Write .
  2. Swap and .
  3. Rearrange for .
  4. Write and check.

Graph

y = f(x) = 2x + 1 and its inverse-3-2-1012345-3-2-1012345y = f(x) = 2x + 1 and its inversexyf(x) = 2x + 1f⁻¹(x) = (x − 1)/2y = xGraph 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 .

Inverse function Answer checked
Answer
f−1(x)=x+23f^{-1}(x) = \frac{x+2}{3}
f and f^-1-6-4-20246-6-4-20246f and f^-1f(x)f^-1(x)y = xGraph 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.
  1. The function
  2. Write
  3. Swap the roles: make the subject
    Undo the operations in reverse order.
  4. Rename as
  5. Check: applying the function and then its inverse gets you back

Example 2: a fractional function

Find the inverse of .

Inverse function Answer checked
Answer
f−1(x)=2x−1f^{-1}(x) = 2 x-1
f and f^-1-6-4-20246-6-4-20246f and f^-1f(x)f^-1(x)y = xGraph 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.
  1. The function
  2. Write
  3. Swap the roles: make the subject
    Undo the operations in reverse order.
  4. Rename as
  5. Check: applying the function and then its inverse gets you back

Example 3: a simple linear function

Find the inverse of f(x) = 5x + 2.

Inverse function Answer checked
Answer
f−1(x)=x−25f^{-1}(x) = \frac{x-2}{5}
f and f^-1-6-4-20246-6-4-20246f and f^-1f(x)f^-1(x)y = xGraph 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.
  1. The function
  2. Write
  3. Swap the roles: make the subject
    Undo the operations in reverse order.
  4. Rename as
  5. Check: applying the function and then its inverse gets you back

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.

  1. Writey = 3x − 2
  2. Swapx = 3y − 2
  3. Rearrangey = (x + 2) ÷ 3
  4. 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.

  1. Swapx = (y + 1) ÷ 2
  2. Multiply by 22x = y + 1
  3. Rearrangey = 2x − 1
  4. Check: f(5) = 3 and f⁻¹(3) = 5 ✓f⁻¹(x) = 2x − 1.

Using the inverse Higher

f(x) = 3x − 2. Solve f(x) = 10.

  1. Use f⁻¹x = (10 + 2) ÷ 3
  2. Calculatex = 4
  3. Check: 3 × 4 − 2 = 10 ✓x = 4.

Another function Higher

Find the inverse of f(x) = 5 − 2x.

  1. Swapx = 5 − 2y
  2. Rearrangey = (5 − x) ÷ 2
  3. 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

  1. Swap x and y.
  2. Rearrange for y.
  3. Undo in reverse order.
  4. Check by composing.
  5. 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.

Solve: …

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.

More in Algebra and the formula sheets.