Composite Functions Video Lesson
How to Find Composite Functions
To find a composite function:
- Identify the outer and inner functions.
- Write the outer function.
- Substitute each ๐ฅ with the inner function.
- Simplify if necessary.
For example, if and
, calculate
.

1. Identify the outer and inner functions
For the composite function , the
is on the inside of
. It is the input to
.
When written like this as , the outer function is the one written on the left and the inner function is on the right.
is the inner function and
is the outer function.
2. Write the outer function
We write the outer function of .
3. Substitute each ๐ฅ with the inner function
Every ๐ฅ found within must be substituted with the inner function of
.
and so, we replace the ๐ฅ in
with an ๐ฅ2.
.

In this next example, we will keep and
but this time calculate
.

1. Identify the outer and inner functions
For the composite function , the
is on the inside of
. It is the input to
.
When written as , the outer function is the one written on the left and the inner function is on the right.
is the inner function and
is the outer function.
2. Write the outer function
We write the outer function of .
3. Substitute each ๐ฅ with the inner function
Every ๐ฅ found within must be substituted with the inner function of
.
and so, we replace the ๐ฅ in
with ๐ฅ+3.
We must square all of ๐ฅ+3 and so, we first put it in brackets: (๐ฅ+3).
.

The Order of Composite Functions
The order of composite functions matters because a different order results in an entirely different function. Always substitute the inner function on the right into the outer function on the left. For example, if f(๐ฅ)=๐ฅ+3 and g(๐ฅ)=๐ฅ2, f(g(๐ฅ))=๐ฅ2+3 and g(f(๐ฅ))=(๐ฅ+3)2.
Always substitute the rightmost function into the function on its left.
For example, means that
is substituted as an input into
.
means that
is substituted as an input into
.


To remember the order of composite functions, draw a backwards-facing arrow from the rightmost function to the leftmost function.
Always substitute the function on the right into the function on the left.

Composite Functions with Numbers
Composite functions can be evaluated when a number is the input. Substitute the number into the functions from right to left. For example, if f(๐ฅ)=2๐ฅ+1 and g(๐ฅ)=๐ฅ2, then gf(3) is found by substituting 3 into f(๐ฅ)=2๐ฅ+1 to get 7. Then substitute 7 into g(๐ฅ)=๐ฅ2 to get 49. gf(3)=49.

When the input to a composite function is a number, the resulting answer is also a number.
If the input to a composite function is ๐ฅ, the resulting answer will be another function.
When entering numbers into a composite function, it is important to evaluate each function from right to left.
In the example below, we first substitute 4 into g(๐ฅ) to get 2 and then substitute this output of 2 into f(๐ฅ) to get 11.

What Are Composite Functions?
A composite function is a function that is within another function. One function is substituted as the input to another function. For example f[ g(๐ฅ) ] means that g(๐ฅ) is substituted into every ๐ฅ in the function of f(๐ฅ). The composite function f[ g(๐ฅ) ] is pronounced as โf of g of ๐ฅโ.
For example, in the composite function below, is substituted into
to form
.
A composite function is different to the functions it is composed of.

Composite Function Notation
Composite functions can be written in different notations.
A function, substituted as the input to another function,
can be written as:
In mathematics, the circle symbol โ is used to indicate the composition of functions. For example (fโg)(๐ฅ) means to take the output of g and substitute it into f.
is read as โf of gโ โf composed with gโ, โf circle gโ, โf round gโ or โf about gโ.
Composite Function Arrow Diagram
An arrow diagram can be used to explain composite functions. The inputs to the first function are listed on the left. Arrows connect these inputs to their outputs in the middle. These outputs are then the inputs to the next function which has its outputs shown on the right.
For example, to find using the arrow diagram below, follow the input of 2 shown with the red arrow.
The first arrow shows the function of . When we square 2 we get 4.
The second arrow leaves the 4 and reaches an output of 7. This is because the function tells us to add three to the previous output. 4 + 3 = 7.
Therefore =7.

Properties of Composite Functions
Composite functions have the following properties:
- The inverse of the composition of functions is equal to the composition of the inverse of both functions. (fโg)-1 = g-1โf-1.
- The composition of one-to-one functions is also one-to-one.
- The composition of onto functions is also an onto function.
- Composite functions are assosciative. That is fโ(gโh) = (fโg)โh.
- The composition of functions is generally not commutative. It cannot be assumed that f[g(x)] = g[f(x)].
- A composite function containing at least one even function will be even.
- A composite function composed of entirely odd functions will also be odd.
Composite Functions with 3 Functions
To find a composite function made of three functions, substitute the rightmost function into the middle function and then substitute this into the leftmost function. For example, if g(๐ฅ)=๐ฅ2, f(๐ฅ)=3๐ฅ+1 and h(๐ฅ)=1/๐ฅ then h(g(f(๐ฅ)))=1/(3๐ฅ+1)2.

