Math › Grade 11: Functions › Lesson 4 of 8
Composition: f(g(x))
f(g(x)): do the inside function first, then put its answer into the outside one.
Learn
f(x) = 2x + 1 and g(x) = x². Find f(g(3)).
- Inside: g(3) = 9.
- Outside: f(9) = 2(9) + 1 = 19.
Order matters: g(f(3)) = g(7) = 49. Not the same!
As a formula
f(g(x)) = 2(x²) + 1 = 2x² + 1. g(f(x)) = (2x + 1)².
Real life: convert dollars to euros (g), then add a fee (f). The order you do them in changes the result.
See three worked examples
f(x) = x − 4, g(x) = 3x. f(g(5))
- g(5) = 15.
- f(15) = 11.
Answer: 11
Same functions. g(f(5))
- f(5) = 1.
- g(1) = 3.
Answer: 3
f(x) = x², g(x) = x + 2. f(g(x))
- (x + 2)².
Answer: x² + 4x + 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.
Lesson complete.
Next lesson: Inverse functions