Skip to content
๐ŸŽฏโญ INTERACTIVE LESSON

Inverse Functions

Learn step-by-step with interactive practice!

Inverse Functions - Complete Interactive Lesson

Part 1: The Idea of "Undoing"

๐Ÿ”„ Inverse Functions

Part 1 of 5 โ€” The Idea of "Undoing"


Topics in This Part

Section
What an Inverse Function Does
Swapping Inputs and Outputs
Notation: fโˆ’1(x)f^{-1}(x)

๐Ÿ”‘ Key Concept: An inverse function reverses what the original function did. If ff turns 33 into 1111, then fโˆ’1f^{-1} turns 1111 back into 33. The inverse runs the machine backwards.

A Function as a Machine

Think of a function as a machine that takes an input, does something to it, and spits out an output.

f(x)=x+5addsย 5f(x) = x + 5 \quad\text{adds 5}

The inverse machine undoes that step โ€” it subtracts 5:

fโˆ’1(x)=xโˆ’5f^{-1}(x) = x - 5

Stacked Operations Undo in Reverse Order

If ff multiplies by 22, then adds 33, the inverse must first subtract 33, then divide by 22 โ€” opposite operations in the opposite order.

Original ffInverse fโˆ’1f^{-1}
add 55subtract 55
multiply by 22divide by 22
cube (x3x^3)cube root (x3\sqrt[3]{x})
multiply by 22, then add 33subtract 33, then divide by 22

๐Ÿ’ก Like getting dressed: socks-then-shoes undoes as shoes-off-then-socks-off. Last on, first off.

Concept Check ๐ŸŽฏ

Swapping Inputs and Outputs

Every ordered pair tells you an input and an output. The inverse simply swaps them:

ifย (a,b)ย isย onย f,thenย (b,a)ย isย onย fโˆ’1.\text{if } (a, b) \text{ is on } f, \quad\text{then } (b, a) \text{ is on } f^{-1}.

Example

If f={(1,4),ย (2,7),ย (3,10)}f = \{(1, 4),\ (2, 7),\ (3, 10)\}, then

fโˆ’1={(4,1),ย (7,2),ย (10,3)}.f^{-1} = \{(4, 1),\ (7, 2),\ (10, 3)\}.

On ffOn fโˆ’1f^{-1}
(1,4)(1, 4)(4,1)(4, 1)
(2,7)(2, 7)(7,2)(7, 2)
(3,10)(3, 10)(10,3)(10, 3)

๐Ÿ”‘ Domain โ†” Range Swap: The domain of ff becomes the range of fโˆ’1f^{-1}, and the range of ff becomes the domain of fโˆ’1f^{-1}. The inputs and outputs trade places.

Swap the Coordinates ๐Ÿงฎ

A point on ff is given. Enter the matching point on fโˆ’1f^{-1} as the two coordinates.

1) (6,9)(6, 9) is on ff. On fโˆ’1f^{-1}: (โ€‰?,ย ?โ€‰)(\,?,\ ?\,) โ€” enter the xx-coordinate, then the yy-coordinate. 2) (โˆ’2,5)(-2, 5) is on ff. On fโˆ’1f^{-1}: (โ€‰?,ย ?โ€‰)(\,?,\ ?\,) โ€” enter the xx-coordinate, then the yy-coordinate.

A Warning About the Notation

The symbol fโˆ’1f^{-1} is read "f inverse." It is not an exponent.

fโˆ’1(x)โ‰ 1f(x)f^{-1}(x) \ne \frac{1}{f(x)}

โš ๏ธ Common trap: fโˆ’1(x)f^{-1}(x) does not mean 1f(x)\dfrac{1}{f(x)}. The โˆ’1-1 here is a label that means "inverse function," not a power. (The reciprocal 1f(x)\frac{1}{f(x)} is a completely different thing.)

In Part 2 we'll learn the algebra trick that finds fโˆ’1(x)f^{-1}(x) from a formula โ€” and it's just the coordinate swap written with xx and yy.

Reading the Notation ๐Ÿ”ฝ

Pick the statement that is true in each row.

Part 2: Finding the Inverse Algebraically

๐Ÿ”„ Inverse Functions

Part 2 of 5 โ€” Finding the Inverse Algebraically


