topic badge

4.08 Inverse functions

Inverse graphs and tables

Inverse operations are operations that 'undo' each other - for example, addition and subtraction, or multiplication and division. We can extend this concept to find the inverse of an entire function or relation.

Exploration

Complete the table below showing the relationship between the length of the sides of a cube and the volume of the cube.

Length of sidesVolume of the cube
1
2
3
Volume of the cubeLength of sides
1
8
27

Then, graph the data in the table on the same set of axes using a different color to draw each graph.

3
6
9
12
15
18
21
24
27
x
3
6
9
12
15
18
21
24
27
y

Answer the following questions:

  1. How do you find the volume of the cube given the length of sides?

  2. How do you find the length of sides given the volume?

  3. Draw the line y=x, using a third color, on the same graph. How are the graphs of the two functions related with respect to the line y=x?

Inverses are useful for determining the input of a relation if the outputs are known. Consider a situation where a plane is traveling at a constant speed, and we want to know how long the plane has been flying over certain distances. Rather than using the function d\left(t\right)=rt and dividing by the rate to find the time for each of the distances, we can simply rewrite the equation as t=\dfrac{d}{r}. This is the inverse relation of d\left(t\right).

Inverse relation

A relation that reverses the original relation. The graph of an inverse relation is the original graph reflected across the line y=x.

Geometrically, this means that the relation and its inverse are mirror images of each other across the line y=x.

-8
-6
-4
-2
2
4
6
8
x
-8
-6
-4
-2
2
4
6
8
y

In the given figure, we have the graph of the line f\left(x\right) and its reflection over the line y=x, labeled g\left(x\right).

x-6-4-20246
f\left(x\right)-3-2-10123

If we now create a table of values for f\left(x\right) andg\left(x\right), we can notice something about the relationship between the input and output pairs for each function.

x-3-2-10123
g\left(x\right)-6-4-20246

The x and y coordinates for g\left(x\right) are just the swapped around coordinate pairs of f\left(x\right).

The function inverse to f\left(x\right) is denoted f^{-1}\left(x\right), so if \left(a,b\right) is an element of f, then \left(b,a\right) is an element of f^{-1}.

Examples

Example 1

Complete the tables. State which relations are inverses.

x-2-1012
f\left(x\right)=2x^3
x-2-1012
g\left(x\right)=\frac{1}{2}x^3
x-16-20216
h\left(x\right)=\sqrt[3]{\frac{x}{2}}
x-1-\frac{1}{8}0\frac{1}{8}1
j\left(x\right)=2\sqrt[3]{x}
Worked Solution
Create a strategy

To complete each of the tables, we will substitute each value of x into the given function. To determine which relations are inverses, we need to examine the inputs and outputs. The inputs and outputs of inverse relations will be swapped.

Apply the idea
x-2-1012
f\left(x\right)=2x^3-16-20216
x-2-1012
g\left(x\right)=\frac{1}{2}x^3-4-\frac{1}{2}0\frac{1}{2}4
x-16-20216
h\left(x\right)=\sqrt[3]{\frac{x}{2}}-2-1012
x-1-\frac{1}{8}0\frac{1}{8}1
j\left(x\right)=2\sqrt[3]{x}-2-1012

Looking at the tables, we can see that the inputs of f\left(x\right) are the outputs of h\left(x\right), and the outputs of f\left(x\right) are the inputs of h\left(x\right). Therefore, f\left(x\right) and h\left(x\right) are inverse relations. These are the only two functions where the outputs and inputs are swapped, so these are the only inverse relations.

Reflect and check

Using technology to graph both functions on the same coordinate plane, we can see that these functions are reflections of each other across the line y=x.

-3
-2
-1
1
2
3
x
-3
-2
-1
1
2
3
y

Example 2

Find the inverse of each function using the same representation.

a
x-10123
f\left(x\right)=(x+1)^2 +55691421
Worked Solution
Create a strategy

To find the inverse of the function represented by the table of values, we need to swap the x and y-values. Then, create a new table of values representing the inverse function, f^{-1}\left(x\right).

