CalcHub

Free calculator tools. Fast, simple, no sign up.

How to Find the Inverse of a Function Step by Step

The inverse of a function undoes what the function does. If f turns 2 into 7, the inverse turns 7 back into 2. Inverse functions are used to solve...

The inverse of a function undoes what the function does. If f turns 2 into 7, the inverse turns 7 back into 2. Inverse functions are used to solve equations and to switch between forms, such as between exponentials and logarithms.

How it works

To find an inverse, swap x and y and solve for y. For f(x) = 2x + 3, write y = 2x + 3, swap to get x = 2y + 3, then solve: 2y = x - 3, so y = (x - 3) divided by 2. The inverse is f inverse of x = (x - 3) divided by 2. Check by composing them: f(f inverse of 7) should give 7, and it does, because (7 - 3) divided by 2 is 2, and f(2) is 7.

Not every function has an inverse. A function must pass the horizontal line test: each output must come from exactly one input. Squaring fails this test unless the domain is restricted, which is why the inverse of x squared is the square root with a chosen sign.

Worked example

Find the inverse of g(x) = (x + 5) divided by 3. Write y = (x + 5) divided by 3, swap to x = (y + 5) divided by 3, multiply by 3 to get 3x = y + 5, so y = 3x - 5. The inverse is 3x - 5.

Common mistakes

The most common slip is swapping x and y but then solving for the wrong letter. After swapping, the goal is always to get y alone.

Try it yourself

Find the inverse of h(x) = 4x - 1. (Answer: (x + 1) divided by 4.)

Putting it together

The best way to make this stick is to use it three times: once while reading this guide, once tomorrow from memory, and once on a fresh problem. Each round takes a few minutes, and by the third the steps feel natural. If a step feels unclear, go back to the worked example and cover the answer while you redo it. Maths is a skill built from small correct repetitions, and this topic is a good place to practise that habit.

A question to ask yourself

What if the numbers change? The method stays the same, so try the practice question with different numbers and check that the steps still work. That is how you know you have learned the method rather than memorised one answer.