Teachers' Portal  /  IGCSE Additional Maths 0606  /  Functions  /  Composite functions
Lesson pack · IGCSE Additional Maths 0606 · 1.7 · IGCSE

Composite functions

One function inside another. A composite function feeds the output of one function straight into another.

Student lesson Lab, full screen
At a glance

The shape of the lesson

Topic
Functions
Syllabus reference
Cambridge IGCSE Additional Mathematics 0606, 1.7
Level
IGCSE
Duration
45 minutes, lab-led; stretches to a 60 minute block (see the contingency notes)
Position in topic
Lesson 2 of 4 in Functions; follows Functions, domain and range; leads into Inverse functions
Central model
Fig. 1: fg(x) with g(x) = x² + 2 and f(x) = 3x - 1. Each input goes through g first, then f. Reversing the order gives gf(2) = g(5) = 27, not fg(2) = 17
Cooperative structure
Assessment
Stage 1 check and the exam-style plenary from the student lesson, plus the worksheet as the exit task
Learning objectives

By the end of the lesson, learners can

Section by section
  • Order matters: In the lab, enter two functions and compare \(fg(x)\), where \(x\) goes into \(g\) first, with \(gf(x)\).
  • Solving with composites: To solve an equation such as \(fg(x) = 6\), first write \(fg(x)\) as a single expression in \(x\), then solve as usual.
  • Domain and range of a composite: \(gf\) can only exist if every output of \(f\) is an allowed input of \(g\).
Key points to leave on the board
  • Order: \(fg(x) = f\big(g(x)\big)\), so \(g\) acts first; \(f^{2}(x) = f\big(f(x)\big)\).
  • Substitute the whole inner expression in brackets wherever \(x\) appears in the outer function.
  • Solve: write the composite as one expression first; take both square roots; use \(\ln\) to undo \(\mathrm{e}\).
  • Exist? \(gf\) needs every output of \(f\) to be an allowed input of \(g\); restrict the domain of \(f\) if not.
  • Range: feed the range of \(f\) (not its domain) into \(g\).
The core visual model

One picture every idea returns to

\(fg(x) = f\big(g(x)\big)\): apply \(g\) FIRST, then \(f\). In general \(fg \ne gf\). \(f^{2}(x) = ff(x)\). The composite \(gf\) exists only when every output of \(f\) is an allowed input of \(g\); then the domain of \(gf\) lies within the domain of \(f\) and the range of \(gf\) lies within the range of \(g\).

x g(x) fg(x) g: x² + 2 f: 3x − 1 −1 3 8 0 2 5 2 6 17 domain of g outputs of g, inputs of f range of fg
Fig. 1: fg(x) with g(x) = x² + 2 and f(x) = 3x - 1. Each input goes through g first, then f. Reversing the order gives gf(2) = g(5) = 27, not fg(2) = 17
Lesson sequence

Forty-five minutes, phase by phase

TimePhaseWhat happens in the roomGrouping
0 to 5 minHook: predictOpen with the question in the title, One function inside another.. A composite function feeds the output of one function straight into another. Put the figure on the board: it is the one picture every idea in the lesson returns to.Whole class, then pairs
5 to 13 minTeach and check: Order mattersIn the lab, enter two functions and compare \(fg(x)\), where \(x\) goes into \(g\) first, with \(gf(x)\). Project tab 3 of the lab (Functions and differentiation lab, composite functions) and let a student drive it while the class predicts. Model the worked example fg, gf and f squared on the board, one line at a time.Whole class, then pairs
13 to 21 minTeach and check: Solving with compositesTo solve an equation such as \(fg(x) = 6\), first write \(fg(x)\) as a single expression in \(x\), then solve as usual. Model the worked example A quadratic composite on the board, one line at a time. Your turn: \(f(x) = x + 4\) for \(x \in \mathbb{R}\) and \(g(x) = \dfrac{6}{x}\) for \(x \ne 0\). Solve \(gf(x) = x\), giving your answers in surd form.Pairs
21 to 30 minTeach and check: Domain and range of a composite\(gf\) can only exist if every output of \(f\) is an allowed input of \(g\). Model the worked example Range of gf and fg on the board, one line at a time. Your turn: \(f(x) = \mathrm{e}^{x}\) and \(g(x) = 2x - 1\) for \(x \in \mathbb{R}\). Find \(gf(x)\) and its range.Rally Coach
30 to 36 minCheckThe four Stage 1 questions from the student lesson, answered on mini whiteboards or by show of fingers. Re-teach the one most get wrong.Individual, then whole class
36 to 43 minPlenaryThe exam-style questions from Stage 2, one at a time: thirty seconds alone, then a random call. The feedback lines in the key give the examiner's wording.Individual, random call
43 to 45 minExit and homeworkSet the worksheet below (6 questions, 24 marks). Learners self-assess against the objectives before they leave.Individual
Timing and contingency

