Many processes happen in stages. A store takes a discount and then adds tax. A thermostat reads a temperature in Celsius and a display converts it to Fahrenheit. Each stage is a function, and running one stage after another is called composition. This page shows how to evaluate a composite from a table, a graph or a formula, why order matters, which inputs a composite can take, and how to split a function into stages.
What a composite function does
The composite function takes an input , applies , and then uses that output as the input of . It is also written , read "f of g of x". The function written closest to acts first. Think of an assembly line: is the first machine and is the second.
Because the output of becomes an input of , the work always goes from the inside out. On the exam, show the inner value: graders look for it.
Worked example 1 (from a table). A table gives and . Find .
Inner value first: .
Then the outer function at that value: .
Order matters
Back at the store, take (the discount) and (the tax). Discount first gives
Composites from formulas
To write as a formula, replace every in the formula of by the whole expression , in parentheses.
Worked example 2. Let and . Find and .
. The parentheses matter: the whole of is squared.
At : , but . Different functions.
Composition also explains transformations. With , is the graph of moved units right. With and ,
Composites from graphs
A graph works like a table: read the inner function at , then read the outer function at that output. To solve an equation such as , work from the outside in: first find every input of that gives , then every with equal to one of those inputs. Several inputs can share an output, so check for more than one.
Worked example 3. The parabola reaches at the inputs and . The line has and . Solve .
Outer step: for or .
Inner step: gives ; gives .
So and . Stopping at and gives the values of , not of .
The domain of a composite
An input belongs to the domain of when two things hold: is in the domain of , and the output is in the domain of .
Worked example 4. Let and . Find the domain of .
needs a non-negative input, so .
Then , and dividing by flips the inequality: .
The identity function
The identity function returns every input unchanged. Composing with it does nothing: and . It plays the role for composition that plays for addition and plays for multiplication. You will need it in the next topic.
Taking a function apart
Reading a formula as stages helps you evaluate it, graph it and later undo it. Ask what is done to first (the inner function) and what is done to that result (the outer function).
| Function | Inner | Outer |
|---|---|---|
A decomposition is not unique, but the order of the stages is fixed by the formula. Check a pair by composing it: must give back .