๐Ÿ”‘ The Three-Step Recipe: (1) Write y=f(x)y = f(x). (2) Swap xx and yy. (3) Solve the new equation for yy. That solved-for-yy is fโˆ’1(x)f^{-1}(x).

The Swap-and-Solve Method

To find fโˆ’1(x)f^{-1}(x):

  1. Replace f(x)f(x) with yy.
  2. Swap every xx and every yy.
  3. Solve for yy.
  4. Rename yy as fโˆ’1(x)f^{-1}(x).

Worked Example: f(x)=2x+3f(x) = 2x + 3

y=2x+3โ†’swapx=2y+3y = 2x + 3 \quad\xrightarrow{\text{swap}}\quad x = 2y + 3

Now solve for yy:

xโˆ’3=2yโ‡’y=xโˆ’32x - 3 = 2y \quad\Rightarrow\quad y = \frac{x - 3}{2}

fโˆ’1(x)=xโˆ’32\boxed{f^{-1}(x) = \frac{x - 3}{2}}

โœ… Quick check: f(2)=2(2)+3=7f(2) = 2(2)+3 = 7, and fโˆ’1(7)=7โˆ’32=2f^{-1}(7) = \dfrac{7-3}{2} = 2. The inverse sent 77 back to 22. โœ“

Worked Example: f(x)=xโˆ’53f(x) = \dfrac{x - 5}{3}

y=xโˆ’53โ†’swapx=yโˆ’53y = \frac{x - 5}{3} \quad\xrightarrow{\text{swap}}\quad x = \frac{y - 5}{3}

Multiply both sides by 33, then add 55:

3x=yโˆ’5โ‡’y=3x+53x = y - 5 \quad\Rightarrow\quad y = 3x + 5

fโˆ’1(x)=3x+5\boxed{f^{-1}(x) = 3x + 5}

Worked Example: f(x)=x3+1f(x) = x^3 + 1

y=x3+1โ†’swapx=y3+1y = x^3 + 1 \quad\xrightarrow{\text{swap}}\quad x = y^3 + 1

y3=xโˆ’1โ‡’y=xโˆ’13y^3 = x - 1 \quad\Rightarrow\quad y = \sqrt[3]{x - 1}

fโˆ’1(x)=xโˆ’13\boxed{f^{-1}(x) = \sqrt[3]{x - 1}}

๐Ÿ’ก The cube root undoes the cube. Whatever the last operation was on xx, you undo it first when solving.

Concept Check ๐ŸŽฏ

Find the Inverse ๐Ÿงฎ

Find fโˆ’1(x)f^{-1}(x) and evaluate it at the given input. Enter the value of fโˆ’1f^{-1} at that input.

1) f(x)=x+8f(x) = x + 8. Find fโˆ’1(10)=โ€‰?f^{-1}(10) = \,? 2) f(x)=4xf(x) = 4x. Find fโˆ’1(20)=โ€‰?f^{-1}(20) = \,? 3) f(x)=3xโˆ’1f(x) = 3x - 1. Find fโˆ’1(11)=โ€‰?f^{-1}(11) = \,?

Build the Inverse ๐Ÿ”ฝ

You're inverting f(x)=2x+3f(x) = 2x + 3. Choose the result at each stage.

Part 3: Verifying Inverses with Composition

๐Ÿ”„ Inverse Functions

Part 3 of 5 โ€” Verifying Inverses with Composition


๐Ÿ”‘ The Test: Two functions are inverses only if composing them in both orders gives back xx: f(fโˆ’1(x))=xandfโˆ’1(f(x))=x.f(f^{-1}(x)) = x \quad\text{and}\quad f^{-1}(f(x)) = x.

Composition Returns the Input

If ff and gg are inverses, then feeding the output of one straight into the other lands you exactly where you started.

f(g(x))=xandg(f(x))=xf(g(x)) = x \qquad\text{and}\qquad g(f(x)) = x

You must check both orders โ€” passing only one is not enough to confirm a true inverse.

Worked Example: Are f(x)=2x+3f(x) = 2x + 3 and g(x)=xโˆ’32g(x) = \dfrac{x - 3}{2} inverses?

Order 1 โ€” f(g(x))f(g(x)):

