# 2.6 Function concepts -- composite functions

 Page 1 / 1
This module describes composite functions in Algebra.

You are working in the school cafeteria, making peanut butter sandwiches for today’s lunch.

• The more classes the school has, the more children there are.
• The more children there are, the more sandwiches you have to make.
• The more sandwiches you have to make, the more pounds (lbs) of peanut butter you will use.
• The more peanut butter you use, the more money you need to budget for peanut butter.

...and so on. Each sentence in this little story is a function. Mathematically, if $c$ is the number of classes and $h$ is the number of children, then the first sentence asserts the existence of a function $h\left(c\right)$ .

The principal walks up to you at the beginning of the year and says “We’re considering expanding the school. If we expand to 70 classes, how much money do we need to budget? What if we expand to 75? How about 80?” For each of these numbers, you have to calculate each number from the previous one, until you find the final budget number.

 $\underset{\to }{\text{# Classes}}$ $\underset{\to }{\text{# Children}}$ $\underset{\to }{\text{# Sandwiches}}$ $\underset{\to }{\text{lb.}}$ $\underset{\to }{\text{}}$

But going through this process each time is tedious. What you want is one function that puts the entire chain together: “You tell me the number of classes, and I will tell you the budget.”

 $\underset{\to }{\text{# Classes}}$ $\underset{\to }{\text{}}$

This is a composite function —a function that represents in one function, the results of an entire chain of dependent functions . Since such chains are very common in real life, finding composite functions is a very important skill.

## How do you make a composite function?

We can consider how to build composite functions into the function game that we played on the first day. Suppose Susan takes any number you give her, quadruples it, and adds 6. Al takes any number you give him and divides it by 2. Mathematically, we can represent the two functions like this:

$S\left(x\right)=4x+6$
$A\left(x\right)=\frac{x}{2}$

To create a chain like the one above, we give a number to Susan; she acts on it, and gives the resulting number to Al; and he then acts on it and hands back a third number.

$3\to \text{Susan}\to S\left(3\right)=18\to \text{Al}\to A\left(18\right)=9$

In this example, we are plugging $S\left(3\right)$ —in other words, 18— into Al’s function. In general, for any $x$ that comes in, we are plugging $S\left(x\right)$ into $A\left(x\right)$ . So we could represent the entire process as $A\left(S\left(x\right)\right)$ . This notation for composite functions is really nothing new: it means that you are plugging $S\left(x\right)$ into the $A$ function.

But in this case, recall that $S\left(x\right)=4x+6$ . So we can write:

$A\left(S\left(x\right)\right)=\frac{S\left(x\right)}{2}=\frac{4x+6}{2}=2x+3$

What happened? We’ve just discovered a shortcut for the entire process. When you perform the operation $A\left(S\left(x\right)\right)$ —that is, when you perform the Al function on the result of the Susan function—you are, in effect, doubling and adding 3. For instance, we saw earlier that when we started with a 3, we ended with a 9. Our composite function does this in one step:

$3\to 2x+3\to 9$

Understanding the meaning of composite functions requires real thought. It requires understanding the idea that this variable depends on that variable, which in turn depends on the other variable; and how that idea is translated into mathematics. Finding composite functions, on the other hand, is a purely mechanical process—it requires practice, but no creativity. Whenever you are asked for $f\left(g\left(x\right)\right)$ , just plug the $g\left(x\right)$ function into the $f\left(x\right)$ function and then simplify.

## Building and testing a composite function

$f\left(x\right)={x}^{2}-4x$

$g\left(x\right)=x+2$

What is $f\left(g\left(x\right)\right)$ ?

• To find the composite, plug $g\left(x\right)$ into $f\left(x\right)$ , just as you would with any number.

$f\left(g\left(x\right)\right)=\left(x+2{\right)}^{2}-4\left(x+2\right)$

• Then simplify.

$f\left(g\left(x\right)\right)=\left(x{}^{2}\text{}+4x+4\right)-\left(4x+8\right)$

$f\left(g\left(x\right)\right)={x}^{2}-4$

• Let’s test it. $f\left(g\left(x\right)\right)$ means do $g$ , then $f$ . What happens if we start with $x=9$ ?

$7\to g\left(x\right)\to 7+2=9\to f\left(x\right)\to \left(9{\right)}^{2}-4\left(9\right)=45$

• So, if it worked, our composite function should do all of that in one step.

$7\to {x}^{2}-4=\left(7{\right)}^{2}-4=45$ $✓$ It worked!

There is a different notation that is sometimes used for composite functions. This book will consistently use $f\left(g\left(x\right)\right)$ which very naturally conveys the idea of “plugging $g\left(x\right)$ into $f\left(x\right)$ .” However, you will sometimes see the same thing written as $f°g\left(x\right)$ , which more naturally conveys the idea of “doing one function, and then the other, in sequence.” The two notations mean the same thing.

show that the set of all natural number form semi group under the composition of addition
explain and give four Example hyperbolic function
_3_2_1
felecia
⅗ ⅔½
felecia
_½+⅔-¾
felecia
The denominator of a certain fraction is 9 more than the numerator. If 6 is added to both terms of the fraction, the value of the fraction becomes 2/3. Find the original fraction. 2. The sum of the least and greatest of 3 consecutive integers is 60. What are the valu
1. x + 6 2 -------------- = _ x + 9 + 6 3 x + 6 3 ----------- x -- (cross multiply) x + 15 2 3(x + 6) = 2(x + 15) 3x + 18 = 2x + 30 (-2x from both) x + 18 = 30 (-18 from both) x = 12 Test: 12 + 6 18 2 -------------- = --- = --- 12 + 9 + 6 27 3
Pawel
2. (x) + (x + 2) = 60 2x + 2 = 60 2x = 58 x = 29 29, 30, & 31
Pawel
ok
Ifeanyi
on number 2 question How did you got 2x +2
Ifeanyi
combine like terms. x + x + 2 is same as 2x + 2
Pawel
x*x=2
felecia
2+2x=
felecia
Mark and Don are planning to sell each of their marble collections at a garage sale. If Don has 1 more than 3 times the number of marbles Mark has, how many does each boy have to sell if the total number of marbles is 113?
Mark = x,. Don = 3x + 1 x + 3x + 1 = 113 4x = 112, x = 28 Mark = 28, Don = 85, 28 + 85 = 113
Pawel
how do I set up the problem?
what is a solution set?
Harshika
find the subring of gaussian integers?
Rofiqul
hello, I am happy to help!
Abdullahi
hi mam
Mark
find the value of 2x=32
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
yes i wantt to review
Mark
use the y -intercept and slope to sketch the graph of the equation y=6x
how do we prove the quadratic formular
Darius
hello, if you have a question about Algebra 2. I may be able to help. I am an Algebra 2 Teacher
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
4
Trista
x-2y+3z=-3 2x-y+z=7 -x+3y-z=6
can you teacch how to solve that🙏
Mark
Solve for the first variable in one of the equations, then substitute the result into the other equation. Point For: (6111,4111,−411)(6111,4111,-411) Equation Form: x=6111,y=4111,z=−411x=6111,y=4111,z=-411
Brenna
(61/11,41/11,−4/11)
Brenna
x=61/11 y=41/11 z=−4/11 x=61/11 y=41/11 z=-4/11
Brenna
Need help solving this problem (2/7)^-2
x+2y-z=7
Sidiki
what is the coefficient of -4×
-1
Shedrak
A soccer field is a rectangle 130 meters wide and 110 meters long. The coach asks players to run from one corner to the other corner diagonally across. What is that distance, to the nearest tenths place.
Jeannette has $5 and$10 bills in her wallet. The number of fives is three more than six times the number of tens. Let t represent the number of tens. Write an expression for the number of fives.
What is the expressiin for seven less than four times the number of nickels
How do i figure this problem out.
how do you translate this in Algebraic Expressions
why surface tension is zero at critical temperature
Shanjida
I think if critical temperature denote high temperature then a liquid stats boils that time the water stats to evaporate so some moles of h2o to up and due to high temp the bonding break they have low density so it can be a reason
s.
Need to simplify the expresin. 3/7 (x+y)-1/7 (x-1)=
. After 3 months on a diet, Lisa had lost 12% of her original weight. She lost 21 pounds. What was Lisa's original weight?
Got questions? Join the online conversation and get instant answers!