Unit 1, lesson 17

Inverse Functions and Domain Restriction

What an inverse function is, why its domain is the range of the original, how to find its formula and graph, and how to restrict a function that is not one-to-one so it can be inverted.

  • Theory part 33
  • Practice part 34
  • Combining and Inverting Functions

To turn a Celsius reading into Fahrenheit you multiply by 95\frac{9}{5} and add 3232. To go back you undo those steps in reverse order, subtract 3232 and then multiply by 59\frac{5}{9}. An inverse function is that return trip. It exists only when every output comes from exactly one input, and when that fails you can often repair it by keeping only part of the domain.

Key terms

Inverse function

Definition Let ff be a one-to-one function with domain AA and range BB. The inverse function of ff is the function f−1f^{-1} with domain BB given by

f−1(y)=xexactly whenf(x)=y,y∈B.\begin{gathered} f^{-1}(y) = x \\[0.4em] \text{exactly when} \\[0.4em] f(x) = y, \qquad y \in B. \end{gathered}

Because ff is one-to-one, each yy in BB comes from exactly one xx in AA, so this rule gives a single output and f−1f^{-1} really is a function. A function that is not one-to-one has no inverse function on its whole domain.

In plain words Picture ff as a mapping that sends each input along an arrow to its output. The inverse mapping reverses every arrow, so where ff sends xx to yy, the inverse sends yy back to xx.

Example Take the function on {1,2,3}\{1, 2, 3\} with f(1)=4f(1) = 4, f(2)=7f(2) = 7 and f(3)=−1f(3) = -1. Reversing each arrow gives f−1(4)=1f^{-1}(4) = 1, f−1(7)=2f^{-1}(7) = 2 and f−1(−1)=3f^{-1}(-1) = 3. If instead f(3)f(3) were 44, the reversed rule would have to send 44 to both 11 and 33, and there would be no inverse function.

Inverse versus reciprocal

Definition The symbol f−1f^{-1} names the inverse function. It does not mean the reciprocal. The reciprocal of ff is the function 1f\frac{1}{f} given by

(1f)(x)=1f(x),\left(\frac{1}{f}\right)(x) = \frac{1}{f(x)},

defined for those xx in the domain of ff with f(x)≠0f(x) \ne 0. With an exponent it is written (f(x))−1(f(x))^{-1}, with parentheses around the output. The two are usually different, so never read f−1(x)f^{-1}(x) as 1f(x)\frac{1}{f(x)}.

In plain words The −1-1 in f−1f^{-1} means undo ff, not one over ff. The reciprocal flips each output upside down. The inverse runs the whole function backwards.

Example The function f(x)=2x+3f(x) = 2x + 3 doubles and then adds 33, so its inverse subtracts 33 and then halves, f−1(x)=x−32f^{-1}(x) = \frac{x - 3}{2}. Its reciprocal is 12x+3\frac{1}{2x + 3}. At x=5x = 5 they give different numbers.

f−1(5)=5−32=1,1f(5)=113.\begin{gathered} f^{-1}(5) = \frac{5 - 3}{2} = 1, \\[0.8em] \frac{1}{f(5)} = \frac{1}{13}. \end{gathered}

Domain and range swap

Definition If ff is one-to-one with domain AA and range BB, then f−1f^{-1} has domain BB and range AA. The domain of f−1f^{-1} is therefore the range of ff, which can be smaller than the set of numbers where the formula for f−1f^{-1} happens to make sense.

In plain words Inputs and outputs trade places. Whatever ff can produce is exactly what f−1f^{-1} accepts.

Example The function g(x)=x−2g(x) = \sqrt{x - 2} has domain [2,∞)[2, \infty) and range [0,∞)[0, \infty). Squaring y=x−2y = \sqrt{x - 2} and solving gives x=y2+2x = y^2 + 2, so its inverse is

g−1(x)=x2+2,x≥0,g^{-1}(x) = x^2 + 2, \qquad x \ge 0,

with range [2,∞)[2, \infty). The condition x≥0x \ge 0 is part of the answer. Without it the formula would also send −3-3 to 1111, yet g(11)=3g(11) = 3, not −3-3.

