7.2 Inverse Functions

Learning Outcomes

  • Given a table or graph, determine if a function is one-to-one.
  • Find the inverse of a linear function.
  • Determine if two functions are inverses by finding [latex]f(f^{-1}(x))[/latex] and [latex]f^{-1}(f(x))[/latex].
  • Graph a linear function and its inverse on the same axes.

One-to-One Functions

Recall that in a function, the input value must have one and only one value for the output. The set of input values is the domain of the function and the set of output values is the range of the function.

Example

Find the domain and range for the function.

[latex]x[/latex] [latex]y[/latex]
[latex]−5[/latex] [latex]−6[/latex]
[latex]−2[/latex] [latex]−1[/latex]
[latex]−1[/latex] [latex]0[/latex]
[latex]0[/latex] [latex]3[/latex]
[latex]5[/latex] [latex]15[/latex]

Some functions have a given output value that corresponds to two or more input values. For example, in the following stock chart the stock price was [latex]$1000[/latex] on five different dates, meaning that there were five different input values that all resulted in the same output value of [latex]$1000[/latex].

Figure of a bull and a graph of market prices.

However, some functions have only one input value for each output value as well as having only one output value for each input value. We call these functions one-to-one functions. As an example, consider a school that uses only letter grades and decimal equivalents as listed below.

Letter grade Grade point average
A [latex]4.0[/latex]
B [latex]3.0[/latex]
C [latex]2.0[/latex]
D [latex]1.0[/latex]

This grading system represents a one-to-one function, because each letter input yields one particular grade point average output and each grade point average corresponds to one input letter.

To visualize this concept, look at the two simple functions sketched in (a) and (b) below. Note that (c) is not a function since the input q produces two outputs, y and z.

Three relations that demonstrate what constitute a function.

The function in part (a) shows a relationship that is not a one-to-one function because inputs [latex]q[/latex] and [latex]r[/latex] both give output [latex]n[/latex]. The function in part (b) shows a relationship that is a one-to-one function because each input is associated with a single output.

One-to-One Function

A one-to-one function is a function in which each output value corresponds to exactly one input value.

 

Example

Determine whether each of the following tables represents a one-to-one function.

a)

Input Output
[latex]1[/latex] [latex]5[/latex]
[latex]12[/latex] [latex]2[/latex]
[latex]0[/latex] [latex]-1[/latex]
[latex]4[/latex] [latex]2[/latex]
[latex]-5[/latex] [latex]0[/latex]

b)

Input Output
[latex]4[/latex] [latex]8[/latex]
[latex]8[/latex] [latex]16[/latex]
[latex]16[/latex] [latex]32[/latex]
[latex]32[/latex] [latex]64[/latex]
[latex]64[/latex] [latex]128[/latex]

 

In the following video, we show an example of using tables of values to determine whether a function is one-to-one.

Using the Horizontal Line Test

An easy way to determine whether a function is a one-to-one function is to use the horizontal line test on the graph of the function.  To do this, draw horizontal lines through the graph. If any horizontal line intersects the graph more than once, then the graph does not represent a one-to-one function.

EXAMPLE

For the following graphs, determine which represent one-to-one functions.

Graph of a polynomial.

The following video provides another example of using the horizontal line test to determine whether a graph represents a one-to-one function.

Inverse Functions

Given a one-to-one function [latex]f\left(x\right)[/latex], we represent its inverse as [latex]{f}^{-1}\left(x\right)[/latex], read as “[latex]f[/latex] inverse of [latex]x[/latex].” The superscript [latex]-1[/latex] is part of the notation. It is not an exponent; it does not imply a power of [latex]-1[/latex] . In other words, [latex]{f}^{-1}\left(x\right)[/latex] does not mean [latex]\dfrac{1}{f\left(x\right)}[/latex]. Instead, [latex]\dfrac{1}{f\left(x\right)}[/latex] is the reciprocal of [latex]f[/latex], not the inverse.

Inverse Function

