CMClearMathAcademy

Composition of Functions

A free Precalculus lesson from the “Transformations and Combinations of Functions” unit, with a worked example and practice problems including step-by-step solutions.

Composition means working from the inside out: find the inner output, then feed it into the outer function. This lesson is part of Precalculus: Advanced Functions, so the emphasis is on interpreting behavior, choosing the right representation, and explaining the result clearly rather than memorizing isolated algebra moves.

What you'll learn

Why it matters: Transformations let students predict how a model changes when a situation is shifted, scaled, reflected, or combined.

Worked example

Problem. If f(x) = 3x - 1 and g(x) = x + 3, find (f o g)(2).

  1. Worked Example: First identify exactly what the question is asking: If f(x) = 3x - 1 and g(x) = x + 3, find (f o g)(2).
  2. For function notation, treat the value inside parentheses as the input and carefully substitute it into the rule.
  3. First compute g(2) = 5.
  4. Then compute f(5) = 3(5) - 1.
  5. The value is 14.
  6. Check the result by substituting or estimating: the response should match 14 and make sense in the original problem.

Answer: 14

Practice problems

1. If f(x) = 3x - 1 and g(x) = x + 3, find (f o g)(2).

Show solution
  1. Warm-up: First identify exactly what the question is asking: If f(x) = 3x - 1 and g(x) = x + 3, find (f o g)(2).
  2. For function notation, treat the value inside parentheses as the input and carefully substitute it into the rule.
  3. First compute g(2) = 5.
  4. Then compute f(5) = 3(5) - 1.
  5. The value is 14.
  6. Check the result by substituting or estimating: the response should match 14 and make sense in the original problem.

Answer: 14

2. If f(x) = 4x - 1 and g(x) = x + 3, find (f o g)(3).

Show solution
  1. Warm-up: First identify exactly what the question is asking: If f(x) = 4x - 1 and g(x) = x + 3, find (f o g)(3).
  2. For function notation, treat the value inside parentheses as the input and carefully substitute it into the rule.
  3. First compute g(3) = 6.
  4. Then compute f(6) = 4(6) - 1.
  5. The value is 23.
  6. Check the result by substituting or estimating: the response should match 23 and make sense in the original problem.

Answer: 23

3. If f(x) = x^2 + 1 and g(x) = 5x, find (g o f)(4).

Show solution
  1. Core Practice: First identify exactly what the question is asking: If f(x) = x^2 + 1 and g(x) = 5x, find (g o f)(4).
  2. For function notation, treat the value inside parentheses as the input and carefully substitute it into the rule.
  3. First compute f(4) = 17.
  4. Then compute g(17) = 5(17).
  5. The value is 85.
  6. Check the result by substituting or estimating: the response should match 85 and make sense in the original problem.

Answer: 85

4. If f(x) = x^2 + 1 and g(x) = 2x, find (g o f)(5).

Show solution
  1. Core Practice: First identify exactly what the question is asking: If f(x) = x^2 + 1 and g(x) = 2x, find (g o f)(5).
  2. For function notation, treat the value inside parentheses as the input and carefully substitute it into the rule.
  3. First compute f(5) = 26.
  4. Then compute g(26) = 2(26).
  5. The value is 52.
  6. Check the result by substituting or estimating: the response should match 52 and make sense in the original problem.

Answer: 52

5. In (f o g)(x), which function acts first?

Choices: g · f · both at the same time · neither function

Show solution
  1. Core Practice: First identify exactly what the question is asking: In (f o g)(x), which function acts first?
  2. For function notation, treat the value inside parentheses as the input and carefully substitute it into the rule.
  3. Composition works inside out.
  4. g(x) becomes the input to f.
  5. So g acts first.
  6. 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 Composition of Functions Take the free placement check

More Precalculus lessons