fโ€‰โฃ(xโˆ’32)=2โ‹…xโˆ’32+3=(xโˆ’3)+3=xย โœ“f\!\left(\frac{x-3}{2}\right) = 2\cdot\frac{x-3}{2} + 3 = (x - 3) + 3 = x \ โœ“

Order 2 โ€” g(f(x))g(f(x)):

g(2x+3)=(2x+3)โˆ’32=2x2=xย โœ“g(2x + 3) = \frac{(2x + 3) - 3}{2} = \frac{2x}{2} = x \ โœ“

โœ… Both compositions return xx, so ff and gg are inverses.

Concept Check ๐ŸŽฏ

Compose to Verify ๐Ÿงฎ

Let f(x)=3xโˆ’6f(x) = 3x - 6 and g(x)=x+63g(x) = \dfrac{x + 6}{3} (its candidate inverse).

1) Compute f(g(0))f(g(0)). First g(0)=โ€‰?g(0) = \,? 2) Then ff of that result: f(g(0))=โ€‰?f(g(0)) = \,? 3) Compute g(f(2))g(f(2)). (You should get the same value as the input, 22.) Enter g(f(2))=โ€‰?g(f(2)) = \,?

When Composition Fails

Example: Are f(x)=x2f(x) = x^2 and g(x)=xg(x) = \sqrt{x} inverses?

f(g(x))=(x)2=x(forย xโ‰ฅ0)f(g(x)) = (\sqrt{x})^2 = x \quad\text{(for } x \ge 0\text{)}

g(f(x))=x2=โˆฃxโˆฃg(f(x)) = \sqrt{x^2} = |x|

The second composition gives โˆฃxโˆฃ|x|, not xx. For a negative input like x=โˆ’3x = -3:

g(f(โˆ’3))=(โˆ’3)2=9=3โ‰ โˆ’3g(f(-3)) = \sqrt{(-3)^2} = \sqrt{9} = 3 \ne -3

โš ๏ธ So f(x)=x2f(x) = x^2 is not invertible over all real numbers โ€” two different inputs (33 and โˆ’3-3) share the same output (99), so the reverse direction is ambiguous. We fix this in Part 4 by restricting the domain.

Verify by Composition ๐Ÿ”ฝ

Test whether f(x)=x+4f(x) = x + 4 and g(x)=xโˆ’4g(x) = x - 4 are inverses.

Part 4: Graphs, One-to-One, and Domain Restrictions

๐Ÿ”„ Inverse Functions

Part 4 of 5 โ€” Graphs, One-to-One, and Domain Restrictions


๐Ÿ”‘ The Mirror: The graph of fโˆ’1f^{-1} is the reflection of the graph of ff across the line y=xy = x. That single picture explains the whole coordinate swap.

Reflection Across y=xy = x

Because the inverse swaps each (a,b)(a, b) for (b,a)(b, a), its graph is the original flipped over the diagonal line y=xy = x.

(a,b)ย onย fโŸบ(b,a)ย onย fโˆ’1(a, b) \text{ on } f \quad\Longleftrightarrow\quad (b, a) \text{ on } f^{-1}

On ffReflected point on fโˆ’1f^{-1}
(0,1)(0, 1)(1,0)(1, 0)
(1,3)(1, 3)(3,1)(3, 1)
(2,5)(2, 5)(5,2)(5, 2)

๐Ÿ’ก Any point already on the line y=xy = x (like (4,4)(4, 4)) stays put when reflected โ€” it is its own mirror image. So ff and fโˆ’1f^{-1} always cross each other right on that line when they meet.

Concept Check ๐ŸŽฏ

One-to-One: The Horizontal Line Test

A function has an inverse that is also a function only if it is one-to-one โ€” every output comes from exactly one input.

  • Vertical Line Test โ†’ checks whether a graph is a function (no input has two outputs).
  • Horizontal Line Test โ†’ checks whether a function is one-to-one (no output has two inputs).

๐Ÿ”‘ Horizontal Line Test: If every horizontal line crosses the graph at most once, the function is one-to-one and has an inverse function.

Why f(x)=x2f(x) = x^2 fails

A horizontal line like y=9y = 9 hits the parabola at both x=3x = 3 and x=โˆ’3x = -3. Two inputs share one output, so it is not one-to-one โ€” and so it has no inverse function over all reals.

Restricting the Domain

