Skip to main content
K12 LibreTexts

1.12: 1.12 Inverses of Functions

  • Page ID
  • Functions are commonly known as rules that take inputs and produce outputs. An inverse function does exactly the reverse, undoing what the original function does. How can you tell if two functions are inverses? 

    Finding Inverses of Functions

    A function is written as \(f(x)\) and its inverse is written as \(f^{-1}(x)\). A common misconception is to see the -1 and interpret it as an exponent and write \(\frac{1}{f(x)},\) but this is not correct. Instead, \(f^{-1}(x)\) should be viewed as a new function from the range of \(f(x)\) back to the domain.


    It is important to see the cycle that starts with \(x\), becomes \(y\) and then goes back to \(x\). In order for two functions to truly be inverses of each other, this cycle must hold algebraically.

    \(f\left(f^{-1}(x)\right)=x\) and \(f^{-1}(f(x))=x\)

    When given a function there are two steps to take to find its inverse. In the original function, first switch the variables \(x\) and \(y\). Next, solve the function for \(y\). This will give you the inverse function. After finding the inverse, it is important to check both directions of compositions to make sure that together the function and its inverse produce the value \(x\). In other words, verify that \(f\left(f^{-1}(x)\right)=x\) and \(f^{-1}(f(x))=x\).

    Graphically, inverses are reflections across the line \(y=x\). Below you see inverses \(y=e^{x}\) and \(y=\ln x .\) Notice how the \((x, y)\) coordinates in one graph become \((y, x)\) coordinates in the other graph.


    In order to decide whether an inverse function is also actually a function you can use the vertical line test on the inverse function like usual. You can also use the horizontal line test on the original function. The horizontal line test is exactly like the vertical line test except the lines simply travel horizontally.


    Example 1

    Earlier, you were asked how you can tell that two functions are inverses. You can tell that two functions are inverses if each undoes the other, always leaving the original \(x\).

    Example 2

    Find the inverse, then verify the inverse algebraically. \(f(x)=y=(x+1)^{2}+4\)

    To find the inverse, switch \(x\) and \(y\) then solve for \(y\).

    \(\begin{aligned} x &=(y+1)^{2}+4 \\ x-4 &=(y+1)^{2} \\ \pm \sqrt{x-4} &=y+1 \\-1 \pm \sqrt{x-4} &=y=f^{-1}(x) \end{aligned}\)

    To verify algebraically, you must show \(x=f\left(f^{-1}(x)\right)=f^{-1}(f(x))\)

    \(\begin{aligned} f\left(f^{-1}(x)\right) &=f(-1 \pm \sqrt{x-4}) \\ &=((-1 \pm \sqrt{x-4})+1)^{2}+4 \\ &=(\pm \sqrt{x-4})^{2}+4 \\ &=x-4+4=x \end{aligned}\)

    \(\begin{aligned} f^{-1}(f(x)) &=f^{-1}\left((x+1)^{2}+4\right) \\ &=-1 \pm \sqrt{\left((x+1)^{2}+4\right)-4} \\ &=-1 \pm \sqrt{(x+1)^{2}} \\ &=-1+x+1=x \end{aligned}\)

    As you can see from the graph, the \(\pm\) causes the inverse to be a relation instead of a function. This can be observed in the graph because the original function does not pass the horizontal line test and the inverse does not pass the vertical line test.


    Example 3

    Find the inverse of the function and then verify that \(x=f\left(f^{-1}(x)\right)=f^{-1}(f(x))\).


    Sometimes it is quite challenging to switch \(x\) and \(y\) and then solve for \(y\). You must be careful with your algebra.

    \(\begin{aligned} x &=\frac{y+1}{y-1} \\ x(y-1) &=y+1 \\ x y-x &=y+1 \\ x y-y &=x+1 \\ y(x-1) &=x+1 \\ y &=\frac{x+1}{x-1} \end{aligned}\)

    This function turns out to be its own inverse. since they are identical, you only need to show that \(x=f\left(f^{-1}(x)\right)\)

    \(f\left(\frac{x+1}{x-1}\right)=\frac{\left(\frac{x+1}{x-1}\right)+1}{\left(\frac{x+1}{x-1}\right)-1}=\frac{x+1+x-1}{x+1-(x-1)}=\frac{2 x}{2}=x\)

    Example 4

    What is the inverse of \(f(x)=y=\sin x ?\)

    The sine function does not pass the horizontal line test and so its true inverse is not a function.


    However, if you restrict the domain to just the part of the \(x\) -axis between \(-\frac{\pi}{2}\) and \(\frac{\pi}{2}\) then it will pass the horizontal line test and the inverse will be a function.


    The inverse of the sine function is called the arcsine function, \(f(x)=\sin ^{-1}(x),\) and is shown in black. It is truncated so that it only inverts a part of the whole sine wave. You will study periodic functions and their inverses in more detail later.

    Example 5

    Determine if \(f(x)=\frac{3}{7} x-21\) and \(g(x)=\frac{7}{3} x+21\) are inverses of one another.

    Even though \(f(x)=\frac{3}{7} x-21\) and \(g(x)=\frac{7}{3} x+21\) have some inverted pieces, they are not inverses of each other. In order to show this, you must show that the composition does not simplify to \(x\).

    \(\frac{3}{7}\left(\frac{7}{3} x+21\right)-21=x+9-21=x-12 \neq x\)


    Consider \(f(x)=x^{3}\)

    1. Sketch \(f(x)\) and \(f^{-1}(x)\).

    2. Find \(f^{-1}(x)\) algebraically. It is actually a function?

    3. Verify algebraically that \(f(x)\) and \(f^{-1}(x)\) are inverses.

    Consider \(g(x)=\sqrt{x}\).

    4. Sketch \(g(x)\) and \(g^{-1}(x)\).

    5. Find \(g^{-1}(x)\) algebraically. It is actually a function?

    6. Verify algebraically that \(g(x)\) and \(g^{-1}(x)\) are inverses.

    Consider \(h(x)=|x|\)

    7. Sketch \(h(x)\) and \(h^{-1}(x)\).

    8. Find \(h^{-1}(x)\) algebraically. It is actually a function?

    9. Verify graphically that \(h(x)\) and \(h^{-1}(x)\) are inverses.

    Consider \(j(x)=2 x-5\)

    10. Sketch \(j(x)\) and \(j^{-1}(x)\).

    11. Find \(j^{-1}(x)\) algebraically. It is actually a function?

    12. Verify algebraically that \(j(x)\) and \(j^{-1}(x)\) are inverses.

    13. Use the horizontal line test to determine whether or not the inverse of \(f(x)=x^{3}-2 x^{2}+1\) is also a function.

    14. Are \(g(x)=\ln (x+1)\) and \(h(x)=e^{x-1}\) inverses? Explain.

    15. If you were given a table of values for a function, how could you create a table of values for the inverse of the function?







    • Was this article helpful?