Apply the idea

The table of values for the inverse function is:

x5691421
f^{-1}\left(x\right)-10123
Reflect and check

To verify the functions represented by the table of values are inverses, we can plot the points on a coordinate plane and see if the points are mirror images over the line y=x.

-2
2
4
6
8
10
12
14
16
18
20
22
x
-2
2
4
6
8
10
12
14
16
18
20
22
y
b

f(x)=\sqrt[3]{x}

-8
-6
-4
-2
2
4
6
8
x
-8
-6
-4
-2
2
4
6
8
y
Worked Solution
Create a strategy

To find the inverse of the function graphically, we need to swap the x and y-coordinates and reflect the original function across the line y=x. We first need to identify points that lie on the function.

-8
-6
-4
-2
2
4
6
8
x
-8
-6
-4
-2
2
4
6
8
y
Apply the idea

Reflecting the original function across the line y=x by swapping the x and y-coordinates, we get the following inverse function:

-8
-6
-4
-2
2
4
6
8
x
-8
-6
-4
-2
2
4
6
8
y
Reflect and check

The inverse function is a polynomial function that we have seen before. The inverse of the original function, f\left(x\right)=\sqrt[3]{x}, is f^{-1}(x) = x^3.

c

f(x)=\sqrt{x}+3

1
2
3
4
5
6
7
8
9
x
1
2
3
4
5
6
7
8
9
y
Worked Solution
Create a strategy

To find the inverse of the function graphically, we need to identify points on the original function and swap the x and y-coordinates to reflect it across the line y=x.

1
2
3
4
5
6
7
8
9
x
1
2
3
4
5
6
7
8
9
y
Apply the idea

Reflecting the original function across the line y=x, we get the following inverse function:

1
2
3
4
5
6
7
8
9
x
1
2
3
4
5
6
7
8
9
y
Reflect and check

We have graphed the inverse function, but let's now take a look at the domain and range of our function in comparision to the inverse.

For the function f(x), we have a domain of [0, \infty) and a range of [3, \infty).

The inverse function, f^{-1}(x), has a domain of [3, \infty) and a range of [0, \infty).

We can clearly see that the domain of our function has become the range of our inverse and the range of our function has become the domain of the inverse.

We can also identify the inverse function equation, which is f^{-1}(x) = (x - 3)^2 for x\geq 3.

Idea summary

We can verify a relation's inverse by graphing the relations to show the two relations are reflected across the line y=x.

We can find the inverse by:

  • Swapping x and y in a table of values
  • Graphically swapping the x and y coordinates

Inverse functions

Exploration

Explore the applet by choosing a function and dragging the slider to produce the function's inverse.

Loading interactive...
  1. The inverse of a linear function is also always a function. What do you notice about the inverse of each of these parent functions?
  2. How does restricting the domain make a relation become a function?

Any function can be reflected across the line y=x, but not all reflections will satisfy the definition of a function.

Invertible function

A function is invertible if its inverse is also a function. For an inverse of a function to be a function, the domain of the function may need to be restricted.

A function such as f(x)=x^2 does not have an inverse function. If we reflect f(x)=x^2 across the line y=x we will get a relation that is not a function.

-8
-6
-4
-2
2
4
6
8
x
-8
-6
-4
-2
2
4
6
8
y

We can see that the inverse relation, y^2=x or y=\pm \sqrt{x}, does not pass the vertical line test. That is, a straight line drawn vertically through the graph has more than one intercept.

We can restrict the domain of the function in order for the inverse function to exist and pass the vertical line test.

-8
-6
-4
-2
2
4
6
8
x
-8
-6
-4
-2
2
4
6
8
y
Restrict to x\geq0, the inverse is {f^{-1}(x)=\sqrt{x}}
-8
-6
-4
-2
2
4
6
8
x
-8
-6
-4
-2
2
4
6
8
y
Restrict to x\leq0, the inverse is {f^{-1}(x)=-\sqrt{x}}

