## Use the graph of a function to graph its inverse

Now that we can find the inverse of a function, we will explore the graphs of functions and their inverses. Let us return to the quadratic function $f\left(x\right)={x}^{2}$ restricted to the domain $\left[0,\infty \right)$, on which this function is one-to-one, and graph it as in Figure 7.

Figure 7. Quadratic function with domain restricted to [0, ∞).

Restricting the domain to $\left[0,\infty \right)$ makes the function one-to-one (it will obviously pass the horizontal line test), so it has an inverse on this restricted domain.

We already know that the inverse of the toolkit quadratic function is the square root function, that is, ${f}^{-1}\left(x\right)=\sqrt{x}$. What happens if we graph both $f\text{ }$ and ${f}^{-1}$ on the same set of axes, using the $x\text{-}$ axis for the input to both $f\text{ and }{f}^{-1}?$

We notice a distinct relationship: The graph of ${f}^{-1}\left(x\right)$ is the graph of $f\left(x\right)$ reflected about the diagonal line $y=x$, which we will call the identity line, shown in Figure 8.

Figure 8. Square and square-root functions on the non-negative domain

This relationship will be observed for all one-to-one functions, because it is a result of the function and its inverse swapping inputs and outputs. This is equivalent to interchanging the roles of the vertical and horizontal axes.

### Example 10: Finding the Inverse of a Function Using Reflection about the Identity Line

Given the graph of $f\left(x\right)$, sketch a graph of ${f}^{-1}\left(x\right)$.

Figure 9

### Solution

This is a one-to-one function, so we will be able to sketch an inverse. Note that the graph shown has an apparent domain of $\left(0,\infty \right)$ and range of $\left(-\infty ,\infty \right)$, so the inverse will have a domain of $\left(-\infty ,\infty \right)$ and range of $\left(0,\infty \right)$.

If we reflect this graph over the line $y=x$, the point $\left(1,0\right)$ reflects to $\left(0,1\right)$ and the point $\left(4,2\right)$ reflects to $\left(2,4\right)$. Sketching the inverse on the same axes as the original graph gives us the result in Figure 10.

Figure 10. The function and its inverse, showing reflection about the identity line

### Try It 9

Draw graphs of the functions $f\text{ }$ and $\text{ }{f}^{-1}$.

Solution

Q & A

Is there any function that is equal to its own inverse?

Yes. If $f={f}^{-1}$, then $f\left(f\left(x\right)\right)=x$, and we can think of several functions that have this property. The identity function does, and so does the reciprocal function, because

$\frac{1}{\frac{1}{x}}=x$

Any function $f\left(x\right)=c-x$, where $c$ is a constant, is also equal to its own inverse.