Unit 4, lesson 34

Inverse Functions and Domain Restrictions

When a function can be reversed, how to build and verify its inverse, and how to restrict a function such as a shifted square so that a chosen branch has an inverse.

  • Theory part 67
  • Practice part 68
  • Combining and Inverting Functions

A function answers the question “given this input, what comes out?” Often you need the reverse question. Which temperature gave this reading, which time gave this height, which angle gave this sine? An inverse function answers it, but only when every output comes from exactly one input. When that fails, you keep one piece of the function and reverse that piece.

Key terms

One-to-one

Definition A function ff with domain DD is one-to-one on DD if different inputs always give different outputs. Equivalently, for all aa and bb in DD,

f(a)=f(b)  ⟹  a=b.f(a) = f(b) \implies a = b.

Being one-to-one is a property of the rule together with its stated domain. The same rule can be one-to-one on one domain and not on another.

In plain words No output is shared. If you know the output, there is only one input it could have come from.

Example For f(x)=3x+5f(x) = 3x + 5 on all real numbers, 3a+5=3b+53a + 5 = 3b + 5 forces a=ba = b, so ff is one-to-one. The square function is not one-to-one on all real numbers, since (−2)2=22=4(-2)^2 = 2^2 = 4 with −2≠2-2 \ne 2. On [0,∞)[0, \infty) it is one-to-one, because two nonnegative numbers with equal squares are equal.

Horizontal line test

Definition A function is one-to-one on its domain exactly when every horizontal line y=cy = c meets its graph, drawn over that domain only, in at most one point. A line that misses the graph is fine, since it only means cc is not an output. A line that meets the graph twice shows an output attained at two allowed inputs.

In plain words Slide a horizontal line up and down. If it ever cuts the graph twice, two inputs share an output and the function cannot be reversed as it stands.

Example The line y=4y = 4 meets the parabola y=x2y = x^2 at (−2,4)(-2, 4) and (2,4)(2, 4), so the square function fails on all real numbers. The graph of y=x3y = x^3 is increasing everywhere, so no horizontal line meets it twice and the cube function passes. In fact each horizontal line meets it exactly once, since every real number is a cube. A sketch makes the test easy to read, but the algebra of the previous section is what proves it.

Inverse function

Definition Let ff be one-to-one with domain AA and range BB. Its inverse function f−1f^{-1} has domain BB and range AA and is defined by

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

Because ff is one-to-one, each yy in BB comes from exactly one xx in AA, so f−1f^{-1} really gives a single output. The domain of the inverse is the range of the original, and the range of the inverse is the domain of the original.

In plain words The inverse takes an output of ff and returns the unique input that produced it.

Example Take f(x)=3x+5f(x) = 3x + 5 on all real numbers, with range all real numbers. Solving y=3x+5y = 3x + 5 for xx gives x=y−53x = \frac{y - 5}{3}, so

f−1(x)=x−53.f^{-1}(x) = \frac{x - 5}{3}.

Since f(2)=11f(2) = 11, the inverse must send 1111 back to 22, and indeed 11−53=2\frac{11 - 5}{3} = 2.

Undoing a function

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, if a function gg with domain BB satisfies g(f(x))=xg(f(x)) = x for every xx in AA and f(g(y))=yf(g(y)) = y for every yy in BB, then g=f−1g = f^{-1}. Checking both compositions is how you verify a proposed inverse.

In plain words The inverse undoes the steps of ff in reverse order, like taking off shoes before socks. Doing one and then the other brings you back to where you started.

Example The function f(x)=3x+5f(x) = 3x + 5 multiplies by 33 and then adds 55. Undoing in reverse order means subtracting 55 and then dividing by 33, which is the formula found above. Both checks work for every real xx.

f−1(f(x))=(3x+5)−53=x,f(f−1(x))=3⋅x−53+5=x.\begin{aligned} f^{-1}(f(x)) &= \frac{(3x + 5) - 5}{3} = x, \\[0.4em] f(f^{-1}(x)) &= 3 \cdot \frac{x - 5}{3} + 5 = x. \end{aligned}

Swapped coordinates

Definition For a one-to-one function ff, the point (a,b)(a, b) lies on the graph of ff exactly when the point (b,a)(b, a) lies on the graph of f−1f^{-1}. Swapping the coordinates of every point also swaps the sets of first and second coordinates, which is why the domain and range trade places.

In plain words Every input and output pair of ff shows up in the inverse with its two numbers in the other order.

Example The function f(x)=x+1f(x) = \sqrt{x + 1} has domain [−1,∞)[-1, \infty) and range [0,∞)[0, \infty). Solving y=x+1y = \sqrt{x + 1} gives x=y2−1x = y^2 - 1, and because the inverse accepts only outputs of ff,

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

