Algebra 1 · Grade 9

Inverse Functions: Undoing What a Function Does

Quick answer

An inverse function undoes the original. Finding it means swapping the roles of input and output and solving again, because the inverse answers the reverse question. That swap is what reflects the graph across the line y = x and what trades the domain for the range.

What you'll learn

  • Find the inverse of a function by swapping and solving
  • Verify an inverse by composing it with the original
  • Decide whether a function has an inverse that is itself a function

Reversing the question

A function turns an input into an output. Its inverse turns that output back into the input it came from.

f(x)=x+7f−1(x)=x−7f(x) = x + 7 \qquad f^{-1}(x) = x - 7

Adding 77 is undone by subtracting 77. That is the whole idea, and the machinery below is for cases where the undoing takes more than one step.

Written formally, applying one and then the other gets you back where you started:

f−1(f(x))=xf(f−1(x))=xf^{-1}(f(x)) = x \qquad f(f^{-1}(x)) = x

The −1-1 is notation for reversing, not an exponent. f−1(x)f^{-1}(x) is not 1f(x)\tfrac{1}{f(x)}, and this is one of the more expensive pieces of notation in algebra to misread.

Why swapping x and y finds it

A function’s equation says how to get yy from xx. The inverse asks the reverse question: how do you get xx from yy?

So swap the letters and solve again.

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

1. Write it with yy.

y=3x−5y = 3x - 5

2. Swap xx and yy.

x=3y−5x = 3y - 5

3. Solve for yy.

x+5=3y⇒y=x+53x + 5 = 3y \quad\Rightarrow\quad y = \frac{x + 5}{3} f−1(x)=x+53f^{-1}(x) = \frac{x + 5}{3}

Step 3 is solving a literal equation — the same skill, applied to a letter you are less used to isolating.

Checking by composing

Substituting one function into the other has to return the input untouched.

f(f−1(x))=3(x+53)−5=(x+5)−5=x✓f\left(f^{-1}(x)\right) = 3\left(\frac{x+5}{3}\right) - 5 = (x + 5) - 5 = x \quad\checkmark

This check is complete. If the composition simplifies to xx, the inverse is right; if it does not, something went wrong. A single number works too: f(4)=7f(4) = 7 and f−1(7)=4f^{-1}(7) = 4.

Why the graph reflects across y = x

Swapping the letters swaps the coordinates. Every point (a,b)(a, b) on ff becomes (b,a)(b, a) on f−1f^{-1}.

Reflecting across the line y=xy = x is exactly the move that swaps a point’s two coordinates, so the two graphs are mirror images in that line.

A function and its inverse reflected in y = x A grid from -6 to 8 across and -6 to 8 up. A steep line rises through (0, -5) and (2, 1). A shallower line rises through (-5, 0) and (1, 2). A dashed diagonal line through the origin at forty-five degrees sits between them, and each line is the mirror image of the other in it. -6-4-22468-6-4-22468xy
  • f(x) = 3x - 5
  • f inverse
  • y = x
A function and its inverse reflected in y = x

Two consequences follow directly:

On ffOn f−1f^{-1}
the domainthe range
the rangethe domain
the point (a,b)(a, b)the point (b,a)(b, a)
yy-intercept (0,c)(0, c)xx-intercept (c,0)(c, 0)

The domain and range trade places, because the inputs of one are the outputs of the other.

When the inverse is not a function

Reversing always produces a relation. It produces a function only if no output of ff was ever produced twice.

Take f(x)=x2f(x) = x^2. Both 33 and −3-3 give 99. Reversing asks “which input gave 99?” and there are two answers, so the reverse fails the one-output rule.

The test is visual:

TestChecks
vertical line testis the graph a function?
horizontal line testdoes it have an inverse function?

A horizontal line crossing the graph twice means two inputs shared an output.

y=x2y = x^2 fails it, which is why x\sqrt{x} is defined as the positive root: restricting the domain to x≥0x \ge 0 throws away the duplicate and leaves something invertible.

Restricting the domain is the standard repair, and it is why calculators report one square root rather than two.

Worked examples

Common mistakes

