Math › Grade 12: Advanced Functions: combining functions and rates of change › Lesson 1 of 2

Composition of functions

f(g(x)) means: put x into g first, then put that answer into f. Work from the inside out.

Learn

Think of two machines in a row: x goes into g, and g's output goes into f.

xinputgff(g(x))outputTo go backwards, undo each step in reverse order

Numbers

f(x) = 2x + 1, g(x) = x². f(g(3)) = f(9) = 19. g(f(3)) = g(7) = 49. Order matters!

Expressions

f(g(x)) = 2x² + 1 and g(f(x)) = (2x + 1)² = 4x² + 4x + 1.

Inverses undo each other: f(f⁻¹(x)) = x. Domain of f(g(x)): x must be in the domain of g, and g(x) must be in the domain of f.

See three worked examples

f(x) = 2x + 1, g(x) = x². Find f(g(3)).
  1. g(3) = 9.
  2. f(9) = 19.

Answer: 19

Same f and g. Find g(f(x)).
  1. g(2x + 1) = (2x + 1)².

Answer: 4x² + 4x + 1

f(x) = √x, g(x) = x − 4. Domain of f(g(x)) = √(x − 4)?
  1. x − 4 ≥ 0.

Answer: x ≥ 4

Try 10 practice questions with the steps

Play match the pairs

Tap one on the left, then its partner on the right.

Test 10 questions, 8 to pass

No steps are shown until the end. Your best score is kept on this device only.

Challenge harder problems that take a few steps