Composite functions maths is one of the first genuinely abstract concepts students encounter in Ontario’s Grade 11 curriculum — and one of the most commonly misunderstood. This guide explains what composite functions are, how to evaluate and simplify them step by step, what the most common mistakes look like, and how to practise effectively. Whether your child is in MCR3U and hitting Unit 1, or in MHF4U reviewing function concepts, this is the right starting point.

Not sure if they’re really understanding composite functions?
Our free assessment shows whether your child has mastered the foundations before they move on to more difficult topics.
→ Get your free feedback report
What Are Composite Functions in Maths?
A composite function is a function applied to the output of another function. Instead of applying f to an input x, you apply g to x first, then apply f to the result.
The notation for a composite function is:(f∘g)(x)=f(g(x))
Read this as: “f of g of x” — or “f composed with g.”
The key idea: g(x) is evaluated first, and its output becomes the input for f.
Simple example:
Let f(x) = x + 3 and g(x) = 2x.
Find (f ∘ g)(x):
- Step 1: g(x) = 2x (evaluate g first)
- Step 2: f(g(x)) = f(2x) = 2x + 3 (substitute g(x) into f)
So (f ∘ g)(x) = 2x + 3
Now find (g ∘ f)(x) — the other order:
- Step 1: f(x) = x + 3
- Step 2: g(f(x)) = g(x + 3) = 2(x + 3) = 2x + 6
So (g ∘ f)(x) = 2x + 6
These are different results. This is the single most important thing to understand about composite functions maths: the order matters. f ∘ g and g ∘ f are generally not the same function.
Why Composite Functions Matter in MCR3U and MHF4U
Composite functions are introduced in MCR3U Unit 1 (Characteristics of Functions) and used throughout both MCR3U and MHF4U. They appear in:
- Evaluating transformations of functions — which is formally the same as function composition
- Finding inverse functions — a function and its inverse composed give the identity: f(f⁻¹(x)) = x
- Applying logarithm and exponential functions to each other
- Solving equations involving nested functions
A student who does not genuinely understand composite functions will encounter that gap repeatedly across Units 2 through 6 of MCR3U and across the full content of MHF4U. It is one of the concepts where a shaky foundation compounds most visibly.
For the full MCR3U context, see our MCR3U complete guide and Grade 11 Functions Ontario guide.
How to Evaluate a Composite Function at a Specific Value
Evaluating composite functions maths at a specific value follows a clear two-step process.
Method: work from the inside out.
(f ∘ g)(a) = f(g(a))
Evaluate g(a) first. Use the result as the input for f.
Example 1: f(x) = x² + 1, g(x) = 3x − 2
Find (f ∘ g)(4):
- Step 1: g(4) = 3(4) − 2 = 10
- Step 2: f(g(4)) = f(10) = 10² + 1 = 101
Example 2: f(x) = 2x + 5, g(x) = x²
Find (g ∘ f)(3):
- Step 1: f(3) = 2(3) + 5 = 11
- Step 2: g(f(3)) = g(11) = 11² = 121
Example 3 — evaluating from a table: Sometimes composite functions maths questions present f and g as tables rather than equations.
| x | f(x) | g(x) |
|---|---|---|
| 1 | 4 | 2 |
| 2 | 7 | 1 |
| 3 | 2 | 5 |
| 4 | 9 | 3 |
| 5 | 6 | 4 |
Find (f ∘ g)(2):
- Step 1: g(2) = 1 (from table)
- Step 2: f(g(2)) = f(1) = 4 (from table)
- (f ∘ g)(2) = 4
Find (g ∘ f)(4):
- Step 1: f(4) = 9 (from table)
- Step 2: g(f(4)) = g(9) — but 9 is not in the table → undefined (outside the domain of g)
This table-based example illustrates an important point about domain in composite functions, covered below.
How to Find the General Formula for a Composite Function
When both functions are given as equations, you can find an algebraic formula for the composite function.
Method:
- Write out f(g(x))
- Substitute the expression for g(x) wherever x appears in f
- Simplify
Example 4: f(x) = x² − 3, g(x) = x + 5
Find (f ∘ g)(x):
- f(g(x)) = f(x + 5)
- = (x + 5)² − 3
- = x² + 10x + 25 − 3
- = x² + 10x + 22
Example 5: f(x) = 3x − 1, g(x) = x²
Find (g ∘ f)(x):
- g(f(x)) = g(3x − 1)
- = (3x − 1)²
- = 9x² − 6x + 1
Example 6 (MHF4U level): f(x) = √x, g(x) = 2x + 8
Find (f ∘ g)(x) and state its domain:
- f(g(x)) = f(2x + 8) = √(2x + 8)
- Domain restriction: the expression under a square root must be ≥ 0
- 2x + 8 ≥ 0 → x ≥ −4
- (f ∘ g)(x) = √(2x + 8), domain: x ≥ −4
This example introduces the domain consideration that becomes critical in MHF4U composite functions questions.
Domain of Composite Functions
The domain of a composite function (f ∘ g)(x) is more restricted than it might initially appear. Two conditions must be satisfied:
- x must be in the domain of g (g must be defined at x)
- g(x) must be in the domain of f (f must be defined at g(x))
The domain of (f ∘ g) is the set of all x satisfying both conditions simultaneously.
Example 7: f(x) = 1/x (domain: x ≠ 0), g(x) = x − 3 (domain: all real numbers)
Find (f ∘ g)(x) and its domain:
- (f ∘ g)(x) = f(g(x)) = f(x − 3) = 1/(x − 3)
- Condition 1: g is defined for all x ✓
- Condition 2: f is defined when g(x) ≠ 0 → x − 3 ≠ 0 → x ≠ 3
- Domain of (f ∘ g): x ≠ 3
Example 8: f(x) = √x (domain: x ≥ 0), g(x) = x² − 4
Find (f ∘ g)(x) and its domain:
- (f ∘ g)(x) = √(x² − 4)
- Condition 2: x² − 4 ≥ 0 → x² ≥ 4 → x ≤ −2 or x ≥ 2
- Domain: x ≤ −2 or x ≥ 2
Domain questions on composite functions are a consistent source of marks lost on MCR3U and MHF4U tests — and a consistent source of marks gained by students who practise them specifically.
Decomposing a Composite Function
Sometimes a question gives you a composed function and asks you to identify the component functions f and g. This is called decomposition.
Example 9: Express h(x) = (3x + 1)⁵ as a composite function f(g(x)).
- Let g(x) = 3x + 1 (the inner function)
- Let f(x) = x⁵ (the outer function)
- Then f(g(x)) = (3x + 1)⁵ = h(x) ✓
Example 10: Express h(x) = √(x² − 9) as a composite function.
- Let g(x) = x² − 9 (inner)
- Let f(x) = √x (outer)
- Then f(g(x)) = √(x² − 9) = h(x) ✓
Decomposition appears in both MCR3U and MHF4U, and becomes particularly important in MCV4U when applying the chain rule in calculus — which requires recognising a composite structure to differentiate correctly.
Composite Functions and Inverses
One of the most important properties of inverse functions is expressed through composition:f(f−1(x))=xandf−1(f(x))=x
When a function and its inverse are composed in either order, the result is the identity function — you get x back.
This gives a way to verify that two functions are inverses of each other:
Example 11: f(x) = 2x + 6 and g(x) = (x − 6)/2. Verify they are inverses.
- f(g(x)) = f((x − 6)/2) = 2 · (x − 6)/2 + 6 = (x − 6) + 6 = x ✓
- g(f(x)) = g(2x + 6) = (2x + 6 − 6)/2 = 2x/2 = x ✓
Both compositions give x — confirmed inverses.
Common Mistakes in Composite Functions Maths
Mistake 1: Evaluating in the wrong order. (f ∘ g)(x) means apply g first, then f. Students who apply f first and g second consistently get wrong answers. The mnemonic: f ∘ g — the rightmost function (g) is applied first.
Mistake 2: Treating composition as multiplication. f(g(x)) ≠ f(x) · g(x). This is the single most common misconception. Composition is substitution — you replace x in f with the entire expression for g(x).
Mistake 3: Forgetting to expand after substitution. After substituting g(x) into f, the expression must be fully simplified. A student who writes f(g(x)) = (3x + 1)² and leaves it there has not completed the question if the form x² + 6x + 1 is expected.
Mistake 4: Ignoring domain restrictions. Evaluating (f ∘ g)(x) without checking whether g(x) falls in the domain of f is a consistent source of errors — particularly when f involves a square root or a rational expression.
Mistake 5: Confusing f(g(x)) with g(f(x)). These are generally different. Always read the notation carefully: the function written closest to the argument (x) is evaluated first.
Practice Problems
Work through these problems before checking the answers.
Set A — Evaluating at a value
Given f(x) = x² − 1 and g(x) = 2x + 3:
- (f ∘ g)(1) = ___
- (g ∘ f)(2) = ___
- (f ∘ f)(2) = ___
- (g ∘ g)(0) = ___
Set B — General formula
Given f(x) = 3x + 2 and g(x) = x² − 4:
- (f ∘ g)(x) = ___
- (g ∘ f)(x) = ___
- Find the domain of (f ∘ g)(x): ___
- Find (f ∘ g)(x) where f(x) = √x and g(x) = 4x − 8. State the domain. ___
Set C — Decomposition and inverses
- Express h(x) = (x² + 3)⁴ as f(g(x)). ___
- Express h(x) = 1/(2x − 5) as f(g(x)). ___
- Given f(x) = 4x − 3, find f⁻¹(x) and verify using composition. ___
- Given f(x) = x/(x + 1), domain x ≠ −1, find (f ∘ f)(x) and simplify. ___
Answers:
Set A:
- g(1) = 5; f(5) = 24
- f(2) = 3; g(3) = 9
- f(2) = 3; f(3) = 8
- g(0) = 3; g(3) = 9
Set B: 5. f(g(x)) = f(x² − 4) = 3(x² − 4) + 2 = 3x² − 10 6. g(f(x)) = g(3x + 2) = (3x + 2)² − 4 = 9x² + 12x + 4 − 4 = 9x² + 12x 7. f(x) = 3x + 2 is defined for all x; domain of (f ∘ g) = all real numbers 8. f(g(x)) = √(4x − 8); domain: 4x − 8 ≥ 0 → x ≥ 2
Set C: 9. g(x) = x² + 3, f(x) = x⁴ 10. g(x) = 2x − 5, f(x) = 1/x 11. f⁻¹(x) = (x + 3)/4; verify: f(f⁻¹(x)) = 4·(x+3)/4 − 3 = x + 3 − 3 = x ✓ 12. f(f(x)) = f(x/(x+1)) = (x/(x+1)) / (x/(x+1) + 1) = (x/(x+1)) / ((x + x+1)/(x+1)) = x/(2x+1)