When we reflect a function over the line y=x, we are effectively switching the x and y-values. To find the inverse algebraically, we swap x and y in the equation, then solve for y to get f^{-1}(x).

  1. Write f\left(x\right) as y

  2. Swap x and y

  3. Solve for y

  4. Replace y with f^{-1}(x)

Swapping the x and y variables in a relationship will exchange the coordinates for any point on the graph. Thus, the domain and range will be swapped in an inverse relation compared to the original relation. That is, the domain of the function is the same as the range of the inverse function and the range of the function is the same as the domain of the inverse function.

Examples

Example 3

Consider the graphs of f\left(x\right), g\left(x\right) and h\left(x\right) and determine if they are invertible functions. Explain how you know.

-8
-6
-4
-2
2
4
6
8
x
-8
-6
-4
-2
2
4
6
8
y
a

f\left(x\right)

Worked Solution
Create a strategy

To determine if a function is invertible, we will reflect the graph over the line y=x, then use the vertical line test to determine if the inverse is a function.

Apply the idea
-8
-6
-4
-2
2
4
6
8
x
-8
-6
-4
-2
2
4
6
8
y
  • We can graph the inverse relation by reflecting f\left(x\right) across the line y=x
-8
-6
-4
-2
2
4
6
8
x
-8
-6
-4
-2
2
4
6
8
y
  • We can then determine if the inverse relation is a function by drawing vertical lines through the function, and determining the number of times they intersect the function.
  • We can see that there is only one point of intersection, regardless of where we draw the vertical line.

In addition, we can see that the inverse is a line, which indicates it is a linear function.

Reflect and check

As the two functions are reflections of each other across the line y=x, we could apply the horizontal line test on f\left(x\right).

If we draw a horizontal line anywhere on the graph and the horizontal line only intersects the function once, then the inverse of the function will also be a function, without any domain restrictions.

-8
-6
-4
-2
2
4
6
8
x
-8
-6
-4
-2
2
4
6
8
y

We can see that, no matter where the horizontal line is drawn, there is only one point of intersection. This means the function is invertible.

b

g\left(x\right)

Worked Solution
Create a strategy

To determine if a function is invertible, we will reflect the graph over the line y=x, then use the vertical line test to determine if the inverse is a function.

Apply the idea
-8
-6
-4
-2
2
4
6
8
x
-8
-6
-4
-2
2
4
6
8
y
  • We can graph the inverse relation by reflecting f\left(x\right) across the line y=x
-8
-6
-4
-2
2
4
6
8
x
-8
-6
-4
-2
2
4
6
8
y
  • We can then determine if the inverse relation is a function by drawing a vertical line through the function, and determining the number of times they intersect
  • We can see that there are two points of intersection, meaning the inverse fails the vertical line test.

Therefore, g\left(x\right) does not have an inverse function.

Reflect and check

Alternatively, we could perform the horizontal line test on g\left(x\right), revealing the function does not have an inverse.

-8
-6
-4
-2
2
4
6
8
x
-8
-6
-4
-2
2
4
6
8
y

However, if g\left(x\right) had a restricted domain of either \left[0, \infty\right) or \left( -\infty, 0\right], then it would have an inverse function, as shown for \left[0, \infty\right).

-8
-6
-4
-2
2
4
6
8
x
-8
-6
-4
-2
2
4
6
8
y
c

h\left(x\right)

Worked Solution
Create a strategy

To determine if a function is invertible, we will reflect the graph over the line y=x, then use the vertical line test to determine if inverse is a function.

Apply the idea
-8
-6
-4
-2
2
4
6
8
x
-8
-6
-4
-2
2
4
6
8
y
  • We can graph the inverse relation by reflecting h\left(x\right) across the line y=x
-8
-6
-4
-2
2
4
6
8
x
-8
-6
-4
-2
2
4
6
8
y
  • We can then determine if the inverse relation is a function by drawing a vertical line through the function, and determining the number of times they intersect
  • It appears that there might be more than one point of intersection at x=-3, so we can use the shape of the graph to see if it belongs to a function family that we have studied.

