Functions

Step 7 of 11 · Worked example

← Functions

0 of 3 done

Work through the example to CHECK to open the problems.

Reach CHECK to open the problems.Higher Level · Functions · Step 7

Work from the inside out; put whole expressions in brackets; match terms to find k.

f(x) = 3x + 1 and g(x) = x² − 2. Find (i) f(g(2)), (ii) g(f(x)). (iii) If h(x) = x + k and f(h(x)) = 3x + 13, find k.

f(x) = 3x + 1 and g(x) = x² − 2.

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

(ii) Find g(f(x)).

(iii) h(x) = x + k and f(h(x)) = 3x + 13. Find k.

Read it once, slowly. Then copy it onto your page.
  • What is fixed? Two rules. f multiplies by 3, then adds 1. g squares, then subtracts 2.
  • What do (i) and (ii) want? One function inside another's bracket. (i) gives a number; (ii) has x going in, so an expression.
  • What does (iii) want? A new rule h(x) = x + k, and a fact: f(h(x)) = 3x + 13. Find the number k.
Céim

Higher Level Maths · Functions · Step 7 of 11

Composite Functions

One function feeds another: f(g(x)) with numbers and with expressions, and finding a missing letter by matching terms. Order matters.

Why it matters

Builds multi-stage relationships.

The worked example

f(x) = 3x + 1 and g(x) = x² − 2. (i) Find f(g(2)). (ii) Find g(f(x)). (iii) h(x) = x + k and f(h(x)) = 3x + 13. Find k.

How the worked example goes

  1. Read

    • What is fixed? Two rules. f multiplies by 3, then adds 1. g squares, then subtracts 2.
    • What do (i) and (ii) want? One function inside another's bracket. (i) gives a number; (ii) has x going in, so an expression.
    • What does (iii) want? A new rule h(x) = x + k, and a fact: f(h(x)) = 3x + 13. Find the number k.
  2. Understand

    • (i) Which rule acts first?
    • Try a number that is not in the question, 3. g(3) = 9 − 2 = 7. Then that 7 goes into f: f(7) = 22.
    • Inner g first, then outer f
  3. Reduce

    • What is f(g(2))? 7, from g(2) = 2 then f(2): g is inside, so it acts first: g(2) = 2. Then f takes that 2: 3(2) + 1 = 7.
    • (i) Where do I start?
    • Inner first: g(2) is just a number. Then that number takes the place of x in f.
  4. Solve

    • (i) Inside, then outside.
    • g(2) = 2² − 2 = 2
    • f(g(2)) = f(2)
  5. Check

    • (i) Is it right?
    • The long way: f(g(x)) = 3(x² − 2) + 1 = 3x² − 5. At 2: 12 − 5 = 7 ✓
    • Here g(2) happens to be 2, so the answer equals f(2). Do not trust that shortcut; it is a coincidence of this question.