Composite and Inverse Functions | Cambridge IGCSE Maths notes

Free preview: Composite and Inverse Functions

Composite Functions: One Machine After Another

Edexcel: Higher only · Cambridge: Extended only

Put a number into one machine, then feed its output straight into a second machine. The two machines together act like one bigger machine. That bigger machine is called a composite function.

Words you must know

  • A composite function is two functions done one after the other.
  • fg(x) means f(g(x)): do g first, then put the answer into f.
  • The function written nearest to x acts first. Read it from the inside out, right to left.
  • ff(x) means do f twice.

Let's use f(x)=x2 and g(x)=x+1.

Composite and Inverse Functions diagram

What the picture shows

  1. Top row, fg(3): g first, 3+1=4, then f, 42=16.
  2. Bottom row, gf(3): f first, 32=9, then g, 9+1=10.
  3. Same two functions, different order, different answers. Usually fg(x)≠gf(x).

💡 In plain words

  • fg(x): g goes in first, because it is right next to the x.
  • Order matters, just like putting on socks and shoes.

Thinking of it as one long machine

  • Each function is a row of boxes. A composite just joins the rows: the boxes of the first function, then the boxes of the second.
  • With f(x)=x2 and g(x)=x+1, the machine for fg is: +1, then square. The machine for gf is: square, then +1.
  • Writing the expression is just following the long machine with the letter x: fg(x)=(x+1)2 and gf(x)=x2+1.
  • The brackets in (x+1)2 matter. They say "add 1 first, then square the whole thing". Without them you would square only the x.

Recipe: finding an expression for fg(x)

  1. Write out the inside function g(x).
  2. In the rule for f, replace every x with the whole of g(x) in brackets.
  3. Simplify (expand brackets, collect terms) only if asked or if it helps.
  4. Check with one number: work out fg(2) both ways.

👀 Watch me do it: find fg(x) and gf(x) for f(x)=3x−1 and g(x)=x2+2

What I writeWhy I do it
fg(x)=f(x2+2)Step 1: g is inside, so g goes first.
=3(x2+2)−1=3x2+5Step 2: in f's rule, replace x by (x2+2). Then simplify.
gf(x)=g(3x−1)=(3x−1)2+2Now f is inside. Replace x in g's rule by (3x−1).
=9x2−6x+3Expand: 9x2−6x+1+2.
Check x=2: g(2)=6, f(6)=17; 3(4)+5=17.Step 4. It matches.

✏️ YOUR TURN 1

Try this first:

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

  1. fg(4)
  2. gf(4)
  3. fg(x) in its simplest form

Answer:

  1. g(4)=1, f(1)=7.
  2. f(4)=13, g(13)=10.
  3. 2(x−3)+5=2x−1.

📝 Two slips that cost marks

  • Doing the functions in the wrong order. Before you start, say it in words: "fg means g first". Then underline the function you are doing first.
  • Forgetting the brackets when you substitute. If f(x)=3x−1 and you put in x2+2, write 3(x2+2)−1, not 3x2+2−1. The 3 multiplies the whole input.

Composites in real life

  • A shop changes a price in pounds to euros with g(x)=1.2x, then a card company adds a fixed fee of 3 euros with f(x)=x+3.
  • The total charge in euros for a price of x pounds is fg(x)=1.2x+3: convert first, then add the fee.
  • If the fee were added in pounds before converting, the charge would be gf(x)=1.2(x+3)=1.2x+3.6. Different order, different bill. That is why the order of a composite matters in real life too.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in · Subscribe · Start free trial

All notes in Functions

  1. Functions as Mappings: Domain, Range and Excluded Values
  2. Function Notation f(x) and f: x ↦
  3. Composite and Inverse Functions

What's inside for this topic

3 teacher notes, 51 practice questions, 45 flashcards, 3 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: Function Notation f(x) and f: x ↦

Composite and Inverse Functions on other exam boards

All Cambridge IGCSE Maths topics · IGCSE Maths