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 + 2 and g(x) = x + 2, find (f o g)(3). Work inside out.

  1. First the inner function: g(3) = 3 + 2 = 5.
  2. Feed that into f: f(5) = 3(5) + 2.
  3. 3(5) + 2 = 15 + 2 = 17.

Answer: 17

Lesson preview: this page shows 5 practice items. The interactive activity contains 28 practice items and 15 quiz items (typed response and multiple choice). Counts include repeated prompts and variants.

Practice problems

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

Show solution
  1. First the inner function: g(3) = 3 + 2 = 5.
  2. Feed that into f: f(5) = 3(5) + 2.
  3. 3(5) + 2 = 15 + 2 = 17.

Answer: 17

2. If f(x) = 4x + 3 and g(x) = x + 3, find (g o f)(4). Work inside out.

Show solution
  1. First the inner function: f(4) = 4(4) + 3 = 19.
  2. Feed that into g: g(19) = 19 + 3.
  3. 19 + 3 = 22.

Answer: 22

3. Let f(x) = 2x + 4 and g(x) = x + 1. Compute (f o g)(5) - (g o f)(5) to see that order matters.

Show solution
  1. (f o g)(5) = 16 and (g o f)(5) = 15.
  2. Subtract: 16 - 15.
  3. The difference is 1, so the two orders disagree.

Answer: 1

4. If f(x) = 3x + 1 and g(x) = x + 2, write f(g(x)) as a simplified expression of the form (slope)x + (number). Enter the number (the constant term).

Show solution
  1. Substitute g into f: f(g(x)) = 3(x + 2) + 1.
  2. Distribute: 3x + 6 + 1.
  3. The constant term is 6 + 1 = 7.

Answer: 7

5. If f(x) = 4x + 2 and g(x) = x + 3, write g(f(x)) as a simplified expression of the form (slope)x + (number). Enter the number (the constant term).

Show solution
  1. Substitute f into g: g(f(x)) = (4x + 2) + 3.
  2. Combine constants: 4x + 2 + 3.
  3. The constant term is 2 + 3 = 5.

Answer: 5

Practice this interactively with instant feedback and an AI tutor.

Practice Composition of Functions Take the free placement check

More Precalculus lessons