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

By the definition, is such that 0!=1.why?
(1+cosA+IsinA)(1+cosB+isinB)/(cos@+isin@)(cos$+isin$)
hatdog
Mark
how we can draw three triangles of distinctly different shapes. All the angles will be cutt off each triangle and placed side by side with vertices touching
bsc F. y algebra and trigonometry pepper 2
given that x= 3/5 find sin 3x
4
DB
remove any signs and collect terms of -2(8a-3b-c)
-16a+6b+2c
Will
Joeval
(x2-2x+8)-4(x2-3x+5)
sorry
Miranda
x²-2x+9-4x²+12x-20 -3x²+10x+11
Miranda
x²-2x+9-4x²+12x-20 -3x²+10x+11
Miranda
(X2-2X+8)-4(X2-3X+5)=0 ?
master
The anwser is imaginary number if you want to know The anwser of the expression you must arrange The expression and use quadratic formula To find the answer
master
The anwser is imaginary number if you want to know The anwser of the expression you must arrange The expression and use quadratic formula To find the answer
master
Y
master
master
Soo sorry (5±Root11* i)/3
master
Mukhtar
2x²-6x+1=0
Ife
explain and give four example of hyperbolic function
What is the correct rational algebraic expression of the given "a fraction whose denominator is 10 more than the numerator y?
y/y+10
Mr
Find nth derivative of eax sin (bx + c).
Find area common to the parabola y2 = 4ax and x2 = 4ay.
Anurag
y2=4ax= y=4ax/2. y=2ax
akash
A rectangular garden is 25ft wide. if its area is 1125ft, what is the length of the garden
to find the length I divide the area by the wide wich means 1125ft/25ft=45
Miranda
thanks
Jhovie
What do you call a relation where each element in the domain is related to only one value in the range by some rules?
A banana.
Yaona
a function
Daniel
a function
emmanuel
given 4cot thither +3=0and 0°<thither <180° use a sketch to determine the value of the following a)cos thither
what are you up to?
nothing up todat yet
Miranda
hi
jai
hello
jai
Miranda Drice
jai
aap konsi country se ho
jai
which language is that
Miranda
I am living in india
jai
good
Miranda
what is the formula for calculating algebraic
I think the formula for calculating algebraic is the statement of the equality of two expression stimulate by a set of addition, multiplication, soustraction, division, raising to a power and extraction of Root. U believe by having those in the equation you will be in measure to calculate it
Miranda