IB Maths AA SL Topic 2 โ€” Functions Paper 1 & 2 ๐ŸŽฏ Skill ~3 min practice

AA SL Composite Functions skills

A composite function is a function inside another. Read it inside-out: the inner function’s output becomes the outer function’s input. Get the order right and the algebra is just careful substitution.

The Method

(f โˆ˜ g)(x) = f(g(x)) do g first, then put the result inside f
  1. Identify the inner function โ€” it’s the one written closest to x (or the one inside the brackets).
  2. Substitute the inner function’s output into every x of the outer function.
  3. Expand and simplify if asked, or leave in factored form if cleaner.

Read it inside-out

Example: f(x) = xยฒ + 1,   g(x) = 2x โˆ’ 3,   find (f โˆ˜ g)(x)

Step 1 โ€” input x
โ†’
Step 2 โ€” apply g g(x) = 2x โˆ’ 3
โ†’
Step 3 โ€” apply f (2x โˆ’ 3)ยฒ + 1

The output of g replaces every x inside f. Only then do you expand.

โš ๏ธ

Order matters: f(g(x)) โ‰  g(f(x))

The order of composition changes the answer. f โˆ˜ g means “f after g” โ€” apply g first. Always write down which is inner and which is outer before you start.

Worked examples

WE 1 EASY

f(x) = xยฒ + 4 and g(x) = x โˆ’ 5. Find (f โˆ˜ g)(x).

step 1 โ€” identify outer/inner f is outer, g is innerstep 2 โ€” substitute g(x) into f (f โˆ˜ g)(x) = f(g(x)) = f(x โˆ’ 5) = (x โˆ’ 5)ยฒ + 4step 3 โ€” expand = xยฒ โˆ’ 10x + 25 + 4(f โˆ˜ g)(x) = xยฒ โˆ’ 10x + 29 replace every x inside f with the whole expression (x โˆ’ 5) โ€” including brackets!
WE 2 MEDIUM

f(x) = 3x + 2 and g(x) = xยฒ. Find (f โˆ˜ g)(x) and (g โˆ˜ f)(x).

part (a) โ€” f โˆ˜ g (g first) f(g(x)) = f(xยฒ) = 3(xยฒ) + 2 = 3xยฒ + 2part (b) โ€” g โˆ˜ f (f first) g(f(x)) = g(3x + 2) = (3x + 2)ยฒ = 9xยฒ + 12x + 4f โˆ˜ g = 3xยฒ + 2   vs   g โˆ˜ f = 9xยฒ + 12x + 4 order matters โ€” completely different answers!
WE 3 HARD

f(x) = โˆš(x + 7) and g(x) = 2xยฒ โˆ’ 5. Find (f โˆ˜ g)(3).

step 1 โ€” find g(3) first g(3) = 2(3)ยฒ โˆ’ 5 = 18 โˆ’ 5 = 13step 2 โ€” feed result into f f(13) = โˆš(13 + 7) = โˆš20step 3 โ€” simplify the surd โˆš20 = โˆš(4 ร— 5) = 2โˆš5(f โˆ˜ g)(3) = 2โˆš5 when given a numerical input, do it in two stages โ€” much faster than building the full composite!

Practice questions

Try each one yourself first, then click the question to reveal the worked answer. Always identify outer and inner before substituting.
Q1 EASY f(x) = 2x + 1, g(x) = x โˆ’ 4. Find (f โˆ˜ g)(x). Show answer โ–ผHide answer โ–ฒ
f(g(x)) = f(x โˆ’ 4) = 2(x โˆ’ 4) + 1 = 2x โˆ’ 8 + 1 (f โˆ˜ g)(x) = 2x โˆ’ 7
Q2 EASY f(x) = xยฒ and g(x) = x + 3. Find (g โˆ˜ f)(x). Show answer โ–ผHide answer โ–ฒ
f is inner โ€” apply first g(f(x)) = g(xยฒ) = xยฒ + 3 (g โˆ˜ f)(x) = xยฒ + 3
Q3 MEDIUM f(x) = xยฒ โˆ’ 2x, g(x) = x + 1. Find (f โˆ˜ g)(x). Show answer โ–ผHide answer โ–ฒ
f(g(x)) = f(x + 1) = (x + 1)ยฒ โˆ’ 2(x + 1) = xยฒ + 2x + 1 โˆ’ 2x โˆ’ 2 (f โˆ˜ g)(x) = xยฒ โˆ’ 1 replace EVERY x in f with (x + 1), not just the first one!
Q4 MEDIUM f(x) = 1x, g(x) = x + 2. Find (f โˆ˜ g)(5). Show answer โ–ผHide answer โ–ฒ
step 1 โ€” g(5) g(5) = 5 + 2 = 7 step 2 โ€” f(7) f(7) = 1/7 (f โˆ˜ g)(5) = 1/7
Q5 HARD f(x) = 3x โˆ’ 2 and (f โˆ˜ g)(x) = 6x + 4. Find g(x). Show answer โ–ผHide answer โ–ฒ
step 1 โ€” write the composite definition f(g(x)) = 3ยทg(x) โˆ’ 2step 2 โ€” set equal to given 3ยทg(x) โˆ’ 2 = 6x + 4 3ยทg(x) = 6x + 6g(x) = 2x + 2 when given the composite, work backwards from f’s structure!

โš  Common mistakes

๐Ÿ“–

Want the theory?

Read the full Composite Functions notes for the link to inverse functions, the relationship f(fโปยน(x)) = x, and how composition appears in the chain rule.

Need help with Composite Functions?

Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.

Book Free Session โ†’