Composite Functions (Cambridge (CIE) IGCSE Maths: Extended): Revision Note
Exam code: 0580 & 0980
Composite functions
What is a composite function?
A composite function is a function applied to the output of another function
The input goes through the 1st function to become an output
This output goes through the 2nd function to become a new output
What notation is used for composite functions?
If and are two functions, then
is a composite function
It means the input goes through function first
This gives the output
Then this output, , becomes the input of function , giving
is the shorthand notation used for
It means do first, then
The order of applying the functions goes from right to left
(the letter nearest the bracket goes first)
This is often the opposite of what people expect!
means do first then second
means apply twice!
This can be written
This does not mean the same as
Examiner Tips and Tricks
A good trick in the exam is to write brackets around to make it , to see that it is "g" of "f(x)".
How do I substitute numbers into composite functions?
If you are putting a number into a composite function
put the number into the function closest to (x)
then make the output of the first function the input of the second function
For example, if and
to find :
Put the 2 in as the input of first
Then put 5 in as the input of
So
to find :
Put the 2 in as the input of first
Then put in as the input of
So
to find :
so
How do I find composite functions algebraically?
If you are using algebra, substitute the whole algebraic expression as your input
For example, if and
which simplifies to
Worked Example
In this question, and .
(a) Find .
Answer:
"g" is on the inside of the composite function, so apply g first
Now apply the function "f" to 36
(b) Find .
Answer:
"f" is on the inside of the composite function so substitute the function f(x) into g(x)
It can help to write
Simplify inside the bracket
Unlock more, it's free!
Was this revision note helpful?
Build on this topic
Questions students ask about Composite Functions
Real questions from students revising this topic on Save My Exams
Does fg(x) mean multiplying f(x) by g(x)?
No — fg(x) is not a multiplication; it means put x into g first, then put that answer into f.
- fg(x) is shorthand for f(g(x))
- Work right to left: the letter nearest the bracket goes first
- The output of the first function becomes the input of the second
- Multiplying would be written f(x) × g(x), which is a different thing
- Writing the extra brackets, f(g(x)), helps you see it is “f of g(x)”
Example from this page: f(x) = 2x − 1 and g(x) = (x + 2)². Find fg(4).
- g is nearest the bracket, so do g first: g(4) = (4 + 2)² = 6² = 36
- Put 36 into f: f(36) = 2(36) − 1 = 71
So fg(4) = 71.
Multiplying instead would give f(4) × g(4) = 7 × 36 = 252 — nowhere near 71.
The same idea works in algebra: for gf(x) you replace the x in g with the whole of f(x).
Do you need to find the domain of a composite function?
Not for the questions on this page — they only ask you to work out a composite function's value or its expression — but it is worth knowing which inputs a composite function cannot take.
The domain is the set of x-values you are allowed to put in. A composite function cannot take any x that breaks either step.
Example using this page's functions: f(x) = 2x + 1 and g(x) = 1/x
- g(x) = 1/x cannot take x = 0
- gf(x) = 1/(2x + 1): the denominator is zero when x = −½, so that value is excluded
- fg(x) = 2/x + 1: x = 0 is excluded, because g(0) does not exist
You would write gf(x) = 1/(2x + 1), x ≠ −½.
If a question does ask for a domain, find the values that would break either step and leave them out. Otherwise, just answer what is asked.
Do you always need to expand brackets when finding a composite function?
No — gf(x) = (2x + 1)² is already a correct, fully simplified answer; expanding just rewrites the same function.
The page's working for part (b): f(x) = 2x − 1 and g(x) = (x + 2)²
- gf(x) = g(2x − 1) = ((2x − 1) + 2)²
- Simplify inside the bracket: (2x + 1)²
The question only says “Find gf(x)”, so stopping there is fine. Do always tidy up inside the bracket, though.
If you did expand:
- (2x + 1)² = (2x + 1)(2x + 1) = 4x² + 4x + 1
- Same function, different form — check with x = 1: 3² = 9 and 4 + 4 + 1 = 9
Expand only when the question asks for it, for example “in the form ax² + bx + c”. Expanding for no reason just gives you another chance to slip up.
On this page ff(x) = 2(2x + 1) + 1 is tidied to 4x + 3, because collecting like terms genuinely simplifies it.