Protect the parts that carry the learning

The sequence carries about fifty minutes of material, so the lab is driven by one student while the class predicts rather than explored freely. Times are a guide.

Protected: the check at 30 minutes. It is the only individual read on whether the key idea landed, and it is not cut.

Cut first if the build overruns: the last check in Domain and range of a composite, never the check or the plenary.

In a 60 minute block: run worksheet questions 1 to 3 in class as a Rally Coach set and model both the hardest worked example and its check live.

Running the cooperative task

Rally Coach

Pairs share one worksheet. One partner solves the first question aloud while the other coaches, checking each line and offering a prompt rather than the answer; they swap roles for the next question.

The full structure, with its PIES check and a worked example for every subject, is on the cooperative-learning page, one of fifteen structures there.

Examiner traps to pre-empt

What to head off, and how

Trap learners fall intoTeaching move that pre-empts it
\(fg(x)\) is not \(f(x) \times g(x)\), and \(f^{2}(x)\) is not \(\big(f(x)\big)^{2}\).For \(f(x) = 3x - 1\), \(f^{2}(x) = 9x - 4\), whereas \((3x - 1)^{2} = 9x^{2} - 6x + 1\).
From \((2x + 1)^{2} = 9\) you must take BOTH square roots, \(2x + 1 = \pm 3\).Writing only \(2x + 1 = 3\) loses \(x = -2\) and a mark.
Do not feed the DOMAIN of \(f\) into \(g\).For \(gf(x) = \ln(x^{2} + 1)\), putting 'all real numbers' into \(\ln\) wrongly suggests every real output; the inputs to \(\ln\) are only \(x^{2} + 1 \ge 1\), so \(gf(x) \ge 0\).
Worksheet

Composite functions: worksheet

6 questions, 24 marks. Written in the style of the papers; no past paper question is reproduced.

NameClassDate
Q1 · recall[2 marks]

The functions f and g are defined by \(f(x) = 4x - 1\) and \(g(x) = x^{2} + 2\) for \(x \in \mathbb{R}\). Find (a) \(fg(3)\) (b) \(gf(3)\).

Q2 · calculation[4 marks]

The functions f and g are defined by \(f(x) = 2x + 5\) for \(x \in \mathbb{R}\) and \(g(x) = \dfrac{1}{x - 1}\) for \(x \ne 1\).

(a) Find \(fg(x)\), giving your answer as a single fraction.

(b) Find \(gf(x)\), stating the value of \(x\) for which it is not defined.

(c) Find \(f^{2}(x)\).

Q3 · calculation[4 marks]

The functions f and g are defined by \(f(x) = \mathrm{e}^{x}\) and \(g(x) = 3x + 2\) for \(x \in \mathbb{R}\). Giving exact answers, solve

(a) \(gf(x) = 14\)

(b) \(fg(x) = 4\).

Q4 · analysis[5 marks]

The functions f and g are defined by \(f(x) = x^{2} - 2x\) and \(g(x) = 2x + 3\) for \(x \in \mathbb{R}\).

(a) Find \(fg(x)\) and \(gf(x)\).

(b) Solve \(fg(x) = gf(x)\).

(c) Find the range of \(gf\).

Q5 · proof[4 marks]

The functions f and g are defined by \(f(x) = \ln x\) for \(x > 0\) and \(g(x) = 5 - x\) for \(x \in \mathbb{R}\).

(a) Explain why the composite function \(fg\) does not exist.

(b) The domain of g is changed to \(x < k\) so that \(fg\) exists. State the greatest value of \(k\), find \(fg(x)\) and solve \(fg(x) = 0\).

Q6 · analysis[5 marks]

A temperature of \(x\) kelvin is converted to degrees Celsius by \(g(x) = x - 273\), and a temperature of \(x\) degrees Celsius is converted to degrees Fahrenheit by \(f(x) = 1.8x + 32\).

(a) Find \(fg(x)\) and explain what it represents.

(b) Find the temperature in kelvin that is equal to 50 degrees Fahrenheit.

(c) Temperatures in kelvin cannot be negative, so the domain of g is \(x \ge 0\). State the range of \(fg\).

(d) Explain why \(gf\) has no sensible meaning here.

Answer key and marking notes
Q1 · 2 marks
  • (a) \(g(3) = 11\), so \(fg(3) = f(11) = 43\).
  • (b) \(f(3) = 11\), so \(gf(3) = g(11) = 123\).