It appears that the inverse is a cube root function, which means there is only one y-value when x=-3. This confirms that the original function h\left(x\right) is invertible.

Example 4

For each of the following functions:

  • Determine an expression for the inverse relation.
  • State whether or not the inverse is a function.
  • If the inverse is not a function, find a restricted domain for the function under which the inverse is a function.
a

y=7x- 4

Worked Solution
Create a strategy

To find the inverse, we will swap x and y, then solve for y. We can determine whether the inverse is a function by using the vertical line test.

Apply the idea
\displaystyle x\displaystyle =\displaystyle 7y-4Swap x and y
\displaystyle x+4\displaystyle =\displaystyle 7yAdd 4 to both sides
\displaystyle \dfrac{x+4}{7}\displaystyle =\displaystyle \dfrac{7y}{7}Divide both sides by 7
\displaystyle \dfrac{x}{7}+\dfrac{4}{7}\displaystyle =\displaystyle ySimplify

y=\dfrac{x}{7}+\dfrac{4}{7} is the inverse of y=7x-4.

We now need to determine if y=\dfrac{x}{7}+\dfrac{4}{7} is a function. Graphing y=\dfrac{x}{7}+\dfrac{4}{7} using technology, the relation passes the vertical line test and therefore is a function.

-9
-8
-7
-6
-5
-4
-3
-2
-1
1
2
3
4
x
-4
-3
-2
-1
1
2
3
4
y
b

y = \left(x-3\right)^2-5

Worked Solution
Create a strategy

We want to swap x and y, then solve for y. We can then check whether the inverse is a function using the vertical line test.

Apply the idea

Inverse:

\displaystyle x\displaystyle =\displaystyle \left(y-3\right)^2-5 Swap x and y
\displaystyle x+5\displaystyle =\displaystyle \left(y-3\right)^2Add 5 to both sides
\displaystyle \pm\sqrt{x+5}\displaystyle =\displaystyle y-3Evaluate the square root of both sides
\displaystyle 3\pm\sqrt{x+5}\displaystyle =\displaystyle yAdd 3 to both sides

y=3\pm\sqrt{x+5} is the inverse of y=\left(x-3\right)^2-5.

We now need to determine if y=3\pm\sqrt{x+5} is a function. Graphing y=3\pm\sqrt{x+5} using technology, it is clear to see that it does not pass the vertical line test and therefore is not a function.

A screenshot of the GeoGebra geometry tool showing the graphs of y equals 3 plus square root of x plus 5 and y equals 3 minus square root of x plus 5. Speak to your teacher for more details.

We can restrict the domain of y= \left(x - 3 \right) ^2 - 5 to x \geq 3, and it will have the inverse function y= 3 + \sqrt{x+5}.

A screenshot of the GeoGebra geometry tool showing the graph of y equals 3 plus square root of x plus 5. Speak to your teacher for more details.
Reflect and check

As the graph of a quadratic function does not pass the horizontal line test, no quadratic functions have inverses without domain restrictions.

Alternatively, we could have restricted the domain to x\leq 3, in which case the inverse would have been y=3-\sqrt{x+5}.

-5
-4
-3
-2
-1
1
2
3
4
5
x
-5
-4
-3
-2
-1
1
2
3
4
5
y
c

f \left(x \right) = \sqrt{x-3} +2 for x\geq3

Worked Solution
Create a strategy

Since this is written as a function, we will begin by writing f\left(x\right) as y. Then, we can swap x and y, solve for y, and determine whether the inverse is a function by using the vertical line test.

Apply the idea

We begin by writing f\left(x\right) as y. So, we have y=\sqrt{x-3}+2.

Next, we swap x and y, resulting in x=\sqrt{y-3}+2.

Now, we need to solve for y.

\displaystyle x-2\displaystyle =\displaystyle \sqrt{y-3}Subtract 2 from both sides
\displaystyle (x-2)^2\displaystyle =\displaystyle y-3Square both sides
\displaystyle y\displaystyle =\displaystyle (x-2)^2+3Add 3 to both sides

