Math Core

Lesson 4.6 · Radicals and Inverse Functions

Inverse functions

If a function turns Celsius into Fahrenheit, you'll eventually want a function that turns Fahrenheit back into Celsius. A function that undoes another one is its inverse. Inverses tie this unit together (roots undo powers) and set up the next one, where logarithms are defined as the inverses of exponential functions.

Undoing a function

Consider f(x)=2x+3f(x) = 2x + 3. It takes an input, multiplies by 2, then adds 3. To undo it, undo the steps in reverse order: subtract 3, then divide by 2. That gives

g(x)=x−32.g(x) = \frac{x - 3}{2}.

Try it: f(5)=13f(5) = 13, and g(13)=13−32=5g(13) = \dfrac{13 - 3}{2} = 5. The function gg took you right back where you started. Composition makes this precise.

Definition

Inverse functions

Functions ff and gg are inverses of each other if

f(g(x))=xfor every x in the domain of gandg(f(x))=xfor every x in the domain of f.f(g(x)) = x \quad \text{for every } x \text{ in the domain of } g \qquad \text{and} \qquad g(f(x)) = x \quad \text{for every } x \text{ in the domain of } f.

The inverse of ff is written f−1f^{-1}, read "ff inverse."

For the example above: f(g(x))=2(x−32)+3=x−3+3=xf(g(x)) = 2\left(\dfrac{x - 3}{2}\right) + 3 = x - 3 + 3 = x and g(f(x))=(2x+3)−32=xg(f(x)) = \dfrac{(2x + 3) - 3}{2} = x. Both compositions give xx, so g=f−1g = f^{-1}.

Common mistake

The −1-1 in f−1f^{-1} is not an exponent. f−1(x)f^{-1}(x) means the inverse function, not 1f(x)\dfrac{1}{f(x)}. For f(x)=2x+3f(x) = 2x + 3, f−1(x)=x−32f^{-1}(x) = \dfrac{x - 3}{2}, while 1f(x)=12x+3\dfrac{1}{f(x)} = \dfrac{1}{2x + 3}, a completely different function.

Inverses swap inputs and outputs

If f(a)=bf(a) = b, then f−1(b)=af^{-1}(b) = a. So every point (a,b)(a, b) on the graph of ff becomes the point (b,a)(b, a) on the graph of f−1f^{-1}. Two consequences follow:

  • The domain of f−1f^{-1} is the range of ff, and the range of f−1f^{-1} is the domain of ff.
  • Swapping coordinates reflects a point across the line y=xy = x. So the graph of f−1f^{-1} is the reflection of the graph of ff across y=xy = x.
f(x) = x³ + 1 and its inverse f⁻¹(x) = ∛(x − 1) are mirror images across the dashed line y = x. The point (1, 2) on f matches (2, 1) on f⁻¹.Open in grapher →

Finding an inverse algebraically

Since an inverse swaps the roles of xx and yy, you can find it by literally swapping them.

Finding the inverse of a function

  1. Replace f(x)f(x) with yy.
  2. Swap xx and yy.
  3. Solve the new equation for yy.
  4. Replace yy with f−1(x)f^{-1}(x). State any domain restriction, and check by composition if you like.

Worked example: Inverses of linear and cubic functions

Find the inverse of each function.

  1. f(x)=x4−5f(x) = \dfrac{x}{4} - 5
  2. f(x)=2x3+1f(x) = 2x^3 + 1

Solutions.

  1. Write y=x4−5y = \dfrac{x}{4} - 5 and swap: x=y4−5x = \dfrac{y}{4} - 5. Solve: x+5=y4x + 5 = \dfrac{y}{4}, so y=4(x+5)=4x+20y = 4(x + 5) = 4x + 20. Thus f−1(x)=4x+20f^{-1}(x) = 4x + 20.
  2. Write y=2x3+1y = 2x^3 + 1 and swap: x=2y3+1x = 2y^3 + 1. Solve for yy:
x−1=2y3x−12=y3y=x−123\begin{aligned} x - 1 &= 2y^3 \\ \frac{x - 1}{2} &= y^3 \\ y &= \sqrt[3]{\frac{x - 1}{2}} \end{aligned}

So f−1(x)=x−123f^{-1}(x) = \sqrt[3]{\dfrac{x - 1}{2}}. Check one value: f(1)=3f(1) = 3, and f−1(3)=13=1f^{-1}(3) = \sqrt[3]{1} = 1. ✓