Q2 · 4 marks
  • (a) \(fg(x) = \dfrac{2}{x - 1} + 5 = \dfrac{2 + 5(x - 1)}{x - 1} = \dfrac{5x - 3}{x - 1}\).
  • (b) \(gf(x) = \dfrac{1}{(2x + 5) - 1} = \dfrac{1}{2x + 4}\).
  • It is not defined when \(2x + 4 = 0\), that is \(x = -2\).
  • (c) \(f^{2}(x) = 2(2x + 5) + 5 = 4x + 15\).
Q3 · 4 marks
  • (a) \(3\mathrm{e}^{x} + 2 = 14 \Rightarrow \mathrm{e}^{x} = 4\).
  • \(x = \ln 4\) (or \(2\ln 2\)).
  • (b) \(\mathrm{e}^{3x + 2} = 4 \Rightarrow 3x + 2 = \ln 4\).
  • \(x = \dfrac{\ln 4 - 2}{3}\).
Q4 · 5 marks
  • (a) \(fg(x) = (2x + 3)^{2} - 2(2x + 3) = 4x^{2} + 12x + 9 - 4x - 6 = 4x^{2} + 8x + 3\).
  • \(gf(x) = 2(x^{2} - 2x) + 3 = 2x^{2} - 4x + 3\).
  • (b) \(4x^{2} + 8x + 3 = 2x^{2} - 4x + 3 \Rightarrow 2x^{2} + 12x = 0 \Rightarrow 2x(x + 6) = 0\), so \(x = 0\) or \(x = -6\).
  • (c) \(f(x) = (x - 1)^{2} - 1\), so the range of f is \(f(x) \ge -1\).
  • \(g\) is increasing, so \(gf(x) \ge 2(-1) + 3\), giving \(gf(x) \ge 1\).
Q5 · 4 marks
  • (a) The range of g is all real numbers, including values such as \(g(6) = -1\), but f only accepts positive inputs (\(\ln(-1)\) is undefined). So the range of g is not within the domain of f.
  • (b) We need \(5 - x > 0\), so \(x < 5\): the greatest value is \(k = 5\).
  • \(fg(x) = \ln(5 - x)\).
  • \(\ln(5 - x) = 0 \Rightarrow 5 - x = 1 \Rightarrow x = 4\), which satisfies \(x < 5\).
Q6 · 5 marks
  • (a) \(fg(x) = 1.8(x - 273) + 32 = 1.8x - 459.4\). It converts kelvin directly to degrees Fahrenheit.
  • (b) \(1.8x - 459.4 = 50 \Rightarrow 1.8x = 509.4 \Rightarrow x = 283\): 283 kelvin.
  • (c) \(fg\) is increasing and \(fg(0) = -459.4\), so the range is \(fg(x) \ge -459.4\).
  • (d) \(gf\) would convert Celsius to Fahrenheit and then subtract 273 as if the Fahrenheit value were in kelvin, which gives no real temperature scale. The order of the functions matters.
Quiz

6 multiple-choice questions on this lesson

From the topic question bank. Assign them in the app for a marked score in your gradebook, or run the topic as a class game.

Q11 mark

\(f(x) = 2x - 3\) and \(g(x) = x^{2} + 1\) for \(x \in \mathbb{R}\). Find \(fg(-1)\).

  • A\(26\)
  • B\(-24\)
  • C\(-10\)
  • D\(1\)
Q21 mark

The function f is defined by \(f(x) = 5 - 2x\) for \(x \in \mathbb{R}\). Find \(f^{2}(x)\).

  • A\(4x^{2} - 20x + 25\)
  • B\(4x - 5\)
  • C\(-2x - 5\)
  • D\(4x + 5\)
Q31 mark

\(f(x) = \sqrt{x + 5}\) for \(x \ge -5\) and \(g(x) = x^{2} - 1\) for \(x \in \mathbb{R}\). Solve \(fg(x) = 3\).

  • A\(x = \pm\sqrt{5}\)
  • B\(x = \sqrt{5}\) only
  • C\(x = -1\)
  • D\(x = \pm 2\)
Q41 mark

\(f(x) = 2x + 1\) and \(g(x) = x^{2} + 2\) for \(x \in \mathbb{R}\). Solve \(fg(x) = gf(x)\).

  • A\(x = -1 + \sqrt{2}\) only
  • B\(x = -1 \pm \sqrt{2}\)
  • C\(x = 1 \pm \sqrt{2}\)
  • D\(x = \pm 1\)