We must now take a look at domain and range. We know with inverse functions, our domain and range are swapped.

  • The domain of f(x) was [3, \infty), which means that this interval is also the range of f^{-1}(x).

  • The range of f(x) was [2,\infty), which means that this interval is also the domain of the inverse, f^{-1}(x).

The inverse function is f^{-1}(x)=(x-2)^2+3 with a domain of [2,\infty) and a range of [3,\infty).

We now need to determine if y=(x-2)^2+3 is a function. Graphing y=(x-2)^2+3 over x\geq 3 using technology, it is clear to see that it passes the vertical line test and therefore is a function.

-4
-3
-2
-1
1
2
3
4
5
6
7
8
9
x
-4
-3
-2
-1
1
2
3
4
5
6
7
8
9
y
Idea summary
  • In order to be inverses, the domain and range of a function must be the same as the range and domain of the inverse function.
  • We can find the inverse algebraically by swapping x and y and solving the equation for y

Verify inverse functions

To verify that two functions, f(x) and g(x), are inverses of each other, we can use function composition. Given f(x) and g(x), if:

  • f(g(x))=x
  • g(f(x))=x

Then, we can say that f(x) and g(x) are inverse functions.

We must check the composition both ways and if both equal x, then the two functions are inverses. If only one of the compositions is equal to x, the functions are not necessarily inverses.

Examples

Example 5

Determine if the pair of given functions are inverses. Justify your answer.

a

f(x)=4x-2 and g(x)=\dfrac{x+2}{4}

Worked Solution
Create a strategy

To determine if the given functions are inverses of each other, we can use the idea that two functions, f(x) and g(x), are inverses if f(g(x)) = g(f(x)) = x. We will find both f(g(x)) and g(f(x)) and check if they are equal to x.

Apply the idea

First, let's find f(g(x)).

\displaystyle f(g(x))\displaystyle =\displaystyle f\left(\frac{x+2}{4}\right)Substitute g(x) into f(x)
\displaystyle =\displaystyle 4\left(\frac{x+2}{4}\right)-2Apply the definition of f(x)
\displaystyle =\displaystyle x+2-2Evaluate the multiplication
\displaystyle =\displaystyle xSimplify

Now, let's find g(f(x)).

\displaystyle g(f(x))\displaystyle =\displaystyle g(4x-2)Substitute f(x) into g(x)
\displaystyle =\displaystyle \frac{(4x-2)+2}{4}Apply the definition of g(x)
\displaystyle =\displaystyle \frac{4x}{4}Simplify the numerator
\displaystyle =\displaystyle xSimplify further

Since f(g(x)) = x and g(f(x)) = x, we can conclude that the given functions are inverses of each other.

Reflect and check

To verify our results graphically, we can use graphing software or a graphing calculator to plot the functions f(x) and g(x) on the same set of axes. If the functions are inverses, their graphs should be reflections of each other across the line y=x.

A screenshot of the GeoGebra graphing tool showing the graphs of f of x equals 4 x minus 2, g of x equals x plus 2 all over 4, and y equals x. Speak to your teacher for more details.

When graphing the functions, we can observe that they are indeed reflections of each other across the line y=x, confirming that they are inverses.

b

f(x)=5(x+4)^3 and g(x)=\dfrac{1}{5}\sqrt[3]{x}-4

Worked Solution
Create a strategy

To determine if the given functions are inverses of each other, we will use the idea that two functions, f(x) and g(x), are inverses if f(g(x)) = g(f(x)) = x. We will compute f(g(x)) and g(f(x)) to check if they both simplify to x.

Apply the idea

First, let's compute f(g(x)):