When does a function have an inverse?

Not every function can be undone. For f(x)=x2f(x) = x^2, both f(3)f(3) and f(−3)f(-3) equal 99. An "inverse" would have to send 99 back to both 33 and −3-3, and a function can't give two outputs for one input.

A function has an inverse function exactly when it is one-to-one: different inputs always give different outputs. On a graph, that means no horizontal line crosses the graph more than once.

The horizontal line test

A function has an inverse that is a function if and only if no horizontal line intersects its graph more than once. Such a function is called one-to-one.

Lines with nonzero slope, y=x3y = x^3, and y=xy = \sqrt{x} pass the test. Parabolas, y=∣x∣y = |x|, and y=x4y = x^4 fail it.

Restricting the domain

You can often make a function one-to-one by keeping only part of its domain. If you restrict f(x)=x2f(x) = x^2 to x≥0x \ge 0, the graph is half a parabola, which passes the horizontal line test, and its inverse is f−1(x)=xf^{-1}(x) = \sqrt{x}. This is exactly why   \sqrt{\ \ } gives only the nonnegative root: it undoes squaring on the restricted domain x≥0x \ge 0.

Worked example: An inverse on a restricted domain

Find the inverse of f(x)=(x−3)2f(x) = (x - 3)^2 for x≥3x \ge 3.

The restriction makes ff one-to-one. Its domain is x≥3x \ge 3 and its range is y≥0y \ge 0.

Swap: x=(y−3)2x = (y - 3)^2. Take square roots. Because y≥3y \ge 3 (the old domain becomes the new range), y−3≥0y - 3 \ge 0, so use the positive root only:

x=y−3,y=x+3.\sqrt{x} = y - 3, \qquad y = \sqrt{x} + 3.

So f−1(x)=x+3f^{-1}(x) = \sqrt{x} + 3, with domain x≥0x \ge 0 (the range of ff).

f(x) = (x − 3)² for x ≥ 3 and its inverse f⁻¹(x) = √x + 3, reflected across the dashed line y = x.Open in grapher →

Inverses of radical functions

A radical function's inverse is a power function, but the domain restriction carries over. Take f(x)=x+4f(x) = \sqrt{x + 4}. Its domain is x≥−4x \ge -4 and its range is y≥0y \ge 0. Swapping and solving: x=y+4x = \sqrt{y + 4}, so x2=y+4x^2 = y + 4 and y=x2−4y = x^2 - 4. Since the range of ff is y≥0y \ge 0, the inverse is

f−1(x)=x2−4,x≥0.f^{-1}(x) = x^2 - 4, \quad x \ge 0.

Without the restriction x≥0x \ge 0, you'd have a full parabola, which is not the inverse of ff.

Tip

After finding an inverse, pick a simple input, run it through ff, then run the output through your f−1f^{-1}. If you get the original input back, your inverse is almost certainly right.

Practice

Practice 1

Find f−1(x)f^{-1}(x) for f(x)=4x+7f(x) = 4x + 7.

Enter an expression, e.g. 3x^2 - 2x + 1

Practice 2

A one-to-one function ff has f(1)=4f(1) = 4, f(3)=−2f(3) = -2 and f(5)=0f(5) = 0. Find f−1(0)f^{-1}(0).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Find f−1(x)f^{-1}(x) for f(x)=x3−2f(x) = \dfrac{x}{3} - 2.

Enter an expression, e.g. 3x^2 - 2x + 1

Practice 4

Find f−1(x)f^{-1}(x) for f(x)=x+53f(x) = \sqrt[3]{x + 5}.

Enter an expression, e.g. 3x^2 - 2x + 1

Practice 5

Find f−1(x)f^{-1}(x) for f(x)=2x3−3f(x) = 2x^3 - 3. (Type a cube root as cbrt( ).)

Enter an expression, e.g. 3x^2 - 2x + 1

Practice 6

Which function has an inverse that is also a function?

Practice 7

Let f(x)=x−2f(x) = \sqrt{x - 2} with domain x≥2x \ge 2. Which is f−1f^{-1}?

Practice 8

Find f−1(x)f^{-1}(x) for f(x)=2x+1x−3f(x) = \dfrac{2x + 1}{x - 3}.

Enter an expression, e.g. 3x^2 - 2x + 1