Q51 mark

\(f(x) = \mathrm{e}^{x}\) for \(x \ge 0\) and \(g(x) = x^{2} - 4x\) for \(x \in \mathbb{R}\). Find the range of \(gf\).

  • A\(gf(x) \ge 0\)
  • B\(gf(x) \ge 1\)
  • C\(gf(x) \ge -3\)
  • D\(gf(x) \ge -4\)
Q61 mark

\(f(x) = ax + b\) for \(x \in \mathbb{R}\), where \(a > 0\). Given that \(f^{2}(x) = 9x - 8\), find \(f(x)\).

  • A\(3x - 2\)
  • B\(3x - \dfrac{8}{3}\)
  • C\(-3x + 4\)
  • D\(3x - 4\)
Quiz key
Q1: D

\(g(-1) = (-1)^{2} + 1 = 2\), then \(f(2) = 4 - 3 = 1\). \(26\) is \(gf(-1)\): \(f(-1) = -5\) and \(g(-5) = 26\), the wrong order. \(-10\) multiplies \(f(-1) \times g(-1) = -5 \times 2\) instead of composing. \(-24\) applies the wrong order and also squares \(-5\) as \(-25\).

Q2: B

\(f(f(x)) = 5 - 2(5 - 2x) = 5 - 10 + 4x = 4x - 5\). Check: \(f(0) = 5\) and \(f(5) = -5\), matching \(4(0) - 5\). \(4x^{2} - 20x + 25\) is \([f(x)]^{2}\), squaring instead of composing. \(-2x - 5\) drops the bracket, writing \(5 - 2 \times 5 - 2x\). \(4x + 5\) slips the sign of \(-2 \times 5\).

Q3: A

\(fg(x) = \sqrt{x^{2} + 4} = 3\), so \(x^{2} + 4 = 9\) and \(x^{2} = 5\): \(x = \pm\sqrt{5}\). Both are valid because \(x^{2} - 1 = 4 \ge -5\). \(\sqrt{5}\) only forgets the negative root. \(\pm 2\) loses the \(-1\) in g, giving \(x^{2} + 5 = 9\). \(-1\) solves \(gf(x) = 3\) instead: \(x + 5 - 1 = 3\).

Q4: B

\(fg(x) = 2(x^{2} + 2) + 1 = 2x^{2} + 5\) and \(gf(x) = (2x + 1)^{2} + 2 = 4x^{2} + 4x + 3\). Equating: \(2x^{2} + 4x - 2 = 0\), so \(x^{2} + 2x - 1 = 0\) and \(x = -1 \pm \sqrt{2}\). \(1 \pm \sqrt{2}\) slips the sign of \(b\) in the formula. \(\pm 1\) expands \((2x + 1)^{2}\) as \(4x^{2} + 1\), losing the middle term. Keeping only \(-1 + \sqrt{2}\) rejects the negative root, but the domain is all real numbers.

Q5: D

For \(x \ge 0\), \(f(x) = \mathrm{e}^{x} \ge 1\). So g acts on \(t \ge 1\): \(g(t) = (t - 2)^{2} - 4\), with vertex at \(t = 2\), which is inside \(t \ge 1\). So the minimum is \(-4\) and \(gf(x) \ge -4\). \(gf(x) \ge -3\) uses only the end value \(g(1) = -3\) and misses the vertex. \(gf(x) \ge 1\) is the range of f, not of \(gf\). \(gf(x) \ge 0\) puts the domain value \(x = 0\) straight into g.

Q6: A

\(f^{2}(x) = a^{2}x + ab + b\). So \(a^{2} = 9\), and \(a > 0\) gives \(a = 3\). Then \(3b + b = 4b = -8\), so \(b = -2\) and \(f(x) = 3x - 2\). Check: \(3(3x - 2) - 2 = 9x - 8\). \(3x - \dfrac{8}{3}\) forgets the final \(+b\), using \(ab = -8\). \(3x - 4\) uses \(b + b = -8\), forgetting to multiply by \(a\). \(-3x + 4\) does give \(9x - 8\), but it has \(a = -3\), which the condition \(a > 0\) rules out.

Lab and demo

What to project

The student lesson embeds these tabs. Open them full screen on the projector; every slider has a drag handle on the stage.

Slides

Slides for this lesson

A projectable deck for every pack is on the way. Until then, present the student lesson full screen: its sections, figure and lab tabs follow the same order as the plan above.

Also for this topic

Everything else you can use

Original work by the TheLucidSTEM team. The worksheet items are written in the style of the papers; no past paper question is reproduced.
Previous lessonFunctions, domain and range