## 12.2 – Composite and Inverse Functions

### Learning Objectives

• (12.2.1) – Define a composite function
• (12.2.2) – Define an inverse function
• Use compositions of functions to verify inverses algebraically

# (12.2.1) – Define a composite function

Suppose we want to calculate how much it costs to heat a house on a particular day of the year. The cost to heat a house will depend on the average daily temperature, and in turn, the average daily temperature depends on the particular day of the year. Notice how we have just defined two relationships: The cost depends on the temperature, and the temperature depends on the day.

Figure 1

Using descriptive variables, we can notate these two functions. The function $C\left(T\right)$ gives the cost $C$ of heating a house for a given average daily temperature in $T$ degrees Celsius. The function $T\left(d\right)$ gives the average daily temperature on day $d$ of the year. For any given day, $\text{Cost}=C\left(T\left(d\right)\right)$ means that the cost depends on the temperature, which in turns depends on the day of the year. Thus, we can evaluate the cost function at the temperature $T\left(d\right)$. For example, we could evaluate $T\left(5\right)$ to determine the average daily temperature on the 5th day of the year. Then, we could evaluate the cost function at that temperature. We would write $C\left(T\left(5\right)\right)$. By combining these two relationships into one function, we have performed function composition.

We read the left-hand side as $f$ composed with $g$ at $x,''$ and the right-hand side as $f$ of $g$ of $x.''$ The two sides of the equation have the same mathematical meaning and are equal. The open circle symbol $\circ$ is called the composition operator.

It is also important to understand the order of operations in evaluating a composite function. We follow the usual convention with parentheses by starting with the innermost parentheses first, and then working to the outside.

### Example

Using the functions provided, find $f\left(g\left(x\right)\right)$ and $g\left(f\left(x\right)\right)$.

$f\left(x\right)=2x+1$

$g\left(x\right)=3-x$

In the following video you will see another example of how to find the composition of two functions.

# (12.2.2) – Define an inverse function

An inverse function is a function for which the input of the original function becomes the output of the inverse function. This naturally leads to the output of the original function becoming the input of the inverse function. The reason we want to introduce inverse functions is because exponential and logarithmic functions are inverses of each other, and understanding this quality helps to make understanding logarithmic functions easier. And the reason we introduced composite functions is because you can verify, algebraically, whether two functions are inverses of each other by using a composition.

Given a function $f\left(x\right)$, we represent its inverse as ${f}^{-1}\left(x\right)$, read as $f$ inverse of $x.''$ The raised $-1$ is part of the notation. It is not an exponent; it does not imply a power of $-1$ . In other words, ${f}^{-1}\left(x\right)$ does not mean $\displaystyle \frac{1}{f\left(x\right)}$ because $\displaystyle \frac{1}{f\left(x\right)}$ is the reciprocal of $f$ and not the inverse.

Just as zero does not have a reciprocal, some functions do not have inverses.

### Inverse Function

For any function $f\left(x\right)$, a function ${f}^{-1}\left(x\right)$ is an inverse function if $f$ if $(f \circ {f}^{-1})(x) = x$ and $(f^{-1} \circ f)(x) = x$

The notation ${f}^{-1}$ is read $\text{}f$ inverse.” Like any other function, we can use any variable name as the input for ${f}^{-1}$, so we will often write ${f}^{-1}\left(x\right)$, which we read as $f$ inverse of $x.''$
Keep in mind that

$\displaystyle {f}^{-1}\left(x\right)\ne \frac{1}{f\left(x\right)}$

and not all functions have inverses.

In our first example we will identify an inverse function from ordered pairs.

### Example

If for a particular function, which has an inverse, $f\left(2\right)=4$ and $f\left(5\right)=12$, what are the corresponding input and output values for the inverse function?

In the following video we show an example of finding corresponding input and output values given two ordered pairs from functions that are inverses.

### How To: Given two functions $f\left(x\right)$ and $g\left(x\right)$, test whether the functions are inverses of each other.

1. Substitute $g(x)$ into $f(x)$. The result must be $x$. $f\left(g(x)\right)=x$
2. Substitute $f(x)$ into $g(x)$. The result must be $x$. $g\left(f(x)\right)=x$

If $f(x)$ and  $g(x)$ are inverses, then  $f(x)=g^{-1}(x)$ and $g(x)=f^{-1}(x)$

In our next example we will test inverse relationships algebraically.

### Example

If $f\left(x\right)=x^2-3$, for $x\ge0$ and $g\left(x\right)=\sqrt{x+3}$, are $g$ and $f$ inverses of each other?

In the following video we use algebra to determine if two functions are inverses.

We will show another example of how to verify whether you have an inverse algebraically.

### Example

If $\displaystyle f\left(x\right)=\frac{1}{x+2}$ and $\displaystyle g\left(x\right)=\frac{1}{x}-2$, are $g$ and $f$ inverses of each other?

We will show one more example of how to use algebra to determine whether two functions are inverses of each other.