The points (−1,0)(-1, 0), (0,1)(0, 1) and (3,2)(3, 2) on the graph of ff become (0,−1)(0, -1), (1,0)(1, 0) and (2,3)(2, 3) on the graph of the inverse. The condition x≥0x \ge 0 is part of the answer. Without it the formula would send −2-2 to 33, while f(3)=2f(3) = 2, not −2-2.

Reflection across the line y = x

Definition 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). Hence the graph of f−1f^{-1} is the mirror image of the graph of ff across the line y=xy = x. The picture looks like a true mirror image only when both axes use the same scale.

In plain words Fold the plane along the diagonal line y=xy = x. The graph of ff lands exactly on the graph of its inverse.

Example For f(x)=2x−4f(x) = 2x - 4 the inverse is f−1(x)=x+42f^{-1}(x) = \frac{x + 4}{2}. The point (3,2)(3, 2) is on the graph of ff and (2,3)(2, 3) is on the graph of the inverse. The segment between them has midpoint (2.5,2.5)(2.5, 2.5), which lies on y=xy = x, and slope

3−22−3=−1,\frac{3 - 2}{2 - 3} = -1,

so it crosses the line y=xy = x, of slope 11, at a right angle.

Restricted domain

Definition If ff is not one-to-one, choose a subset DD of its domain on which it is one-to-one, usually an interval where ff is increasing or decreasing. The restriction of ff to DD is a new 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 inverse belongs to the restricted function, not to the original one, and a different choice of DD gives a different inverse, so the choice must always be stated.

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

Example The shifted square function f(x)=(x−2)2+1f(x) = (x - 2)^2 + 1 sends both 00 and 44 to 55, so it is not one-to-one. Its vertex is (2,1)(2, 1), and it is increasing on [2,∞)[2, \infty), where its outputs fill [1,∞)[1, \infty). On that branch x−2≥0x - 2 \ge 0, so solving (x−2)2=y−1(x - 2)^2 = y - 1 takes the nonnegative root, x−2=y−1x - 2 = \sqrt{y - 1}. The chosen inverse is

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

with range [2,∞)[2, \infty). As a check, f(4)=5f(4) = 5 and f−1(5)=2+2=4f^{-1}(5) = 2 + 2 = 4. On the other branch (−∞,2](-\infty, 2] the inverse would be 2−x−12 - \sqrt{x - 1}, which sends 55 to 00. Applying the chosen inverse to the unrestricted function gives f−1(f(x))=2+∣x−2∣f^{-1}(f(x)) = 2 + \lvert x - 2 \rvert, which equals xx only when x≥2x \ge 2, exactly the chosen domain.

Inverse versus reciprocal

Definition The symbol f−1f^{-1} means the inverse function, not the reciprocal. The reciprocal of ff is the function

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

defined where f(x)f(x) exists and f(x)≠0f(x) \ne 0. With an exponent it is written (f(x))−1(f(x))^{-1}. The two are different functions in general.

In plain words The −1-1 in f−1f^{-1} means run ff backwards. It does not mean one over ff.

Example Let f(x)=x3+1f(x) = x^3 + 1. Its inverse is f−1(x)=x−13f^{-1}(x) = \sqrt[3]{x - 1}, while its reciprocal is 1x3+1\frac{1}{x^3 + 1}. At x=9x = 9 the inverse gives 83=2\sqrt[3]{8} = 2, while the reciprocal gives 1730\frac{1}{730}.

Check yourself

  1. Find the inverse of f(x)=7−2xf(x) = 7 - 2x and verify it with both compositions.
Show the answer

Solving y=7−2xy = 7 - 2x gives x=7−y2x = \frac{7 - y}{2}, so f−1(x)=7−x2f^{-1}(x) = \frac{7 - x}{2}. The checks hold for every real xx.

f(f−1(x))=7−(7−x)=x,f−1(f(x))=7−(7−2x)2=x.\begin{aligned} f(f^{-1}(x)) &= 7 - (7 - x) = x, \\[0.4em] f^{-1}(f(x)) &= \frac{7 - (7 - 2x)}{2} = x. \end{aligned}
  1. The function f(x)=(x+3)2−5f(x) = (x + 3)^2 - 5 is restricted to x≤−3x \le -3. Find the inverse of this restriction with its domain and range.
Show the answer

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

f−1(x)=−3−x+5,x≥−5,\begin{gathered} f^{-1}(x) = -3 - \sqrt{x + 5}, \\[0.4em] x \ge -5, \end{gathered}

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

  1. Is g(x)=x2−4xg(x) = x^2 - 4x one-to-one on [1,∞)[1, \infty)? If not, give the largest interval of the form [c,∞)[c, \infty) on which it is.
Show the answer

It is not, since g(1)=−3g(1) = -3 and g(3)=−3g(3) = -3. The vertex is at x=2x = 2 and the function increases from there, so gg is one-to-one on [2,∞)[2, \infty), and on no longer interval of that form.

How this lesson connects