30% off your first 3 months

Get the deal

Inverse functions

An inverse function undoes what a function does: if f(2)=7f(2) = 7, then f−1(7)=2f^{-1}(7) = 2.

Guide 6 of 8
A graph with three lines: f, y equals 2x plus 3, in white through the point 2, 7; its inverse, y equals x minus 3 over 2, in blue through 7, 2; and the line y equals x between them, so each is the other flipped over it.xy−112345678−1123456780
f(x) = 2x + 3 and f⁻¹(x) = (x − 3) / 2. Each is the other flipped over y = x: (2, 7) and (7, 2).

Why it works. The inverse sends every output back to its input, so each point (a,b)(a, b) of f becomes the point (b,a)(b, a) of f−1f^{-1}. Swapping x and y in the rule makes exactly that swap, and swapping the coordinates of a point flips it over the line y=xy = x.


Your turn

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

Or just show the answer

f−1(x)=x+54f^{-1}(x) = \frac{x + 5}{4}

Write y=4x−5y = 4x - 5 and swap: x=4y−5x = 4y - 5. Add 5: x+5=4yx + 5 = 4y. Divide by 4: y=x+54y = \frac{x + 5}{4}. Check: f(2)=3f(2) = 3, and 3+54=2\frac{3 + 5}{4} = 2.


Watch out for

  • Mistake 1. Struck through: f^{-1}(x) = 1 over 2x + 3; written over it: f^{-1}(x) = x − 3 over 2.

    Reading f−1(x)f^{-1}(x) as 1f(x)\frac{1}{f(x)}.

    The −1-1 means undo, not one over: f−1(7)=2f^{-1}(7) = 2, but 1f(7)=117\frac{1}{f(7)} = \frac{1}{17}.

  • Mistake 2. Struck through: x over 2 − 3; written over it: x − 3 over 2.

    Undoing in the same order: divide by 2, then take away 3.

    Undo in reverse order: take away 3 first, then divide by 2.

  • Mistake 3. Struck through: x = y − 3 over 2; written over it: y = x − 3 over 2.

    Solving for y without swapping x and y first.

    Swap first, or you only rearrange the same function.


Stuck on your own homework?

Open DuckyHelper and say it out loud. It sees your screen, so it works through your own problem with you and draws it, like the board above.

“Show me how to find the inverse of my function and check it on a graph.”

Plus is $14 a month for your first 3 months. DuckyHelper is an app for Mac (Apple silicon, macOS 14 or later), Windows and Linux.


Read the whole guide as text

An inverse function undoes what a function does: if f(2)=7f(2) = 7, then f−1(7)=2f^{-1}(7) = 2. To find it, write y=f(x)y = f(x), swap x and y, and solve for y. Its graph is the original flipped over the line y=xy = x. Check it by putting one inside the other: f−1(f(x))f^{-1}(f(x)) should give back x.

Worked example

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

  1. Write it with y.
    y=2x+3y = 2x + 3
  2. Swap x and y.
    x=2y+3x = 2y + 3
  3. Solve for y: take away 3, then divide by 2.
    y=x−32y = \frac{x - 3}{2}
  4. Check: f(2)=7f(2) = 7, and the inverse takes 7 back to 2.
    7−32=2\frac{7 - 3}{2} = 2

Answer: f−1(x)=x−32f^{-1}(x) = \frac{x - 3}{2}

Algebra 2: all 8 guides
Questions and jobs

Do anything

Ask it a question or hand it a job, in any app.

Doing jobs for you is in the Mac app. Asking works on Mac, Windows and Linux.