Composition of Functions - Example and Practice Problems

A composition of functions is formed by taking the outputs of one function and converting them into the inputs of another function. These functions can be very useful when we have to model different processes with different functions.

Here, we will explore a brief overview of function composition and we will learn how to get a composition if we have two functions. In addition, we will look at several examples with answers in order to master the process used to obtain the composition of functions.

ALGEBRA
examples of composition of functions

Relevant for...

Learning about the composition of functions with examples.

See examples

ALGEBRA
examples of composition of functions

Relevant for...

Learning about the composition of functions with examples.

See examples

Summary of composition of functions

The composition of functions is an operation where two functions like $latex f(x)$ and $latex g(x)$ generate a new function like $latex h(x)$ in such a way that we have $latex h(x)=g(f(x))$.

This means that the function $latex g$ is applied to the function $latex f(x)$. This means that basically a function is applied to the result of another function.

Symbol: A composition of functions is also denoted as $latex (g\circ f)(x)$, where the small circle, $latex \circ$, is the symbol of the composition of functions. We cannot replace the circle with a point (·) since this indicates the product of two functions.

Domain: The composition $latex f(g(x))$ is read as “f of g of x“. In this composition, the domain of the function f becomes $latex g(x)$ since the domain is the set of all input values ​​of the function.

To apply the composition $latex f\circ g$, we carry out the following two steps:

Step 1: We apply the function g to the input x and obtain the result $latex g(x)$ as the output.

Step 2: We apply the function f using $latex g(x)$ as the input and we get the result $latex f(g(x))$ as the output.

Composition of functions – Examples with answers

The following function composition examples can be used to fully understand the process used to obtain a function composition. It is advisable to try to solve the exercises yourself before looking at the answer.

EXAMPLE 1

Find the composition $latex f(g(x))$ is we have the functions $latex f(x)=2x+3$ and $latex g(x)=x+1$.

Solution

EXAMPLE 2

Find the composition $latex f\circ g$ is we have the functions $latex f(x)={{x}^2}+5$ and $latex g(x)=x+1$.

Solution

EXAMPLE 3

We have the functions $latex f(x)=2{{x}^2}+3x-10$ and $latex g(x)=-x+2$. Find the composition $latex f\circ g$.

Solution

EXAMPLE 4

Find the composition of functions $latex g\circ f$ is we have $latex f(x)=6{{x}^2}+8x-10$ and $latex g(x)=\frac{1}{2}x+5$.

Solution

EXAMPLE 5

We have the functions $latex f(x)=2{{x}^2}+5$ and $latex g(x)=\sqrt{-2x+4}$. Find the composition $latex f(g(x))$.

Solution

EXAMPLE 6

Calculate the composition $latex g\circ f$ if we have the functions $latex f(x)=16\sqrt{x+2}$ and $latex g(x)=\sqrt{x}$.

Solution

EXAMPLE 7

If we have $latex f(x)=3{{x}^2}+2x-6$, find the composition of functions $latex f\circ f$.

Solution

Composition of functions – Practice problems

Put into practice what you have learned about the composition of functions by solving the following problems. Choose an answer and check it to see if you got the correct answer. Check out the solved examples above in case you need help.

Find the composition $latex f(g(x))$ if we have the functions $latex f(x)=4x+2$ and $latex g(x)=x+2$.

Choose an answer






Find the composition $latex f\circ g$ if we have the functions $latex f(x)=2{{x}^2}-3x-1$ and $latex g(x)=-x+5$.

Choose an answer






If we have $latex f(x)=-10{{x}^2}+6x-4$ and $latex g(x)=\frac{1}{2}x+2$, find $latex g\circ f$.

Choose an answer






Find the composition $latex f(g(x))$ with the functions $latex f(x)=4{{x}^2}-4$ and $latex g(x)=\sqrt{-5x+1}$.

Choose an answer






Find the composition $latex f\circ f$ is we have $latex f(x)=-3{{x}^2}-7x+4$.

Choose an answer






See also

Interested in learning more about functions? Take a look at these pages:

Learn mathematics with our additional resources in different topics

LEARN MORE