For any one-to-one function [latex]f\left(x\right)=y[/latex], a function [latex]{f}^{-1}\left(x\right)[/latex] is an inverse function of [latex]f[/latex] if [latex]{f}^{-1}\left(y\right)=x[/latex]. This can also be written as [latex]{f}^{-1}\left(f\left(x\right)\right)=x[/latex] for all [latex]x[/latex] in the domain of [latex]f[/latex]. It also follows that [latex]f\left({f}^{-1}\left(x\right)\right)=x[/latex] for all [latex]x[/latex] in the domain of [latex]{f}^{-1}[/latex] if [latex]{f}^{-1}[/latex] is the inverse of [latex]f[/latex].

The notation [latex]{f}^{-1}[/latex] is read “[latex]f[/latex] inverse.” Like any other function, we can use any variable name as the input for [latex]{f}^{-1}[/latex], so we will often write [latex]{f}^{-1}\left(x\right)[/latex], which we read as [latex]"f[/latex] inverse of [latex]x[/latex]“.

Why -1?

The “exponent-like” notation comes from an analogy between function composition and multiplication: just as [latex]{a}^{-1}a=1[/latex] for any nonzero number [latex]a[/latex], so [latex]\left({f}^{-1}\circ f\right)\left(x\right)={f}^{-1}\left(f\left(x\right)\right)={f}^{-1}\left(y\right)=x[/latex]. This is true for all [latex]x[/latex] in the domain of [latex]f[/latex]. Informally, this means that inverse functions “undo” each other. However, just as zero does not have a reciprocal, some functions do not have inverses.

Example: Identifying an Inverse Function for a Given Input-Output Pair

If for a particular one-to-one function [latex]f\left(2\right)=4[/latex] and [latex]f\left(5\right)=12[/latex], what are the corresponding input and output values for the inverse function?

Try It

Given that [latex]{h}^{-1}\left(6\right)=2[/latex], what are the corresponding input and output values of the original function [latex]h?[/latex]

Verify that Functions are Inverses

Given a function [latex]f\left(x\right)[/latex], we can verify whether some other function [latex]g\left(x\right)[/latex] is the inverse of [latex]f\left(x\right)[/latex] by checking whether both [latex]g\left(f\left(x\right)\right)=x[/latex] and [latex]f\left(g\left(x\right)\right)=x[/latex].

For example, [latex]y=4x[/latex] and [latex]y=\dfrac{1}{4}x[/latex] are inverse functions.

[latex]\left({f}^{-1}\circ f\right)\left(x\right)={f}^{-1}\left(f\left(x\right)\right)={f}^{-1}\left(4x\right)=\dfrac{1}{4}\left(4x\right)=x[/latex]

and

[latex]\left({f}^{}\circ {f}^{-1}\right)\left(x\right)=f\left({f}^{-1}\left(x\right)\right)=f\left(\dfrac{1}{4}x\right)=4\left(\dfrac{1}{4}x\right)=x[/latex]

Verify that two functions [latex]f\left(x\right)[/latex] and [latex]g\left(x\right)[/latex] are inverses

  1. Determine whether [latex]f\left(g\left(x\right)\right)=x[/latex] and [latex]g\left(f\left(x\right)\right)=x[/latex].
  2. If both statements are true, then [latex]g={f}^{-1}[/latex] and [latex]f={g}^{-1}[/latex]. If either statement is false, then [latex]g\ne {f}^{-1}[/latex] and [latex]f\ne {g}^{-1}[/latex].

Example: Testing Inverse Relationships Algebraically

If [latex]f\left(x\right)=3x-2[/latex] and [latex]g\left(x\right)=\dfrac{x+2}{3}[/latex], are [latex]g[/latex] and [latex]f[/latex] inverse functions?

These videos have more examples of algebraically verifying if two functions are inverse functions.

Finding Inverses of Linear Functions

If we have a linear function given as a formula—for example, [latex]y[/latex] as a function of [latex]x[/latex]—we can find the inverse function by solving to obtain [latex]x[/latex] as a function of [latex]y[/latex].

