Chain functions together — feed one output into another input
Function composition means feeding the output of one function into another. If f(x) = x² and g(x) = x + 3, then f(g(x)) = (x + 3)² — first add 3, then square.
Order matters: f(g(x)) ≠ g(f(x)) in general. With the same functions, g(f(x)) = x² + 3 — first square, then add 3. The graph makes the difference obvious.
Ask the AI anything — try "What is f(g(2))?" or "Decompose h(x) = sqrt(2x + 1)."