Leave lesson

Algebra · Functions

Chapter 1 · 4

The idea

Composite functions

Why fg(x) means "g first, then f", how to chain outputs into inputs for numbers and for algebra, and why the order almost always matters.

A full journey — read it, play with it, work it, then earn real exam marks. Everything stays on the timeline below.

In this lesson — start anywhere

Algebra · Functions

Composite functions

Why fg(x) means "g first, then f", how to chain outputs into inputs for numbers and for algebra, and why the order almost always matters.

Why it works

Two machines, chained inside-out

The first time an exam prints fg(x)fg(x) it looks like a typo — or a multiplication. It's neither: it is two machines chained, the output of one piped straight into the other.

fg(x)=f(g(x))fg(x) = f\big(g(x)\big)

With numbers: two small steps

Take f(x)=3x−4f(x) = 3x - 4 and g(x)=x2+1g(x) = x^2 + 1, and chase a number through each chain, one machine at a time:

fg(2):g(2)=5,  then  f(5)=11.fg(2): \quad g(2) = 5, \;\text{then}\; f(5) = 11. gf(2):f(2)=2,  then  g(2)=5.gf(2): \quad f(2) = 2, \;\text{then}\; g(2) = 5.

Keep reading — free

The rest of the explanation, plus 2 worked examples you step through move by move.

Start free

Takes a minute — no card.