Reflection of the graph

Definition Let ff be one-to-one. A point (a,b)(a, b) lies on the graph of ff exactly when (b,a)(b, a) lies on the graph of f−1f^{-1}. For a≠ba \ne b the line y=xy = x is the perpendicular bisector of the segment joining (a,b)(a, b) and (b,a)(b, a), so the two points are mirror images across that line. Hence the graph of f−1f^{-1} is the reflection of the graph of ff across the line y=xy = x. The picture looks like a mirror image only when both axes use the same scale.

In plain words Swap the two coordinates of every point on the graph. Geometrically that folds the picture over the diagonal line y=xy = x.

Example The function f(x)=x3f(x) = x^3 is one-to-one with inverse f−1(x)=x3f^{-1}(x) = \sqrt[3]{x}. The points (1,1)(1, 1), (2,8)(2, 8) and (−2,−8)(-2, -8) on the cube curve become (1,1)(1, 1), (8,2)(8, 2) and (−8,−2)(-8, -2) on the cube root curve. The segment from (2,8)(2, 8) to (8,2)(8, 2) has its midpoint (5,5)(5, 5) on the line y=xy = x and slope −1-1, so it crosses that line at a right angle. Points on the line itself, such as (1,1)(1, 1), stay where they are.

Solving for the inverse

Definition To find a formula for the inverse of a one-to-one function ff, write y=f(x)y = f(x) and solve for xx in terms of yy. If each yy in the range of ff gives exactly one solution xx in the domain of ff, that solution is f−1(y)f^{-1}(y). Renaming the variable then gives f−1(x)f^{-1}(x) in the usual letter. The domain of f−1f^{-1} is still the range of ff, so find that range as part of the work.

In plain words Treat the formula as an equation and get xx by itself. The result tells you which input produced a given output.

Example Let f(x)=2x+1x−3f(x) = \frac{2x + 1}{x - 3} for x≠3x \ne 3. Set yy equal to it, clear the denominator and collect the xx terms.

y(x−3)=2x+1⟹xy−2x=3y+1⟹x=3y+1y−2.\begin{aligned} &y(x - 3) = 2x + 1 \\[0.4em] &\Longrightarrow \quad xy - 2x = 3y + 1 \\[0.4em] &\Longrightarrow \quad x = \frac{3y + 1}{y - 2}. \end{aligned}

The last step divides by y−2y - 2, so it needs y≠2y \ne 2. Indeed f(x)=2f(x) = 2 has no solution, because it would force 2x−6=2x+12x - 6 = 2x + 1. For every other yy the formula gives an allowed input, since x=3x = 3 would force 3y+1=3y−63y + 1 = 3y - 6. So the range of ff is every real number except 22, and

f−1(x)=3x+1x−2,x≠2.f^{-1}(x) = \frac{3x + 1}{x - 2}, \qquad x \ne 2.

As a check, the inverse gives f−1(5)=163f^{-1}(5) = \frac{16}{3}, and

f(163)=35/37/3=5.f\left(\frac{16}{3}\right) = \frac{35/3}{7/3} = 5.

Restricting to a one-to-one branch

Definition Let ff be a function that is not one-to-one, and let DD be a subset of its domain on which ff is one-to-one. One-to-one functions are also called injective, so the piece of ff over DD is an injective branch. The restriction of ff to DD is the function with the same rule and domain DD. It has an inverse, whose domain is the set of outputs f(x)f(x) with xx in DD and whose range is DD. The usual choice is an interval DD on which ff is increasing or decreasing and on which ff still takes every value it takes anywhere. Different choices of DD give different inverses, so the choice must always be stated.

In plain words Keep only a piece of the graph that passes the horizontal line test, then invert that piece.

Example The function f(x)=(x−1)2+2f(x) = (x - 1)^2 + 2 sends both 00 and 22 to 33, so it is not one-to-one. Its graph is a parabola with lowest point (1,2)(1, 2), and it is increasing on [1,∞)[1, \infty). On that branch, solving y=(x−1)2+2y = (x - 1)^2 + 2 gives (x−1)2=y−2(x - 1)^2 = y - 2, and since x−1≥0x - 1 \ge 0 there we take the nonnegative square root.

