# 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

A laser rangefinder is locked on a comet approaching Earth. The distance g(x), in kilometers, of the comet after x days, for x in the interval 0 to 30 days, is given by g(x)=250,000csc(π30x). Graph g(x) on the interval [0, 35]. Evaluate g(5)  and interpret the information. What is the minimum distance between the comet and Earth? When does this occur? To which constant in the equation does this correspond? Find and discuss the meaning of any vertical asymptotes.
The sequence is {1,-1,1-1.....} has
circular region of radious
how can we solve this problem
Sin(A+B) = sinBcosA+cosBsinA
Prove it
Eseka
Eseka
hi
Joel
June needs 45 gallons of punch. 2 different coolers. Bigger cooler is 5 times as large as smaller cooler. How many gallons in each cooler?
7.5 and 37.5
Nando
find the sum of 28th term of the AP 3+10+17+---------
I think you should say "28 terms" instead of "28th term"
Vedant
the 28th term is 175
Nando
192
Kenneth
if sequence sn is a such that sn>0 for all n and lim sn=0than prove that lim (s1 s2............ sn) ke hole power n =n
write down the polynomial function with root 1/3,2,-3 with solution
if A and B are subspaces of V prove that (A+B)/B=A/(A-B)
write down the value of each of the following in surd form a)cos(-65°) b)sin(-180°)c)tan(225°)d)tan(135°)
Prove that (sinA/1-cosA - 1-cosA/sinA) (cosA/1-sinA - 1-sinA/cosA) = 4
what is the answer to dividing negative index
In a triangle ABC prove that. (b+c)cosA+(c+a)cosB+(a+b)cisC=a+b+c.
give me the waec 2019 questions