Arithly

← All maths topics

Inverse of a Function

The inverse of a function undoes it: whatever the function does to a number, the inverse does backwards. If f turns 5 into 13, then f⁻¹ turns 13 back into 5. A function has an inverse exactly when it is one-to-one — every output comes from just one input — which is always true for a straight-line function with a non-zero gradient.

The swap-and-solve method

Write the function as y = …, then swap x and y — that swap is the undoing — and solve the new equation for y. The result is f⁻¹(x). Three moves, every time: replace f(x) with y, swap, rearrange. Inverse functions sit inside the wider Functions topic, and the domains and ranges of inverses are covered on Domain and Range of a Function. Practise below in the solver — free, no sign-up.

Think first

Before reading the solution, try to answer these — they are the hints Arithly itself gives:

Worked example

Find the inverse of f(x) = 2x + 3

  1. The inverse function undoes f: swap x and y, then solve for y.
  2. Write the rule with y in place of f(x): y = 2x + 3.
  3. Swap x and y: x = 2y + 3.
  4. Take away 3 from both sides: x − 3 = 2y.
  5. Divide both sides by 2: y = x/2 - 3/2.
  6. Answer: f⁻¹(x) = x/2 - 3/2.

Answer: f⁻¹(x) = x/2 - 3/2

Practice

Try these yourself. Each one opens in Arithly with the question already filled in — solve it there and check your working:

Related topics

Changing the Subject

Finding an inverse is rearranging with the letters swapped.

Exponential Functions

Half of the flagship inverse pair — logarithms are the other half.

Functions

Notation, domains and ranges: the ground inverses stand on.

Logarithmic Functions

Inverses drawn as graphs: reflections in the line y = x.

Algebra hub

All of Arithly's algebra topics, from linear equations to quadratics.

More topics: all maths topics · Next topic: Fractions

© 2026 Arithly. Content: CC BY-NC 4.0 · Code & solver: all rights reserved.