Functions can be combined like numbers: added, subtracted, multiplied, and divided. They can also be chained: the output of one function becomes the input of the next. That chain is called a composition.
01 · Combining functions with algebraic operations
For functions f and g, combine the outputs: (f + g)(x) = f(x) + g(x), (f − g)(x) = f(x) − g(x), (fg)(x) = f(x)·g(x), and (f/g)(x) = f(x)/g(x), where g(x) ≠ 0.
Pick a pair of functions and an operation. The steps simplify the new function, the graph shows f, g, and the result, and the check row confirms the result at one input.
02 · The composition machine
(f ∘ g)(x) = f(g(x)), read “f of g of x.” The input x goes into g first; the output g(x) then becomes the input of f.
Composition is not multiplication, and in general f(g(x)) ≠ g(f(x)).
Choose two functions, the order, and an input. Watch the number travel through the inner function and then the outer function. Below, the formula for the composite function is built by substitution.
03 · Composition from a table
To evaluate f(g(1)) from a table, first look up the inner value g(1), then use that number as the input of the outer function.
04 · Composition from graphs
With graphs, read the inner function first: go up from x to the inner graph and read its output. Then find that number on the x-axis of the outer graph and read the final output.
05 · The domain of a composite function
1. Find the domain of g. 2. Find the domain of f. 3. From the domain of g, remove every x for which g(x) is not in the domain of f.
An input must pass two gates: g must accept x, and f must accept g(x). Choose a pair of functions and test inputs.
Guided problems · Composition of Functions
Original problems on combining and composing functions. Open a hint if you need one, check your answers, then try another set.
Check your understanding · Composition of Functions
Answer each question on paper first, then open the answer to check yourself.
How would you define a composite function (f ∘ g)(x)?
Show answer
It is f(g(x)): the input x goes into g, and the output g(x) is used as the input of f.
How is f(g(x)) different from g(f(x))? Use f(x) = 2x − 1 and g(x) = x².
Show answer
f(g(x)) = 2x² − 1, but g(f(x)) = (2x − 1)² = 4x² − 4x + 1. The order matters.
Find (f − g)(x) for f(x) = x² + 1 and g(x) = 3x − 2.
Show answer
(x² + 1) − (3x − 2) = x² + 1 − 3x + 2 = x² − 3x + 3.
How do you find the domain of f(g(x))?
Show answer
Start with the domain of g, then remove every x for which g(x) is not in the domain of f. For f(x) = √x and g(x) = x − 5, we need x − 5 ≥ 0, so the domain is [5, ∞).