Find the inverse of a linear function

  1. Verify that [latex]f[/latex] is a one-to-one function.
  2. Replace [latex]f\left(x\right)[/latex] with [latex]y[/latex].
  3. Interchange [latex]x[/latex] and [latex]y[/latex].
  4. Solve for [latex]y[/latex], and rename the function [latex]{f}^{-1}\left(x\right)[/latex].

This video demonstrates finding the inverse of a linear function.

Example: Inverting the Fahrenheit-to-Celsius Function

Find a formula for the inverse function that gives Fahrenheit temperature as a function of Celsius temperature.

[latex]C=\frac{5}{9}\left(F - 32\right)[/latex]

Try It

Find the inverse function of the one-to-one function [latex]f\left(x\right)=\frac{1}{3}\left(x - 5\right)[/latex].

 

Graph a Linear Function and its Inverse

To graph the inverse of a linear function, one approach is to find two or more points on the graph of the linear function. Then simply switch the [latex]x[/latex]– and [latex]y[/latex]-coordinates of each point to find points that lie on the graph of the inverse function. Then use these points to graph the inverse function. For example, [latex](0, 0)[/latex] and [latex](1, 2)[/latex] are two points that lie on the graph of the function [latex]f(x)=2x[/latex]. To graph the inverse function, switch the [latex]x[/latex]– and [latex]y[/latex]-coordinates of these points to get [latex](0, 0)[/latex] and [latex](2, 1)[/latex]. The graph of the inverse function will be the line that passes through the two points [latex](0, 0)[/latex] and [latex](2, 1)[/latex] (See below).

Graph of the function [latex]f(x)=2x[/latex] and its inverse.

Example

Use the graph of the linear function [latex]f(x)=4x-2[/latex] to graph the inverse function.

 

Graph of f(x)=4x-2

Graph of [latex]f(x)=4x-2[/latex]

Try It

Use the graphs of the linear functions to graph their inverse functions.

1.

Graph of f(x)=-3x+5

Graph of [latex]f(x)=-3x+5[/latex]

1.

Graph of f(x)=4/3 x+2

Graph of [latex]f(x)=\frac{4}{3}x+2[/latex]

Example

Find the inverse of the function [latex]f(x)=\frac{2}{5}x+2[/latex], then graph the function and its inverse.

Inverse Functions and Symmetry

The graph of any function and its inverse are symmetric across the line [latex]y=x[/latex].  For example, the graph below shows the graph of [latex]f(x)=\frac{2}{5}x+2[/latex] and its inverse, [latex]f^{-1}(x)=\frac{5}{2}x-5[/latex]. Adding the dashed line [latex]y=x[/latex], we can see that the two lines are symmetric (mirror images of one another) across the line [latex]y=x[/latex].

Graph showing symmetry of inverse functions across the line y=x

Graph of [latex]f(x)=\frac{2}{5}x+2[/latex] and its inverse [latex]f^{-1}(x)=\frac{5}{2}x-5[/latex]

Notice the [latex]x[/latex]– and [latex]y[/latex]-intercepts. The [latex]y[/latex]-intercept of [latex](0, 2)[/latex] in the original function (blue line) reflects to the [latex]x[/latex]-intercept [latex](2, 0)[/latex] in the inverse function (green line). Also, the [latex]x[/latex]-intercept of [latex](–5, 0)[/latex] in the original function (blue line) reflects to the [latex]y[/latex]-intercept [latex](0, –5)[/latex] in the inverse function (green line).

The slopes of each function are also related. The function [latex]f(x)[/latex] has a slope of [latex]\frac{2}{5}[/latex], while the inverse function [latex]f^{-1}(x)[/latex] has a slope of [latex]\frac{5}{2}[/latex]. The slopes of inverse functions are reciprocals of each other. This is because the slope of a function is [latex]\dfrac{\text{change in y}}{\text{change in x}}[/latex]. The slope of the inverse function becomes [latex]\dfrac{\text{change in x}}{\text{change in y}}[/latex].