Composition of Functions notes (Algebra 2)
Find f(g(x)) and g(f(x)).
The big question
f(g(x))
What happens when one function feeds another? That's composition!
Learn it, step by step
1. Inside first
f(g(x)) means: do g first, then put the result into f.
g(x) = x + 1, f(x) = x². f(g(3)) = f(4) = 16.

2. As a rule
f(g(x)) = (x + 1)². g(f(x)) = x² + 1. Order matters!
f(g(x)) = (x + 1)²
g(f(x)) = x² + 1

Watch out: Inside first
In f(g(x)), g is applied first, even though f is written first.
Wrong: f(g(3)): do f first. Right: f(g(3)): do g first.
Your turn
f(x) = 2x and g(x) = x − 5. Find g(f(4)).
g(f(4))
Answer: 3. f(4) = 8. g(8) = 3!
Remember
Work from the inside out. f(g(x)) and g(f(x)) are usually different.
inside → outside
Watch the Composition of Functions lesson and practice · Printable worksheet