Step 2 of 8 · Worked example · TEACH

← Functions & Calculus

0 of 3 done

Work through the example to CHECK to open the problems.

Reach CHECK to open the problems.Ordinary Level · Functions & Calculus · Step 2

Follow the worked reasoning stage by stage.

f(x) = x + 4 and g(x) = 3x. Find f(g(2)) and g(f(2)).

f(x) = x + 4 and g(x) = 3x.

(i) Find f(g(2)).

(ii) Find g(f(2)).

(iii) Write g(f(x)) as a single expression.

Read it once, slowly. Then copy it onto your page.
  • What is fixed? Two rules. f(x) = x + 4 adds 4 to whatever goes in. g(x) = 3x multiplies it by 3.
  • (i) and (ii) both start with 2, but the order is swapped: f(g(2)) and g(f(2)). One function sits inside the other's brackets.
  • (iii) g(f(x)) has the letter x as input, so the answer is a single expression, not a number.
Céim

Ordinary Level Maths · Functions & Calculus · Step 2 of 8

Composite Functions

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

Why it matters

Composite functions describe chained processes — a discount then a tax, a conversion then a rounding — and appear directly on the exam as fg(x) or gf(x).

The worked example

f(x) = x + 4 and g(x) = 3x. (i) Find f(g(2)). (ii) Find g(f(2)). (iii) Write g(f(x)) as a single expression.

How the worked example goes

  1. Read

    • What is fixed? Two rules. f(x) = x + 4 adds 4 to whatever goes in. g(x) = 3x multiplies it by 3.
    • (i) and (ii) both start with 2, but the order is swapped: f(g(2)) and g(f(2)). One function sits inside the other's brackets.
    • (iii) g(f(x)) has the letter x as input, so the answer is a single expression, not a number.
  2. Understand

    • (i) Which one works first?
    • Think of two machines in a row. The output of the first is fed into the second.
    • In f(g(2)), g is inside: g first, then f
  3. Reduce

    • (i) Where do I start?
    • g(2) = 3(2) = 6
    • Write this middle value down. It is the input for f.
  4. Solve

    • g(2) = 6. What comes next in f(g(2))? f(6) = 10: f is outside, so the 6 goes into f: 6 + 4 = 10.
    • (i) Put 6 into f.
    • f(6) = 6 + 4 = 10
  5. Check

    • (i) Is it right?
    • Trace it: 2, times 3 is 6, plus 4 is 10 ✓
    • (ii) Is it right?

Common mistakes to avoid

Key terms

composite · fg(x) · inside function · outside function · order · input · output · substitute