f−1(x)=1+x−2,x≥2.f^{-1}(x) = 1 + \sqrt{x - 2}, \qquad x \ge 2.

On the other branch (−∞,1](-\infty, 1] we have x−1≤0x - 1 \le 0, so the inverse there is 1−x−21 - \sqrt{x - 2}, also with domain [2,∞)[2, \infty). The first inverse sends 33 to 22 and the second sends 33 to 00, the two inputs that ff sent to 33.

Composition identities

Definition If ff is one-to-one with domain AA and range BB, then

f−1(f(x))=x  for every x∈A,f(f−1(y))=y  for every y∈B.\begin{gathered} f^{-1}(f(x)) = x \ \text{ for every } x \in A, \\[0.4em] f(f^{-1}(y)) = y \ \text{ for every } y \in B. \end{gathered}

Conversely, suppose a function gg has domain BB, that f(x)f(x) is in BB and g(f(x))=xg(f(x)) = x for every xx in AA, and that g(y)g(y) is in AA and f(g(y))=yf(g(y)) = y for every yy in BB. Then ff is one-to-one with range BB, and g=f−1g = f^{-1}.

In plain words Doing ff and then f−1f^{-1}, or the other way around, brings you back to where you started. Checking both compositions is the standard way to confirm a proposed inverse, and both identities hold only on the stated domains.

Example Take f(x)=x3−1f(x) = x^3 - 1 and g(x)=x+13g(x) = \sqrt[3]{x + 1}, both defined for all real numbers. Then

g(f(x))=x33=x,f(g(x))=(x+1)−1=x,\begin{aligned} g(f(x)) &= \sqrt[3]{x^3} = x, \\[0.4em] f(g(x)) &= (x + 1) - 1 = x, \end{aligned}

so g=f−1g = f^{-1}. Domains matter for f(x)=x2f(x) = x^2 restricted to [0,∞)[0, \infty), whose inverse is x\sqrt{x}. There x2=x\sqrt{x^2} = x for every x≥0x \ge 0, but at x=−3x = -3 the same expression gives (−3)2=3\sqrt{(-3)^2} = 3. That is no contradiction, because −3-3 is not in the domain of the restricted function.

Check yourself

  1. Find the inverse of f(x)=3x−2x+1f(x) = \frac{3x - 2}{x + 1}, where x≠−1x \ne -1, and state its domain.
Show the answer

From y(x+1)=3x−2y(x + 1) = 3x - 2 we get x(y−3)=−y−2x(y - 3) = -y - 2, so

f−1(x)=x+23−x,x≠3.f^{-1}(x) = \frac{x + 2}{3 - x}, \qquad x \ne 3.

The value 33 is not in the range of ff, since 3x+3=3x−23x + 3 = 3x - 2 is impossible. As a check, f(0)=−2f(0) = -2 and f−1(−2)=0f^{-1}(-2) = 0.

  1. The function f(x)=(x−3)2−4f(x) = (x - 3)^2 - 4 is restricted to x≤3x \le 3. Find f−1f^{-1} together with its domain and range.
Show the answer

On this branch the outputs fill [−4,∞)[-4, \infty). From (x−3)2=y+4(x - 3)^2 = y + 4 and x−3≤0x - 3 \le 0 we get x−3=−y+4x - 3 = -\sqrt{y + 4}, so

f−1(x)=3−x+4,x≥−4,f^{-1}(x) = 3 - \sqrt{x + 4}, \qquad x \ge -4,

with range (−∞,3](-\infty, 3]. As a check, f−1(5)=0f^{-1}(5) = 0 and f(0)=5f(0) = 5.

  1. For f(x)=4x−1f(x) = 4x - 1, compute f−1(3)f^{-1}(3) and 1f(3)\frac{1}{f(3)}.
Show the answer

Solving 4x−1=34x - 1 = 3 gives x=1x = 1, so f−1(3)=1f^{-1}(3) = 1. Since f(3)=11f(3) = 11, the reciprocal is 1f(3)=111\frac{1}{f(3)} = \frac{1}{11}. The two numbers differ, as they usually do.

How this lesson connects