Arrows can be drawn from right to left to help remember the order of composite functions. In the example of h(g(f(๐ฅ))), the f function is substituted into the g function to form g(f(๐ฅ)).
g(f(๐ฅ)) = (3๐ฅ-1)2.
This is then substituted into the h function of 1/๐ฅ. We replace the ๐ฅ with (3๐ฅ-1)2.
h(g(f(๐ฅ))) = 1/(3๐ฅ-1)2.
Composite Function Examples
Composite Function Example with Square Roots
If g(๐ฅ) = ๐ฅ2 + 5๐ฅ and f(๐ฅ) = โ๐ฅ, calculate g(f(๐ฅ)). Substitute โ๐ฅ into every ๐ฅ found in the g(๐ฅ) function. g(f(๐ฅ)) = (โ๐ฅ)2+5โ๐ฅ. Here the โ๐ฅ and square operation cancel out to leave g(f(๐ฅ)) = ๐ฅ+5โ๐ฅ.

Composite Function Example with Fractions
If g(๐ฅ)=1/๐ฅ and f(๐ฅ)=1-๐ฅ, find g(f(๐ฅ)). Substitute the f function into the ๐ฅ in the g function. g(f(๐ฅ))=1/(1-๐ฅ). This composite function is written as a fraction.

Composite Function Example with Sin(๐ฅ)
If g(๐ฅ) = 2๐ฅ + 1 and f(๐ฅ) = sin(๐ฅ), calculate f(g(๐ฅ)). Substitute 2๐ฅ+1 into every ๐ฅ found in the f(๐ฅ) function. f(g(๐ฅ)) = sin(2๐ฅ+1).

Composite Function Example with e๐ฅ
e๐ฅ and ln(๐ฅ) are inverse functions. When written as a composite function, these two functions cancel each other out. If g(๐ฅ)=e๐ฅ and f(๐ฅ)=ln(๐ฅ)-๐ฅ, calculate f(g(๐ฅ)). Each ๐ฅ in f(๐ฅ) is replaced with e๐ฅ and so f(g(๐ฅ))=ln(e๐ฅ)-e๐ฅ. This simplifies to ๐ฅ-e๐ฅ.

A Function Composed of Itself
A function, f(๐ฅ) can be composed with itself to form f(f(๐ฅ)), which can also be written as f2(๐ฅ). This means that the function is placed as the input to itself. For example if f(๐ฅ)=5๐ฅ-2, then in f(f(๐ฅ)), the ๐ฅ in f(๐ฅ)=5๐ฅ-2 will be replaced with 5๐ฅ-2. f(f(๐ฅ))=5(5๐ฅ-2)-2, which simplifies to 25๐ฅ-12.

The Domain of Composite Functions
To calculate the domain of a composite function gf(๐ฅ):
- Find the values that are excluded from the domain of the outer function, g(๐ฅ).
- Set f(๐ฅ) equal to these excluded values and solve for ๐ฅ to find the values that must be excluded from the domain.
- Find any further values that are excluded from the domain of the inner function, f(๐ฅ).
- Combine these results to form the overall domain of the composite function.
For example if and
, find the domain of
.
Step 1. Find the values that are excluded from the domain of g(๐ฅ)
In the function g(๐ฅ) , there cannot be a denominator of 0.
xโ 0 as we cannot divide by 0.
Step 2. Set f(๐ฅ) equal to these excluded values and solve for ๐ฅ
.
We solve this for ๐ฅ to find any further values that must be excluded from the domain.
We square both sides of the equation.
We then see that .

Step 3. Find any values that are excluded from the inner function, f(๐ฅ)
. We cannot square root a negative number.
Therefore .
Step 4. Combine these results to determine the domain of the composite function
In , the domain is that
.
However in step 2 we run into problems if because this leads to a denominator of zero in the composite function.
Therefore the final domain of the composite function is .
Composite Functions From Graphs
To find the value of a composite function from a graph:
- Use the input of the composite function to read the output from the graph of the inner function.
- Use this output as the input of the graph of the outer function.
For example the functions of f(๐ฅ) and g(๐ฅ) are shown below.
Use the graphs to calculate the value of the composite function, g(f(5)).

Step 1. Use the input of the composite function to read the output from the graph of the inner function
The number input to the composite function is 5.
We read the graph of the inner function of f(๐ฅ) at the point where ๐ฅ = 5.
When ๐ฅ = 5, the f(๐ฅ) function has an output of 4.
Step 2. Use this output as the input of the graph of the outer function
We use the output of 4 from the first graph as the input to the outer function, g(๐ฅ).
When ๐ฅ = 4, g(๐ฅ) has an output of 5.
Therefore, g(f(๐ฅ)) = 5.
Here is another example.

To calculate g(f(2)), we first substitute 2 as an input into the f(๐ฅ) graph.
This gives us an output of 2 on the y-axis.
We then use this output of 2 from the f(๐ฅ) graph as an input to the g(๐ฅ) graph.
When ๐ฅ = 2, g(๐ฅ) has an output of 7.
Therefore g(f(2)) = 7.
Composite Functions Using a Table
To calculate the value of a composite function from a table:
- Read the output of the inner function from its table at the value required.
- Use this output as the input in the table of the outer function and read the new output.
For example, calculate the value of the composite function, g(f(3)) using the tables below.

Step 1. Read the output of the inner function from its table at the value required
The input of the composite function is ๐ฅ = 3.
From the first table, when ๐ฅ = 3 the value of f(๐ฅ) = 5.
Step 2. Use this output as the input in the table of the outer function and read the new output
The output of the f(๐ฅ) table was 5.
This is used as the input in the g(๐ฅ) table.
When ๐ฅ = 5, g(๐ฅ) = 17.
Therefore g(f(3)) = 17.