Composite Functions

Test yourself on Composite Functions with exam style questions, marked instantly.

Flashcards that come back just before you would forget them.

A revision plan that remembers what you know and shows what to do next.

See which topics you have nailed and which need another look.

Quiz yourself on Composite FunctionsGet your flashcardsBuild my revision planTrack my progress

Chaining Functions Together

Imagine you have two machines: Machine G turns any number into double that number, and Machine F adds 3. If you want to double a number AND THEN add 3, you'd run it through G first, then F. This is called a COMPOSITE function: you chain the machines together to create a more complex process.
Two rows of function machines starting at 4. fg does g (multiply by 2) first to get 8, then f (add 3) to get 11. gf does f first to get 7, then g to get 14, so the order matters.

g(x) = 2x and f(x) = x + 3. fg(4) = 11 but gf(4) = 14, so the order matters.

Key Facts

Concept Meaning Example
fg(x) f of g(x): do g first, then f Apply g, then apply f to result
gf(x) g of f(x): do f first, then g Apply f, then apply g to result
ff(x) f of f(x): apply f twice Do f, then do f again
Order matters fg(x) ≠ gf(x) usually Different order = different result

Key insight: fg(x) ≠ gf(x) in general! Order matters!

Method: Finding Composite Functions

1Identify which function to do first (inner function)
2Substitute the first function into the second
3Simplify the expression
4Check your answer by substituting values

Worked Example 1: Composite Functions with Values

f(x) = x² and g(x) = x + 3. Find: a) fg(2) b) gf(2)

Part a fg(2): do g first, then f

First find g(2): g(2) = 2 + 3 = 5

Then find f(5): f(5) = 5² = 25

Part b gf(2): do f first, then g

First find f(2): f(2) = 2² = 4

Then find g(4): g(4) = 4 + 3 = 7

Worked Example 2: Composite Function Expressions

f(x) = x² and g(x) = x + 3. Find fg(x) in simplest form.

Step 1 Identify the order

fg(x) means do g first, then f

So we need f(g(x))

Step 2 Substitute g(x) into f

g(x) = x + 3

f(g(x)) = f(x + 3) = (x + 3)²

Step 3 Expand and simplify

fg(x) = (x + 3)²

= x² + 6x + 9

fg(x) = x² + 6x + 9

Worked Example 3: Showing Order Matters

f(x) = 2x and g(x) = x + 1. Find fg(x) and gf(x). Are they the same?

Step 1 Find fg(x)

fg(x) = f(g(x)) = f(x + 1)

= 2(x + 1) = 2x + 2

Step 2 Find gf(x)

gf(x) = g(f(x)) = g(2x)

= 2x + 1

Step 3 Compare

fg(x) = 2x + 2

gf(x) = 2x + 1

They are NOT the same!

Common Mistakes to Avoid

✗ Getting the order wrong ✓ fg(x) means do g first, then f The function closest to x is done first
✗ Thinking fg(x) = gf(x) ✓ Order usually matters, so they're different Different order gives different results
✗ Confusing fg(x) with f(x) × g(x) ✓ Composite means "function of function" It's substitution, not multiplication

Make this stick

Signing in gives access to all PrepWise features.

PrepWise is a trading name of A3M Quality Solutions Limited, registered in England and Wales, company number 14959172. Registered office: 202 Stroud Road, Gloucester, GL1 5LA. ICO registration ZC267069.