6.6 Inverse Functions

An Alaskan business executive is heading to Calgary, Alberta in Canada for a conference. They ask their assistant, Niketa, what 75 degrees Fahrenheit is in Celsius and after a quick search on Google, she finds the formula C = \frac{5}{9}(F - 32). Using this formula, she calculates \frac{5}{9}(75 - 32) \approx 24^\circ Celsius. The next day, the executive sends Niketa the week’s weather forecast for Calgary:
Calgary 5 day weather forecastAt first, Niketa might consider the formula she has already found to do the conversions. After all, she knows her algebra and can easily solve the equation for F after substituting a value for C. For example, to convert 25^\circ C, she could write:
\begin{array}{l} 25 = \frac{5}{9}(F - 32)\\ 25 \cdot \frac{9}{5} = F - 32\\ F = 25 \cdot \frac{9}{5} + 32 =77 \end{array}

After considering this option for a moment, she realizes that solving the equation for each of the temperatures would get awfully tedious, and realizes that since evaluation is easier than solving, it would be much more convenient to have a different formula, one which takes the Celsius temperature and outputs the Fahrenheit temperature.  This is the idea of an inverse function, where the input becomes the output and the output becomes the input.

Inverse Function

If f(a)=b, then a function g(x) is an inverse of f if g(b)=a for all values, a, in the domain and all values, b, in the range of f(x).

The inverse of f(x) is typically notated f^{-1}(x), which is read “f inverse of x”, so equivalently, if f(a)=b then f^{-1}(b)=a

Warning SignImportant: The raised -1 used in the notation for inverse function is simply a notation, and does NOT designate an exponent or power of -1. f^{-1} \neq \dfrac{1}{f(x)}

 

Example of Inverse Functions

If, for a particular function, f(2)=4 , what do we know about the inverse?

The inverse function reverses which quantity is input and which quantity is output, so if f(2)=4, then f^{-1}(4)=2.

Alternatively, if you want to re-name the inverse function g(x), then g(4) = 2.

Try it Now 1

Given that h^{-1}(6)=2, what do we know about the original function h(x)?

Notice that original function and the inverse function undo each other.  If f(a) = b, then {f^{ - 1}}(b) = a, returning us to the original input.  More simply put, if you compose these functions together you get the original input as your answer.

    \[f^{-1}\left(f(a)\right)=a \;\textsf{and} \;f\left(f^{-1}(b)\right)=b\]

Illustration of the Relationship of the Domain and Range of f and f-inverse

Since the outputs of the function f are the inputs to f^{-1}, the range of f is also the domain of f^{-1} .  Likewise, since the inputs to f are the outputs of f^{-1}, the domain of f is the range of f^{-1}.

Basically, like how the input and output values switch, the domain & ranges switch as well.  But be careful, because sometimes a function doesn’t even have an inverse function, or only has an inverse on a limited domain.  For example, the inverse of f(x) = \sqrt x is {f^{ - 1}}(x) = {x^2}, since a square “undoes” a square root, but it is only the inverse of f(x) on the domain [0,\infty), since that is the range of f(x) = \sqrt x .

Example of the Domain and Range of Inverses

The function f(x) = {2^x} has domain ( - \infty ,\infty ) and range (0,\infty ) , what would we expect the domain and range of {f^{ - 1}} to be?

We would expect {f^{ - 1}}  to swap the domain and range of f, so {f^{ - 1}}  would have domain (0,\infty ) and range ( - \infty ,\infty ).

Example of Inverse Functions with a Function Defined by a Table

A function f(t) is given as a table below, showing distance in miles that a car has traveled in t minutes.  Find and interpret {f^{ - 1}}(70).

t (minutes) 30 50 70 90
f(t) (miles) 20 40 60 70

The inverse function takes an output of f and returns an input for f.  So in the expression {f^{ - 1}}(70), the 70 is an output value of the original function, representing 70 miles.  The inverse will return the corresponding input of the original function f, 90 minutes, so {f^{ - 1}}(70)=90.  Interpreting this, it means that to drive 70 miles, it took 90 minutes.

Alternatively, recall the definition of the inverse was that if f(a) = b then {f^{ - 1}}(b) = a.  By this definition, if you are given {f^{ - 1}}(70) = a then you are looking for a value a so that f(a)=70 .  In this case, we are looking for a t so that f(t)=70, which is when t = 90.

