By now, you probably know that functions are mathematical expressions that take inputs and return outputs. But what if you were to use one function, as the input for another function? Well, then you have used composition of functions. When you use one function as the input to another, you create a whole new function. A composite function.
Composition of Functions is the method of using one function as the input to another function, resulting in a new unique function.
How exactly is this expressed mathematically? Well, if a composite function just takes one function as the input to another, you can express it like so
\[ h(x) = f(g(x)) \]
where \(h(x)\) is the composite function, and \( f(x) \) and \(g(x)\) are its constituent functions.
Alternatively, we can use circle notation to denote composition of functions
\[ h(x) = (f \circ g)(x) \]
where \(h(x)\) is the composite function, and \( f(x) \) and \(g(x)\) are its constituent functions.
Let's take a look at how you can use this method to form composite functions.
Forming Composite Functions
That's all well and good, but how exactly do you form these composite functions? Well, it's really not too difficult at all!
Let's take the functions \( f(x) = 2x\) and \( g(x) = x + 2\). To find the composite function \( h(x) = f(g(x)) \) you just substitute \( g(x) \) into \( f(x) \) wherever you see an \( x \).
Below is a graph showing plots of the functions \( f(x) \) and \( g(x) \), and the resulting composite function \( h(x) \). You can see from the graph that from composing our two original functions, you end up with a new, and unique function.
Fig. 1. Graph of functions \(f(x)\), \(g(x)\), and composite function \(h(x)\).
Let's take a look at another example to make sure you've got this!
Consider the functions \( f(x) = 3x + 2 \) and \( g(x) = 5x + 4 \). Find the function \( h(x) = (f \circ g)(x) \).
Solution:
To find the composite, replace each \( x \) in function \( f(x) \) with the the function \( g(x) \).
Not too tricky right? Well, remember, there's a bit more to functions than just the expression itself. When forming composite functions, you often have to stop and consider the domain of the function as well. Let's see just how that works.
Domains of Composite Functions
For a function to hold true, the input to that function must be within the function's domain.
The domain of a function is the set of all possible inputs to that function.
This is equally true for composite functions. From this, you can deduce that for the composite function to hold true, the output of the inner function must be within the domain of the outer function.
Let's take a look at an example to make this a little clearer.
Given the functions
\[ f(x) = \frac{1}{x-2}, \quad \{ x \in \mathbb{R} | x \neq 2 \} \]
and
\[ g(x) = x + 2, \quad \{ x \in \mathbb{R} \}, \]
what is the domain of composite function \( f(g(x)) \)?
Remember that \(\{ x \in \mathbb{R} \}\) means that \(x\) is a real number, and that \( \{ x \in \mathbb{R} | x \neq 2 \} \) means \(x\) can be any real number except \(2\).
Solution:
The outputs of the function \( g(x) \) must fall within the domain of \( f(x) \), therefore they must be a subsection of the set of all real numbers.
\[ \{ x \in \mathbb{R}\}\]
You also know that the output of function \( g(x) \) must not equal \( 2 \).
\[ g(x) \neq 2 \]
\[ \frac{1}{x-2} \neq 2 \]
\[ x \neq 2.5\]
Therefore the domain of the function \( f(g(x)) \) is everything except \(2.5\), or on other words
\[ \{ x \in \mathbb{R} | x \neq 2.5 \}. \]
What happens when you compose functions with fractions?
Composition of Functions with Fractions
When you compose functions, and one of them has a square root or a fraction (like a rational function), you need to be careful with the domain. Let's take a look at an example.
Take the functions \( g(x) = \sqrt{x}\) and
\[ f(x) = \frac{1}{x-2}.\]
Find \( (f \circ g)(x) \) and the domain of the composite function.
Solution:
Notice that the function \(g(x)\) is a square root, so its domain is \([0, \infty)\). So already you know that the domain of the composition function isn't all real numbers. If you do the composition,
\[ (f \circ g) (x) = \frac{1}{\sqrt{x}-2}.\]
You know that you can't have a zero in the denominator, so the domain of \(f \circ g\) needs to have
\[ \sqrt{x} - 2 \not= 0,\]
which means
\[ \sqrt{x} \not= 2,\]
so
\[ x \not= 4.\]
Combining the restrictions on the domain of \(g(x)\) with the restriction that \(x \not= 4\) gives you that the composition \( (f \circ g)(x)\) has a domain of \( [0, 4) \cup (4, \infty)\).
Composition of Functions with Multiple Variables
Composition of functions can be undergone in functions with multiple variables just as with a single variable. These variables can be either shared or not shared by the individual functions, the process is still largely the same.
It is important to note however that the final composite function will only contain variables present in the internal function.
Let's take a look at an example to see how this works.
First, let's look at two functions with different variables. Consider the functions
\[ f(x) = \sqrt{x + 2} \]
and
\[ g(y) = 10y. \]
Let's find the composition of these functions \( f(g(y)) \). Notice that the composite function is only a function of \( y \), and not of \( x \).
Solution:
As before, you substitute the value of \( g(y) \) for the \( x \) in \( f(x) \)to find the resultant composite function.
\[ f(g(y)) = \sqrt{10y + 2} \]
The domain of this composite function will also be in terms of \( y \). As you cannot take the square root of a negative (assuming you neglect imaginary numbers) the domain is as follows:
Since \(f\left(f^{-1}(x)\right) = x\) you know that you have found the inverse correctly.
Decomposing Compositions of Functions
It is possible to take a function and decompose it into constituent functions. This is essentially the same as performing function composition in reverse. Function decomposition is very easy to perform and just requires us to be able to identify constituent functions within the overall.
Let's take a look at the function \( h(x) = 2x^2 + 4 \). Now, you can decompose this function by factorising.
\[ h(x) = 2(x^2 + 2) \]
Now, if the function was in the form \( f(g(x)) \), what would its parts be? Well, you can say that inside the brackets is one function, \( g(x) \), and out of the brackets is \( f(x) \).
Therefore you have found the correct decomposition.
Composition of Functions Examples
Let's take a look at some example questions to see if you can use everything you've learned.
Consider a rocket moving through space with a uniform acceleration, \( a \)andmass, \( m \),from an initial velocity,\( u \).Given that its velocity at time \( t \) is described by \( v = u + at \), and its kinetic energy is described by
\[ E_K = \frac{1}{2} mv^2 ,\]
find an expression for the rocket's kinetic energy at time \( t \).
Solution:
You can rewrite each of these equations to function notation, recognising that \( u \), \( a \), and \( m \) are all constants, \( t \) and \( v \) are your two independent variables, and \( v \)and \( E_K \)are your dependent variables. So in functional notation:
\[ \begin{align} &v(t) = u + at \\ & E_K(v) = \frac{1}{2} mv^2 .\end{align}\]
Now, you want to find \( E_K(v) \)terms of \( t \), so you create a composite function \( E_K(v(t)) \)to achieve this. So let's substitute the value of the function \( v(t) \)wherever there is a \( v \) in \( E_K(v) \). This gives you
\[ E_K(v(t)) = \frac{1}{2} m(u + at) .\]
Given the functions
\[ f(x) = \frac{1}{x^2 + 6x + 9}, \quad \{ x \in \mathbb{N} | x \neq 3 \} \]
and
\[ g(x) = \sqrt{x}, \quad \{ x \in \mathbb{R}, \quad x\ge 0 \} ,\] what is the domain of composite function \( f(g(x)) \)?
Solution:
The output of \( g(x) \) must be within the domain of \( f(x) \). Therefore the outputs of \( g(x) \) must belong to the set \( \mathbb{N}\setminus \{3 \} \).
That means the output of \( g(x) \) cannot be \( 3 \), since the output of \(g(x)\) must be within the domain of \(f(x)\) and the domain of \(f(x)\) does not include \(3\). Therefore
\[ g(x) \neq 3, \]
so
\[ 3 \neq \sqrt{x} ,\]
which means
\[ x \neq 9. \]
The output of \( g(x) \) must be a natural number, so the output must also be greater than zero. Therefore
You can see by observation that the inner function is
\[ g(x) = \frac{3x}{4x + 5}, \]
And the outer function is therefore
\[ f(x) = 4x^2. \]
Composition of Functions - Key takeaways
A new function can be formed by using one function as an input to another, this is called a composite function.
When considering the domain of a composition of two functions, it is important to consider the domain of the overall function, not simply of its constituent functions.
It is possible to decompose functions into two or more constituent functions.
The limit of a composite function at a point is the outer function evaluated at the limit of the inner function approaching that point.
Learn faster with the 0 flashcards about Composition of Functions
Sign up for free to gain access to all our flashcards.
Frequently Asked Questions about Composition of Functions
What is the composition of functions?
Composition of functions is a method of combining functions that entails the output of one function being implemented as the input to another.
How do you perform composition of functions?
The output of one function is used as the input to another. In practise this looks like:
h(x) = f(g(x))
What are properties of composition of functions?
It largely depends on how "nice" the functions are. About all you can say in general is that the range of the inner function will be the domain of the outer function.
What are the limitations of composition of functions?
For the composition to be well defined, the range of the inner function must be included in the domain of the outer function.
What is division composition of functions?
You divide two composite functions exactly like you would two regular functions.
How we ensure our content is accurate and trustworthy?
At StudySmarter, we have created a learning platform that serves millions of students. Meet
the people who work hard to deliver fact based content as well as making sure it is verified.
Content Creation Process:
Lily Hulatt
Digital Content Specialist
Lily Hulatt is a Digital Content Specialist with over three years of experience in content strategy and curriculum design. She gained her PhD in English Literature from Durham University in 2022, taught in Durham University’s English Studies Department, and has contributed to a number of publications. Lily specialises in English Literature, English Language, History, and Philosophy.
Gabriel Freitas is an AI Engineer with a solid experience in software development, machine learning algorithms, and generative AI, including large language models’ (LLMs) applications. Graduated in Electrical Engineering at the University of São Paulo, he is currently pursuing an MSc in Computer Engineering at the University of Campinas, specializing in machine learning topics. Gabriel has a strong background in software engineering and has worked on projects involving computer vision, embedded AI, and LLM applications.
Vaia is a globally recognized educational technology company, offering a holistic learning platform designed for students of all ages and educational levels. Our platform provides learning support for a wide range of subjects, including STEM, Social Sciences, and Languages and also helps students to successfully master various tests and exams worldwide, such as GCSE, A Level, SAT, ACT, Abitur, and more. We offer an extensive library of learning materials, including interactive flashcards, comprehensive textbook solutions, and detailed explanations. The cutting-edge technology and tools we provide help students create their own learning materials. StudySmarter’s content is not only expert-verified but also regularly updated to ensure accuracy and relevance.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept
Privacy & Cookies Policy
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.