Practice problems

  1. Find the inverse of f(x)=x+4f(x) = x + 4.

    Answer

    f−1(x)=x−4f^{-1}(x) = x - 4

    Full solution

    Subtracting undoes adding.

  2. Find the inverse of f(x)=7xf(x) = 7x.

    Answer

    f−1(x)=x7f^{-1}(x) = \tfrac{x}{7}

    Full solution

    Dividing undoes multiplying.

  3. Find the inverse of f(x)=x−12f(x) = x - 12.

    Answer

    f−1(x)=x+12f^{-1}(x) = x + 12

    Full solution

    Adding undoes subtracting.

  4. f(5)=20f(5) = 20. What is f−1(20)f^{-1}(20)?

    Answer

    55

    Full solution

    The inverse returns the input that produced the output.

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

    Answer

    f−1(x)=x−13f^{-1}(x) = \tfrac{x - 1}{3}

    Full solution

    Swap: x=3y+1x = 3y + 1, then solve.

  6. The point (2,9)(2, 9) is on ff. What point is on f−1f^{-1}?

    Answer

    (9,2)(9, 2)

    Full solution

    Swapping the letters swaps the coordinates.

  7. What line is a graph reflected in to give its inverse?

    Answer

    y=xy = x

    Full solution

    Reflecting in that line swaps a point’s coordinates.

  8. Find the inverse of f(x)=x2+3f(x) = \tfrac{x}{2} + 3, and check it.

    Hint

    Swap, solve, then compose.

    Answer

    f−1(x)=2(x−3)f^{-1}(x) = 2(x - 3)

    Full solution

    Swap: x=y2+3x = \tfrac{y}{2} + 3.

    Subtract 33: x−3=y2x - 3 = \tfrac{y}{2}.

    Multiply by 22: y=2(x−3)y = 2(x - 3).

    Check by composing: f(2(x−3))=2(x−3)2+3=(x−3)+3=xf\left(2(x-3)\right) = \tfrac{2(x-3)}{2} + 3 = (x - 3) + 3 = x ✓

  9. Does f(x)=x2+1f(x) = x^2 + 1 have an inverse function?

    Answer

    No

    Full solution

    Both x=2x = 2 and x=−2x = -2 give 55, so an output is reused.

    A horizontal line at y=5y = 5 crosses the graph twice, which fails the horizontal line test.

    Restricting the domain to x≥0x \ge 0 would fix it.

  10. Asked for the inverse of f(x)=2x+6f(x) = 2x + 6, Nur answers f−1(x)=x2−6f^{-1}(x) = \tfrac{x}{2} - 6, undoing the times 22 first and then the plus 66. Find the error.

    Hint

    Put x=4x = 4 through ff, then through Nur’s answer.

    Answer

    The inverse reverses the order too. It is x−62\tfrac{x - 6}{2}.

    Full solution

    ff multiplies by 22 first and adds 66 second. Undoing it means peeling the steps off in the opposite order: subtract 66 first, then divide by 22.

    f−1(x)=x−62f^{-1}(x) = \tfrac{x - 6}{2}.

    Testing catches Nur’s version at once. f(4)=14f(4) = 14, so the inverse must send 1414 back to 44.

    Nur’s: 142−6=7−6=1\tfrac{14}{2} - 6 = 7 - 6 = 1, not 44.

    Correct: 14−62=82=4\tfrac{14 - 6}{2} = \tfrac{8}{2} = 4 ✓

    Taking off a coat and then a sweater is the same idea: the last thing on is the first thing off.

  11. Using the table, find f−1(2)f^{-1}(2) and f−1(−7)f^{-1}(-7).

    xx−2-2−1-1001122
    f(x)f(x)−7-7−4-4−1-12255
    Answer

    f−1(2)=1f^{-1}(2) = 1 and f−1(−7)=−2f^{-1}(-7) = -2

    Full solution

    Find each value in the f(x)f(x) row and read the input above it. 22 sits under 11, and −7-7 sits under −2-2.

Frequently asked questions

How do I find an inverse function?

Swap x and y in the equation, then solve for y. The result is the inverse.

How do I check an inverse is right?

Compose them. Putting a number through the function and then the inverse has to give the number back.

What does the graph look like?

The mirror image of the original across the line y = x. Every point (a, b) becomes (b, a).

Does every function have an inverse?

Every function can be reversed, but the reverse is only a function when no output was reused. The horizontal line test checks that.

Why is f inverse not 1 over f?

The -1 is notation for reversing the function, not an exponent. The reciprocal of f is written 1/f(x).

What to learn next

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.