2.3 Composite Functions
AQA A-level Maths Year 2 · 7357 · Chapter 2: Functions
What is in the full lesson (13 activities)
Every item below opens free in the course.
- Video: Composite Functions: example 1
- Video: Composite Functions: example 2
- Video: Composite Functions: example 3
- Video: Composite Functions: example 4
- Video: Composite Functions: example 5
- Video: A2.pm.02-01 Composite Functions 1
- Video: A2.pm.02-02 Composite Functions 2
- Notes: Lesson notes: Composite Functions
- Interactive lesson: Interactive lesson: Function Chain Builder
- Interactive lesson: Interactive practice: Composite Functions Practice
- Practice questions: Practice questions (9 questions, 13 marks)
- Worksheet: Worksheet: Composite Functions
- Answers: Answers and mark scheme of the Worksheet: Composite Functions
A free AQA A-level Maths Year 2 lesson for AQA A-level Mathematics (7357) from OBA School: combining functions, solving composite equations, and the domain and range of a composite (AQA 7357: B8). Watch the video, read the explanation and worked examples, then try the revision questions. You can work through the full lesson, with more videos, an interactive lesson, a practice quiz and printable worksheets, in our free online course.
What you will learn
- Evaluate composite functions such as fg(3), gf(3) and f²(3)
- Find and simplify expressions for fg(x) and gf(x)
- Solve equations involving composite functions
- Decide when a composite function exists and find its domain and range
- Find one function when a composite and the other function are known
Key words
- Composite function: A function formed by applying one function to the output of another: fg(x) = f(g(x)).
- Order: In fg(x) the function written nearer to x, here g, is applied first.
- f²(x): Shorthand for ff(x) = f(f(x)). It is not [f(x)]².
- Domain of a composite: The inputs of g whose outputs are allowed inputs of f.
Evaluating composite functions
fg(x) means "do g, then do f". Work from the inside out.
Worked example: numbers in, numbers out
f(x) = x² − 3 and g(x) = 2x + 1, both with domain ℝ. Find fg(2), gf(2) and f²(1).
fg(2) = f(5) = 25 − 3 = 22
gf(2) = g(1) = 3
f²(1) = f(f(1)) = f(−2) = 4 − 3 = 1
Answer: fg(2) = 22, gf(2) = 3, f²(1) = 1. The order matters: fg(2) ≠ gf(2).
Finding expressions for composites
To find fg(x), take the rule for f and replace every x by the whole of g(x), in brackets.
Worked example: a reciprocal and a linear function
f(x) = 1/(x + 2), x ≠ −2, and g(x) = 3x − 1, x ∈ ℝ. Find fg(x) and gf(x).
fg(x) = 1/((3x − 1) + 2) = 1/(3x + 1), which needs x ≠ −1/3.
gf(x) = 3(1/(x + 2)) − 1 = (3 − (x + 2))/(x + 2) = (1 − x)/(x + 2)
Answer: fg(x) = 1/(3x + 1), gf(x) = (1 − x)/(x + 2)
Solving equations with composites
Worked example: a composite equal to a number
With f(x) = x² − 3 and g(x) = 2x + 1, solve fg(x) = 11, giving exact answers.
(2x + 1)² − 3 = 11, so (2x + 1)² = 14, so 2x + 1 = ±√14.
Answer: x = (−1 ± √14)/2
Worked example: solving ff(x) = x
h(x) = 3x − 4. Solve hh(x) = x.
hh(x) = 3(3x − 4) − 4 = 9x − 16. Then 9x − 16 = x, so 8x = 16.
Answer: x = 2. Check: h(2) = 2, so hh(2) = 2.
When does a composite exist? Domain and range
fg(x) only makes sense when the output of g is an allowed input for f. To find the range of fg, find the range of g first, then apply f to that set.
Worked example: restricting the domain
f(x) = ln x, x > 0, and g(x) = x² − 4x, x ∈ ℝ. Find the largest domain on which fg exists.
fg(x) = ln (x² − 4x) needs x² − 4x > 0, so x(x − 4) > 0.
Answer: x < 0 or x > 4. For example g(1) = −3 is not in the domain of f.
Worked example: the range of a composite
f(x) = eˣ and g(x) = x² + 1, both with domain ℝ. Find the range of fg.
Range of g: g(x) ≥ 1. Then f is increasing, so f of these values is at least e¹.
Answer: fg(x) = exp(x² + 1) ≥ e
Finding an unknown function
Worked example: finding g from fg
f(x) = 2x + 3 and fg(x) = 6x² − 1. Find g(x).
fg(x) = 2g(x) + 3 = 6x² − 1, so 2g(x) = 6x² − 4.
Answer: g(x) = 3x² − 2. Check: 2(3x² − 2) + 3 = 6x² − 1.
Common mistakes
- Applying the functions in the wrong order: in fg(x), g acts first.
- Multiplying instead of composing: fg(x) is not f(x) × g(x).
- Reading f²(x) as [f(x)]². It means f(f(x)).
- Leaving out brackets: with f(x) = x² − 3 and g(x) = 2x + 1, fg(x) = (2x + 1)² − 3, not 2x + 1² − 3.
- Forgetting to check that the outputs of the first function are allowed inputs of the second.
Revision questions
Try these, then check your answers below each one.
Question 1. f(x) = 3x − 1 and g(x) = x² + 3. Find fg(2).
Answer: 20
Working: g(2) = 7, then f(7) = 20.
Question 2. f(x) = 3x − 1 and g(x) = x² + 3. Find gf(2).
Answer: 28
Working: f(2) = 5, then g(5) = 28. Notice that gf(2) ≠ fg(2).
Question 3. f(x) = 3x − 1 and g(x) = x² + 3. Find fg(x). (Choose from: 3x² + 8; (3x − 1)² + 3; 3x² + 2; 3x³ − x² + 9x − 3.)
Answer: 3x² + 8
Working: fg(x) = 3(x² + 3) − 1 = 3x² + 8. The second option is gf(x) and the last is the product f(x)g(x).
Related lessons
- Previous lesson: 2.2 Domain and Range
- Next lesson: 2.4 Inverse Functions
- In this chapter: 2.1 Mappings and Functions
Continue in the full course
This lesson is section 2.3 of our free AQA A-level Maths Year 2 course. In the full course you get every video for this section, an animated interactive lesson, a self-marking practice quiz, a printable worksheet with a mark scheme, an end-of-chapter test and your progress saved.
Continue lesson 2.3 in the free course →