\displaystyle f(g(x))\displaystyle =\displaystyle 5\left(\left(\dfrac{1}{5} \sqrt[3]x-4\right) +4\right)^{3} Substitute g(x) into f(x)
\displaystyle =\displaystyle 5\left(\dfrac{1}{5}\sqrt[3]{x}\right)^3Combine like terms
\displaystyle =\displaystyle 5\left(\dfrac{x}{125}\right)Evaluate the exponent
\displaystyle =\displaystyle \frac{x}{25}Simplify

Since f\left(g\left(x\right)\right)\neq x, we do not need to compute g(f(x)). The functions are not inverses of each other.

Reflect and check

To verify our result graphically, we can use graphing software or a graphing calculator to plot the functions f(x) and g(x) on the same set of axes. Upon graphing the functions, we can see that they are not reflections of each other across the line y=x, indicating that they are not inverses.

A screenshot of the GeoGebra graphing tool showing the graphs of f of x equals 5 times quantity x plus 4 raised to 4, g of x equals one fifth times cube root of x minus 4, and y equals x. Speak to your teacher for more details.
c

f(x)=\sqrt{x-5} and g(x)=x^2 +5, x \geq 5

Worked Solution
Create a strategy

To determine if the given functions are inverses, we need to verify if f(g(x)) = g(f(x)) = x. By substituting the expression of g(x) into f(x) and vice versa, we can check if the resulting expressions simplify to x.

Apply the idea

First, let's find f(g(x)):

\displaystyle f(g(x))\displaystyle =\displaystyle f(x^2 + 5)Substitute g(x) into f(x)
\displaystyle =\displaystyle \sqrt{(x^2 + 5) - 5}Apply the definition of f(x)
\displaystyle =\displaystyle \sqrt{x^2}Simplify the expression
\displaystyle =\displaystyle xTake the square root of x^2

Now, let's find g(f(x)):

\displaystyle g(f(x))\displaystyle =\displaystyle g(\sqrt{x-5})Substitute f(x) into g(x)
\displaystyle =\displaystyle (\sqrt{x-5})^2 + 5Apply the definition of g(x)
\displaystyle =\displaystyle x-5 + 5Square the square root
\displaystyle =\displaystyle xSimplify the expression

Since f(g(x)) = g(f(x)) = x, the given functions are inverses of each other.

Reflect and check

Let's algebraically compute the inverse of each function and compare the results to verify if they are inverses of each other.

First, let's find the inverse of f(x)=\sqrt{x-5}.

\displaystyle y\displaystyle =\displaystyle \sqrt{x-5}Original function
\displaystyle x\displaystyle =\displaystyle \sqrt{y-5}Swap x and y
\displaystyle x^2\displaystyle =\displaystyle y-5Square both sides
\displaystyle x^2 + 5\displaystyle =\displaystyle yAdd 5 to both sides

The inverse of f(x) is f^{-1}(x)=x^2 + 5.

Now, let's find the inverse of g(x)=x^2 +5.

\displaystyle y\displaystyle =\displaystyle x^2 + 5Original function
\displaystyle x\displaystyle =\displaystyle y^2 + 5Swap y and y
\displaystyle x - 5\displaystyle =\displaystyle y^2Subtract 5 from both sides
\displaystyle \sqrt{x - 5}\displaystyle =\displaystyle yTake the square root of both sides

The inverse of g(x) is g^{-1}(x)=\sqrt{x-5}.

Comparing the original functions with their inverses, we can see that f(x) is the inverse of g(x) and vice versa. Therefore, the given functions are inverses of each other.

Idea summary

Two functions, f(x)and g(x) are inverse functions, if both f(g(x))=x and g(f(x))=x.

Outcomes

A2.F.2

The student will investigate and analyze characteristics of square root, cube root, rational, polynomial, exponential, logarithmic, and piecewise-defined functions algebraically and graphically.

A2.F.2i

Determine the inverse of a function algebraically and graphically, given the equation of a linear or quadratic function (linear, quadratic, and square root). Justify and explain why two functions are inverses of each other.

A2.F.2j

Graph the inverse of a function as a reflection over the line y = x.

A2.F.2k

Determine the composition of two functions algebraically and graphically.

What is Mathspace

About Mathspace