Try it Now 2

Using the table below

t (minutes) 30 50 70 90
f(t) (miles) 20 40 60 70

Find and interpret the following:
a. f(60)
b. f^{-1}(60)

Example of an Inverse with a Function Defined as a Graph

A function g(x) is given as a graph below.  Find g(3) and g^{-1}(3)Graph of g(x) to locate g(3) and g inverse of 3

To evaluate g(3), we find 3 on the horizontal axis and find the corresponding output value on the vertical axis. The point (3, 1) tells us that g(3)=1 .

To evaluate g^{-1}(3) , recall that by definition means g(x) = 3.  By looking for the output value 3 on the vertical axis we find the point (5, 3) on the graph, which means g(5) = 3, so by definition g^{-1}(3)=5 .

Try it Now 3

Using the graph in the example above
a. find g^{-1}(1)
b. estimate g^{-1}(4)

Example – Back to the Celsuis and Fahrenheit Temperature Problem

Returning to our executive’s assistant, find a formula for the inverse function that gives Fahrenheit temperature given a Celsius temperature.

A quick Google search would find the inverse function, but alternatively, Niketa might look back at how she solved for the Fahrenheit temperature for a specific Celsius value, and repeat the process in general:

\begin{array}{l} C = \frac{5}{9}(F - 32)\\ C \cdot \frac{9}{5} = F - 32\\ F = \frac{9}{5}C + 32 \end{array}

By solving in general, we have uncovered the inverse function.  If
C = h(F) = \frac{5}{9}(F - 32)
Then
F = {h^{ - 1}}(C) = \frac{9}{5}C + 32

In this case, we introduced a function h to represent the conversion since the input and output variables are descriptive, and writing C^{-1} could get confusing.

It is important to note that not all functions will have an inverse function.  Since the inverse {f^{ - 1}}(x) takes an output of f and returns an input of f, in order for {f^{ - 1}} to itself be a function, then each output of f (input to {f^{ - 1}}) must correspond to exactly one input of f (output of {f^{ - 1}} ) in order for {f^{ - 1}} to be a function.  This is the definition of a one-to-one function.

One-to-One Function

If each output of a function, f(x) corresponds exactly one input, then the function is said to be a one-to-one function.  A function is one-to-one if and only if its inverse, f^{-1} is also a function.

In some cases, it is desirable to have an inverse for a function even though the function is not one-to-one.  In those cases, we can often limit the domain of the original function to an interval on which the function is one-to-one, then find an inverse only on that interval.

Example Finding Inverse of a Function that is NOT one-to-one on Limited Domain

The quadratic function h(x)=x^2 is not one-to-one.  Find a domain on which this function is one-to-one, and find the inverse on that domain.Graph of f(x)=x-squared on limited domain [0,infinity)

We can limit the domain to [0, \infty) to restrict the graph to a portion that is one-to-one, and find an inverse on this limited domain.

You may have already guessed that since we undo a square with a square root, the inverse of h(x)=x^2 on this domain is h^{-1}(x)=\sqrt{x}.

You can also solve for the inverse function algebraically.  If h(x)=x^2, we can introduce the variable y to represent the output values, allowing us to write y=x^2.  To find the inverse we solve for the input variable.

To solve for x we take the square root of each side.  \sqrt y = \sqrt {{x^2}} and get \sqrt y = \left| x \right|, so  x = \pm \sqrt y.  We have restricted x to being non-negative, so we’ll use the positive square root, x = \sqrt y or {h^{ - 1}}(y) = \sqrt y.

In cases like the example above where the variables are not descriptive, it is common to see the inverse function rewritten with the variable x{h^{ - 1}}(x) = \sqrt x.  Rewriting the inverse using the variable x is often required for graphing inverse functions using calculators or computers.Graph of f(x)=x-squared and f inverse=square root of x on same graph (domain limited to [0,inf))

Note that the domain and range of the square root function do correspond with the range and domain of the quadratic function on the limited domain.  In fact, if we graph h(x) on the restricted domain and h^{-1}(x) on the same axes, we can notice symmetry: the graph of h^{-1}(x) is the graph of h(x) reflected over the line y = x. This is the case with all functions and their inverses.

