# 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)$

the gradient function of a curve is 2x+4 and the curve passes through point (1,4) find the equation of the curve
1+cos²A/cos²A=2cosec²A-1
test for convergence the series 1+x/2+2!/9x3
a man walks up 200 meters along a straight road whose inclination is 30 degree.How high above the starting level is he?
100 meters
Kuldeep
Find that number sum and product of all the divisors of 360
Ajith
exponential series
Naveen
what is subgroup
Prove that: (2cos&+1)(2cos&-1)(2cos2&-1)=2cos4&+1
e power cos hyperbolic (x+iy)
10y
Michael
tan hyperbolic inverse (x+iy)=alpha +i bita
prove that cos(π/6-a)*cos(π/3+b)-sin(π/6-a)*sin(π/3+b)=sin(a-b)
why {2kπ} union {kπ}={kπ}?
why is {2kπ} union {kπ}={kπ}? when k belong to integer
Huy
if 9 sin theta + 40 cos theta = 41,prove that:41 cos theta = 41
what is complex numbers
Dua
Yes
ahmed
Thank you
Dua
give me treganamentry question
Solve 2cos x + 3sin x = 0.5