Function Composition
A free Algebra II lesson from the “Functions and Notation” unit, with a worked example and practice problems including step-by-step solutions.
Function composition means using the output of one function as the input of another. In f(g(x)), the inside function g is evaluated first, and its result is placed into f. Composition matters because many real situations happen in stages, such as applying a discount and then tax or converting units twice. When practicing, work from the inside outward and write each substitution clearly. A common mistake is multiplying f and g or evaluating the outside function first. Always identify the inside function before simplifying.
What you'll learn
- Evaluate composite functions
- Track inside and outside rules
- Use composition in context
Worked example
Problem. If f(x) = 2x + 1 and g(x) = x - 4, find f(g(10)).
- Evaluate inside first: g(10) = 6.
- Now find f(6).
- 2(6) + 1 = 13.
Answer: 13
Practice problems
1. If f(x) = x + 3 and g(x) = 2x, find f(g(4)).
Show solution
- Warm-up: First identify exactly what the question is asking: If f(x) = x + 3 and g(x) = 2x, find f(g(4)).
- For function notation, treat the value inside parentheses as the input and carefully substitute it into the rule.
- g(4) = 8.
- f(8) = 11.
- Check the result by substituting or estimating: the response should match 11 and make sense in the original problem.
Answer: 11
2. If f(x) = 5x and g(x) = x - 1, find g(f(2)).
Show solution
- Warm-up: First identify exactly what the question is asking: If f(x) = 5x and g(x) = x - 1, find g(f(2)).
- For function notation, treat the value inside parentheses as the input and carefully substitute it into the rule.
- f(2) = 10.
- g(10) = 9.
- Check the result by substituting or estimating: the response should match 9 and make sense in the original problem.
Answer: 9
3. If f(x) = x^2 and g(x) = x + 2, find f(g(3)).
Show solution
- Core Practice: First identify exactly what the question is asking: If f(x) = x^2 and g(x) = x + 2, find f(g(3)).
- For function notation, treat the value inside parentheses as the input and carefully substitute it into the rule.
- g(3) = 5.
- f(5) = 25.
- Check the result by substituting or estimating: the response should match 25 and make sense in the original problem.
Answer: 25
4. If f(x) = 3x - 7 and g(x) = x^2, find f(g(4)).
Show solution
- Core Practice: First identify exactly what the question is asking: If f(x) = 3x - 7 and g(x) = x^2, find f(g(4)).
- For function notation, treat the value inside parentheses as the input and carefully substitute it into the rule.
- g(4) = 16.
- 3(16) - 7 = 41.
- Check the result by substituting or estimating: the response should match 41 and make sense in the original problem.
Answer: 41
5. For f(g(x)), which function happens first?
Choices: g · f · Both at once · Neither
Show solution
- Challenge: First identify exactly what the question is asking: For f(g(x)), which function happens first?
- For function notation, treat the value inside parentheses as the input and carefully substitute it into the rule.
- The inside function is evaluated first.
- Verify the selected choice by checking that it satisfies the original prompt and that the other choices fail the same test.
Answer: g
Practice this interactively with instant feedback and an AI tutor.
Practice Function Composition Take the free placement check