Small gaps become bigger ones.
Composite functions are used throughout MCR3U and Advanced Functions. Catching misunderstandings early makes future topics much easier.
→ Find out where your child stands
Composite Functions Maths in Competition Mathematics
Composite functions appear in the Cayley Contest, Fermat Contest, and Euclid Contest in more demanding forms than standard curriculum questions. Competition problems typically involve:
- Finding f(f(f(x))) — repeated composition
- Solving f(g(x)) = k for x — combining composition with equation solving
- Functions defined by cases, requiring careful domain tracking
- Finding values of n such that (f ∘ f ∘ … ∘ f)(x) = x (periodic functions under composition)
A student who has genuine fluency with composite functions maths — not just the ability to follow a worked example — is significantly better positioned for these competition question types than one who has only practised the straightforward curriculum version.
Frequently Asked Questions
What are composite functions in maths? A composite function applies one function to the output of another. (f ∘ g)(x) = f(g(x)) — g is evaluated first, and its result becomes the input for f. The order matters: f ∘ g and g ∘ f are generally different functions.
What does f(g(x)) mean? It means evaluate g at x first, then evaluate f at the result. Read it from the inside out: start with g(x), then apply f to whatever g produces.
Is f(g(x)) the same as g(f(x))? Generally no. Composition is not commutative — the order in which functions are applied usually changes the result. Always pay attention to which function is written innermost (closest to x).
How do you find the domain of a composite function? The domain of (f ∘ g)(x) is the set of x values where g is defined AND where g(x) falls within the domain of f. Both conditions must be satisfied simultaneously.
Where do composite functions appear in the Ontario curriculum? Composite functions are introduced in MCR3U Unit 1 and used throughout MCR3U and MHF4U. They form the conceptual basis for function transformations, inverse functions, and — in MCV4U — the chain rule in calculus.
What is the difference between f(g(x)) and f(x)·g(x)? f(g(x)) is composition — substituting g(x) into f. f(x)·g(x) is multiplication — multiplying the two function values together. These are completely different operations and produce different results.
See our related guides: MCR3U complete guide · Grade 11 Functions Ontario guide · MHF4U Advanced Functions guide · MHF4U prerequisite guide · Cayley math contest guide · Euclid math contest guide · trigonometric identities sheet · choosing high school math courses

See how Think Academy teaches difficult concepts.
Experience a live lesson with one of our expert teachers and discover why thousands of Canadian families trust Think Academy.