We can rescue a non-one-to-one function by restricting its domain to a piece that passes the horizontal line test.

Example: f(x)=x2,ย xโ‰ฅ0f(x) = x^2,\ x \ge 0

Keeping only the right half (where xโ‰ฅ0x \ge 0) makes it one-to-one. Now invert:

y=x2ย (xโ‰ฅ0)โ†’swapx=y2โ‡’y=xy = x^2 \ (x \ge 0) \xrightarrow{\text{swap}} x = y^2 \Rightarrow y = \sqrt{x}

fโˆ’1(x)=x\boxed{f^{-1}(x) = \sqrt{x}}

The range of ff (here yโ‰ฅ0y \ge 0) becomes the domain of fโˆ’1f^{-1}, so fโˆ’1(x)=xf^{-1}(x) = \sqrt{x} is defined for xโ‰ฅ0x \ge 0.

Example: f(x)=xโˆ’4f(x) = \sqrt{x - 4}

y=xโˆ’4โ†’swapx=yโˆ’4โ‡’x2=yโˆ’4โ‡’y=x2+4y = \sqrt{x - 4} \xrightarrow{\text{swap}} x = \sqrt{y - 4} \Rightarrow x^2 = y - 4 \Rightarrow y = x^2 + 4

Because the original output xโˆ’4\sqrt{x-4} is never negative, fโˆ’1(x)=x2+4f^{-1}(x) = x^2 + 4 carries the restriction xโ‰ฅ0x \ge 0.

โš ๏ธ Always carry the domain restriction along โ€” without "xโ‰ฅ0x \ge 0," the formula x2+4x^2 + 4 would not be a true inverse.

Domain-Restricted Inverses ๐Ÿงฎ

1) f(x)=x2+1f(x) = x^2 + 1 with xโ‰ฅ0x \ge 0. Its inverse is fโˆ’1(x)=xโˆ’cf^{-1}(x) = \sqrt{x - c}. Enter c=โ€‰?c = \,? 2) Using that inverse, compute fโˆ’1(10)=โ€‰?f^{-1}(10) = \,? 3) A one-to-one function ff has range yโ‰ฅ3y \ge 3. What is the smallest xx-value in the domain of fโˆ’1f^{-1}? Enter it.

One-to-One Reasoning ๐Ÿ”ฝ

Part 5: Mixed Practice & Mastery Check

๐Ÿ”„ Inverse Functions

Part 5 of 5 โ€” Mixed Practice & Mastery Check


You can now (1) describe an inverse as an "undo," (2) find fโˆ’1f^{-1} by swap-and-solve, (3) verify with composition, and (4) handle graphs, one-to-one, and domain restrictions. Let's bring it all together.

Quick Reference

GoalKey move
Find fโˆ’1(x)f^{-1}(x)swap xโ†”yx \leftrightarrow y, then solve for yy
Verify inversescheck f(g(x))=xf(g(x)) = x and g(f(x))=xg(f(x)) = x
Inverse from a pointswap the pair: (a,b)โ†’(b,a)(a,b) \to (b,a)
Graph of fโˆ’1f^{-1}reflect ff across y=xy = x
Has an inverse function?passes the horizontal line test (one-to-one)
Domain / rangedomain of ff โ†” range of fโˆ’1f^{-1}

โš ๏ธ Remember: fโˆ’1(x)โ‰ 1f(x)f^{-1}(x) \ne \dfrac{1}{f(x)}, and always carry along any domain restriction.

Mixed Practice ๐ŸŽฏ

Apply It ๐Ÿงฎ

A temperature converter uses f(C)=95C+32f(C) = \dfrac{9}{5}C + 32 to turn Celsius into Fahrenheit. The inverse fโˆ’1(F)=59(Fโˆ’32)f^{-1}(F) = \dfrac{5}{9}(F - 32) converts back.

1) Convert 2020ยฐC to Fahrenheit: f(20)=โ€‰?f(20) = \,? (ยฐF) 2) Convert that result back: fโˆ’1(68)=โ€‰?f^{-1}(68) = \,? (ยฐC) 3) Convert 212212ยฐF to Celsius: fโˆ’1(212)=โ€‰?f^{-1}(212) = \,? (ยฐC)

Exit Quiz โœ…

Answer all three to finish the lesson.