Example of a Function and its Inverse Graphed

Given the graph of f(x) shown, sketch a graph of f^{-1}(x) .Graph of a function to graph inverse

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 (0,\infty) and range of (-\infty,\infty), so the inverse will have a domain of (-\infty,\infty) and range of (0,\infty)

Reflecting this graph of the line y = x, the point (1, 0) reflects to (0, 1), and the point (4, 2) reflects to (2, 4).  Sketching the inverse on the same axes as the original graph:Graph of the function and its inverse on the same graph

Finding Inverse Functions

We’ve already discussed that inverse functions undo the original function.  However, consider when you have a function and you want to know its inverse. You will have to undo everything. When you are working with a computer program and use the undo button, the computer undoes the last thing you did, if you click it again, it undoes the thing before that, and so on. The same can be done with an inverse function. We simply look at all the steps a function takes and undo each step in reverse order. Just remember all of your order of operations rules.

Examples Finding Inverses Using Undo

a. Given f(x)=3x-5, find f^{-1}(x)

What does the function actually do in this case?  It takes a value, x and:

  1. Multiplies 3
  2. Subtracts 5

So the undo button should start by taking a value, we can call it x also, at the last thing done and:

  1. Add 5
  2. Divide 3

So our inverse f^{-1}=\dfrac{x+5}{3}

b. Given g(x)=8x^3+11, find g^{-1}(x)

So we will start by consider what g(x) does, it takes a value x:

  1. Cubes it
  2. Multiplies 8
  3. Adds 11

So the inverse, g^{-1}(x) will undo these in the opposite order, take the value x and:

  1. Subtract 11
  2. Divide 8
  3. Take the cube root

So we have g^{-1}(x)=\sqrt[3]{\dfrac{x-11}{8}}

Another way to find inverses is algebraically solving for the other variable. This is best seen in applications.

Example of Finding Inverses in Applications

A beverage company has decided a new fun marketing tool would be to put their product in spherical containers.  They know the volumes of the products they want, but they need to know the radii of the spheres to give the specifications to the container manufacturers.  They need a way to use the formula for the volume of a sphere, V=\dfrac{4}{3}\pi r^3 to enter as a formula into their software to give the radius for any volume they decide they want.  

We can approach this using an algebraic approach and solve V=\dfrac{4}{3}\pi r^3 for r instead of V:

\begin{array}{rcl}  V&=&\dfrac{4}{3}\pi r^3\\  \dfrac{3}{4}V&=&\dfrac{3}{4}\dfrac{4}{3}\pi r^3\\  \dfrac{3}{4}V&=&\pi r^3\\  \dfrac{3}{4\pi}V&=&\dfrac{1}{\pi}\pi r^3\\  \dfrac{3}{4\pi}V&=&r^3\\  \sqrt[3]{\dfrac{3}{4\pi}V}&=&\sqrt[3]{r^3}\\  \sqrt[3]{\dfrac{3}{4\pi}V}&=&{r}\end{array}

so we have the inverse function: r=\sqrt[3]{\dfrac{3V}{4\pi}}

Since the variables here are meaningful, we do not switch them, but we would introduce another function name, like V=f(r) and r=f^{-1}(V).

Try it Now 4

a. Given that h(x)=8x+2 find h^{-1}(x)

b. Given that k(x)=16x^2-1 (With the restricted domain [0,\infty)). Find k^{-1}(x)

Try it Now Answers

    1. g(2)=6
    2. a. f(60)=50. In 60 minutes, 50 miles are traveled.
      b. f^{-1}(60)=70. To travel 60 miles, it will take 70 minutes.
    3. a. g^{-1}(1)=3
      b. g^{-1}(4)=5.5 (this is an approximation – answers may vary slightly)
    4. a. h^{-1}(x)=\dfrac{x-2}{8}
      b. k^{-1}(x)=\sqrt{\dfrac{x+1}{16}}=\dfrac{1}{4}\sqrt{x+1}

 

Media Attributions

License

Icon for the Creative Commons Attribution-ShareAlike 4.0 International License

College Algebra for the Managerial Sciences Copyright © by Terri Manthey is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License, except where otherwise noted.

Share This Book