In mathematics, a function acts as a processing machine: it accepts an input value from its domain, applies an algebraic rule, and produces a single output value in its range. A composite function occurs when two or more functions are chained together in sequence—the output of the first function becomes the direct input for the next.
Composite functions are a core component across GCSE (Higher) and A-Level Mathematics (AQA, Edexcel, OCR). They form the foundation for advanced calculus topics, such as the Chain Rule for differentiation and substitution techniques in integration. In examinations, questions range from basic numerical evaluations to multi-step algebraic proofs, solving composite equations, and determining domain restrictions.
What is a Composite Function?
A composite function is formed by applying one function to the result of another function.
Key Definition:
If f and g are two functions, the composite function fg(x) (or f(g(x))) means that function g is applied to x first, and then function f is applied to the resulting output g(x).
Composite Function Notation
Examination boards represent composite functions in three equivalent ways:
- Standard Form: fg(x) or gf(x)
- Bracket Form: f(g(x)) or g(f(x))
- Circle / Composition Operator Form: ()
Critical Rule: Order of Application (Inside-Out)
Always read composite functions from right to left (or from the inside out):
- In fg(x), g acts first, then f acts on the result.
- In gf(x), f acts first, then g acts on the result.
In general, function composition is not commutative:
Evaluating Numerical Values vs. Finding Algebraic Expressions
There are two primary methods for handling composite function questions:
Method A: Numerical Evaluation (e.g., Calculate fg(3))
When evaluating for a specific numerical input, work in two arithmetic steps:
- Calculate the output of the inner function: u = g(3).
- Substitute that result into the outer function: evaluate f(u).
Method B: Algebraic Expression (e.g., Find a formula for fg(x))
When asked for an expression in terms of x:
- Write the outer function with an empty set of brackets replacing every x: .
- Substitute the entire expression for the inner function g(x) into those brackets.
- Expand and simplify the resulting algebraic expression.
Repeated Composition & Three-Function Chains
- Self-Composition ( or ): Applying a function to itself:
- Three-Function Composition (fgh(x)):Work sequentially from the innermost function outward:
- First evaluate h(x), feed that into g(x), and finally feed that result into f(x).
Domain and Range Considerations (A-Level Core)
For a composite function fg(x) to exist for a given value of x:
- The input x must belong to the domain of g (the inner function).
- The output g(x) must belong to the domain of f (the outer function).
A-Level Requirement:
The composite function fg(x) is only defined if the range of the inner function g(x) is a subset of the domain of the outer function f(x):
Practice Questions & Solutions
The functions f(x) and g(x) are defined on R by:


Calculate the exact value of fg(2)
Calculate the exact value of gf(-1)
Find an expression for gf(x) in the expanded form 
Calculate fg(2):
Inner function:

Outer function:

Calculate gf(-1):
Inner function:

Outer function:

Expression for gf(x):



The functions p(x) and q(x) are given by:


Solve the equation pq(x) = 0
Step 1: Set up the composite equation.

Step 2: Solve algebraically.


Step 3: Find both solutions.
Case 1:

Case 2:

The function h(x) is defined by

for

Show that

Hence, state the mathematical relationship between h(x) and its inverse

Step 1: Substitute h(x) into itself.

Step 2: Combine terms over common denominator (x - 1)
Numerator:

Denominator:

Step 3: Simplify and state conclusion.

Since h(h(x)) = x, the function is a self-inverse function, meaning

The functions f(x) and g(x) are defined by:


Find an expression for fg(x) in the expanded form 



So 
The functions m(x) and n(x) are defined by:


Calculate the exact value of mn(3)
Calculate the exact value of nm(-2)
Find an expression for nm(x) in the expanded form 
Calculate mn(3):
Inner function:

Outer function:

Calculate nm(-2):
Inner function:

Outer function:

Expression for nm(x):



So 
Summarise with AI:








I get it somehow, there are others who are unfamiliar and I have a hard time with it but it’s okay that I get it.
Thanks for sharing your thoughts! It’s completely normal to find some parts unfamiliar or more difficult than others. The important thing is that you’re making progress and understanding more as you practise. Keep going! 😊
At least I understood some of it, but there are others that I’m confused about and have a hard time understanding, but I get it.
Thanks for sharing! It’s great that you’ve understood some of it already. Don’t worry if a few parts are still confusing — keep practising and take your time with the trickier sections. You’ll get there! 😊
The lesson was a little difficult for me, especially the word problems, but the examples helped me understand it better.
Thanks for your feedback! Word problems can definitely be tricky, so we’re glad the examples helped make the lesson clearer. Keep practising — it gets easier with time! 😊
Thankyouuu po