# 3.4 Composition of functions  (Page 5/9)

 Page 5 / 9

Using [link] , evaluate $\text{\hspace{0.17em}}g\left(f\left(2\right)\right).$

$g\left(f\left(2\right)\right)=g\left(5\right)=3$

## Evaluating composite functions using formulas

When evaluating a composite function where we have either created or been given formulas, the rule of working from the inside out remains the same. The input value to the outer function will be the output of the inner function, which may be a numerical value, a variable name, or a more complicated expression.

While we can compose the functions for each individual input value, it is sometimes helpful to find a single formula that will calculate the result of a composition $\text{\hspace{0.17em}}f\left(g\left(x\right)\right).\text{\hspace{0.17em}}$ To do this, we will extend our idea of function evaluation. Recall that, when we evaluate a function like $\text{\hspace{0.17em}}f\left(t\right)={t}^{2}-t,\text{\hspace{0.17em}}$ we substitute the value inside the parentheses into the formula wherever we see the input variable.

Given a formula for a composite function, evaluate the function.

1. Evaluate the inside function using the input value or variable provided.
2. Use the resulting output as the input to the outside function.

## Evaluating a composition of functions expressed as formulas with a numerical input

Given $\text{\hspace{0.17em}}f\left(t\right)={t}^{2}-t\text{\hspace{0.17em}}$ and $\text{\hspace{0.17em}}h\left(x\right)=3x+2,\text{\hspace{0.17em}}$ evaluate $\text{\hspace{0.17em}}f\left(h\left(1\right)\right).$

Because the inside expression is $\text{\hspace{0.17em}}h\left(1\right),\text{\hspace{0.17em}}$ we start by evaluating $\text{\hspace{0.17em}}h\left(x\right)\text{\hspace{0.17em}}$ at 1.

$\begin{array}{ccc}\hfill h\left(1\right)& =& 3\left(1\right)+2\hfill \\ \hfill h\left(1\right)& =& 5\hfill \end{array}$

Then $\text{\hspace{0.17em}}f\left(h\left(1\right)\right)=f\left(5\right),\text{\hspace{0.17em}}$ so we evaluate $\text{\hspace{0.17em}}f\left(t\right)\text{\hspace{0.17em}}$ at an input of 5.

$\begin{array}{ccc}\hfill f\left(h\left(1\right)\right)& =& f\left(5\right)\hfill \\ \hfill f\left(h\left(1\right)\right)& =& {5}^{2}-5\hfill \\ \hfill f\left(h\left(1\right)\right)& =& 20\hfill \end{array}$

Given $\text{\hspace{0.17em}}f\left(t\right)={t}^{2}-t\text{\hspace{0.17em}}$ and $\text{\hspace{0.17em}}h\left(x\right)=3x+2,\text{\hspace{0.17em}}$ evaluate

1. $h\left(f\left(2\right)\right)$
2. $h\left(f\left(-2\right)\right)$

a. 8; b. 20

## Finding the domain of a composite function

As we discussed previously, the domain of a composite function such as $\text{\hspace{0.17em}}f\circ g\text{\hspace{0.17em}}$ is dependent on the domain of $\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$ and the domain of $\text{\hspace{0.17em}}f.\text{\hspace{0.17em}}$ It is important to know when we can apply a composite function and when we cannot, that is, to know the domain of a function such as $\text{\hspace{0.17em}}f\circ g.\text{\hspace{0.17em}}$ Let us assume we know the domains of the functions $\text{\hspace{0.17em}}f\text{\hspace{0.17em}}$ and $\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$ separately. If we write the composite function for an input $\text{\hspace{0.17em}}x\text{\hspace{0.17em}}$ as $\text{\hspace{0.17em}}f\left(g\left(x\right)\right),\text{\hspace{0.17em}}$ we can see right away that $\text{\hspace{0.17em}}x\text{\hspace{0.17em}}$ must be a member of the domain of $\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$ in order for the expression to be meaningful, because otherwise we cannot complete the inner function evaluation. However, we also see that $\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$ must be a member of the domain of $\text{\hspace{0.17em}}f,\text{\hspace{0.17em}}$ otherwise the second function evaluation in $\text{\hspace{0.17em}}f\left(g\left(x\right)\right)\text{\hspace{0.17em}}$ cannot be completed, and the expression is still undefined. Thus the domain of $\text{\hspace{0.17em}}f\circ g\text{\hspace{0.17em}}$ consists of only those inputs in the domain of $\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$ that produce outputs from $\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$ belonging to the domain of $\text{\hspace{0.17em}}f.\text{\hspace{0.17em}}$ Note that the domain of $\text{\hspace{0.17em}}f\text{\hspace{0.17em}}$ composed with $\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$ is the set of all $\text{\hspace{0.17em}}x\text{\hspace{0.17em}}$ such that $\text{\hspace{0.17em}}x\text{\hspace{0.17em}}$ is in the domain of $\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$ and $\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$ is in the domain of $\text{\hspace{0.17em}}f.$

