← Precalculus

Composing functions

Plug one function into another.

Start this lesson

f(g(x)) means: do g first, then put that answer into f. Work from the inside out. To find f(g(2)), find g(2), then plug that number into f.

Example: f(x) = 2x + 1, g(x) = x² − 3, find f(g(2))

  1. 2(2² − 3) + 1 — g(2) = 2² − 3 goes inside f
  2. 2(1) + 1 — g(2) = 1
  3. 3 — f(g(2)) = 3

Why it works: The inside function runs first and hands its output to the outside function, like one machine feeding another.

Tip: f(g(x)) and g(f(x)) are usually different. Order matters.