## Domain of a composite function

The domain of a composite function $\text{\hspace{0.17em}}f\left(g\left(x\right)\right)\text{\hspace{0.17em}}$ is the set of those inputs $\text{\hspace{0.17em}}x\text{\hspace{0.17em}}$ in the domain of $\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$ for which $\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$ is in the domain of $\text{\hspace{0.17em}}f.$

Given a function composition $\text{\hspace{0.17em}}f\left(g\left(x\right)\right),$ determine its domain.

1. Find the domain of $\text{\hspace{0.17em}}g.$
2. Find the domain of $\text{\hspace{0.17em}}f.$
3. Find those inputs $\text{\hspace{0.17em}}x\text{\hspace{0.17em}}$ in the domain of $\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$ for which $\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$ is in the domain of $\text{\hspace{0.17em}}f.\text{\hspace{0.17em}}$ That is, exclude those inputs $\text{\hspace{0.17em}}x\text{\hspace{0.17em}}$ from the domain of $\text{\hspace{0.17em}}g\text{\hspace{0.17em}}$ for which $\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$ is not in the domain of $\text{\hspace{0.17em}}f.\text{\hspace{0.17em}}$ The resulting set is the domain of $\text{\hspace{0.17em}}f\circ g.$

## Finding the domain of a composite function

Find the domain of

The domain of $\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$ consists of all real numbers except $\text{\hspace{0.17em}}x=\frac{2}{3},\text{\hspace{0.17em}}$ since that input value would cause us to divide by 0. Likewise, the domain of $\text{\hspace{0.17em}}f\text{\hspace{0.17em}}$ consists of all real numbers except 1. So we need to exclude from the domain of $\text{\hspace{0.17em}}g\left(x\right)\text{\hspace{0.17em}}$ that value of $\text{\hspace{0.17em}}x\text{\hspace{0.17em}}$ for which $\text{\hspace{0.17em}}g\left(x\right)=1.$

$\begin{array}{ccc}\hfill \frac{4}{3x-2}& =& 1\hfill \\ \hfill 4& =& 3x-2\hfill \\ \hfill 6& =& 3x\hfill \\ \hfill x& =& 2\hfill \end{array}$

So the domain of $\text{\hspace{0.17em}}f\circ g\text{\hspace{0.17em}}$ is the set of all real numbers except $\text{\hspace{0.17em}}\frac{2}{3}\text{\hspace{0.17em}}$ and $\text{\hspace{0.17em}}2.\text{\hspace{0.17em}}$ This means that

$x\ne \frac{2}{3}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{or}\text{\hspace{0.17em}}\text{\hspace{0.17em}}x\ne 2$

We can write this in interval notation as

$\left(-\infty ,\frac{2}{3}\right)\cup \left(\frac{2}{3},2\right)\cup \left(2,\infty \right)$

#### Questions & Answers

hello, I am happy to help!
Shirley Reply
please can go further on polynomials quadratic
Abdullahi
I need quadratic equation link to Alpa Beta
Abdullahi Reply
find the value of 2x=32
Felix Reply
divide by 2 on each side of the equal sign to solve for x
corri
X=16
Michael
Want to review on complex number 1.What are complex number 2.How to solve complex number problems.
Beyan
use the y -intercept and slope to sketch the graph of the equation y=6x
Only Reply
how do we prove the quadratic formular
Seidu Reply
hello, if you have a question about Algebra 2. I may be able to help. I am an Algebra 2 Teacher
Shirley Reply
thank you help me with how to prove the quadratic equation
Seidu
may God blessed u for that. Please I want u to help me in sets.
Opoku
what is math number
Tric Reply
4
Trista
x-2y+3z=-3 2x-y+z=7 -x+3y-z=6
Sidiki Reply
Need help solving this problem (2/7)^-2
Simone Reply
x+2y-z=7
Sidiki
what is the coefficient of -4×
Mehri Reply
-1
Shedrak
the operation * is x * y =x + y/ 1+(x × y) show if the operation is commutative if x × y is not equal to -1
Alfred Reply
An investment account was opened with an initial deposit of \$9,600 and earns 7.4% interest, compounded continuously. How much will the account be worth after 15 years?
Kala Reply
lim x to infinity e^1-e^-1/log(1+x)
given eccentricity and a point find the equiation
Moses Reply
12, 17, 22.... 25th term
Alexandra Reply
12, 17, 22.... 25th term
Akash

### Read also:

#### Get the best College algebra course in your pocket!

Source:  OpenStax, College algebra. OpenStax CNX. Feb 06, 2015 Download for free at https://legacy.cnx.org/content/col11759/1.3
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'College algebra' conversation and receive update notifications?

 By By By Prateek Ashtikar By By By