Composite Functions Intuitively: Order, Values, and Domain

Suppose a delivery service charges 3 dollars per kilometre, then adds a 5-dollar booking fee. For a 4-kilometre trip, you multiply 4 by 3 and add 5. You have run one rule's output through another rule. That is function composition.
The notation can look more difficult than the action. If calculates the distance charge and adds the fee, the total is dollars. The inner rule runs first. You cannot add the fee to the distance and then multiply unless the pricing rule actually says to do that.
Read the order from the inside out
A composite function puts one function inside another:
Read this as “ after .” First find . Then use that output as the input of . The circle is the composition symbol, not multiplication. OpenStax's composition section defines the operation and makes the order explicit.
Take and . To form , replace the input slot in with the whole expression :
At , the inner rule gives , and the outer rule gives . The expression agrees: . Checking the two-step calculation against the combined expression catches a misplaced parenthesis.
Function notation is a way to keep the slots visible. If , then . The letter used for the slot does not affect the rule. Our functions guide covers inputs, outputs, and the domain before they are chained together.
Reverse the order and compare
For the same two functions, starts with instead:
At , and . That is not the 27 obtained from . Both are valid compositions, but they ask different questions. You can see the difference before doing algebra: one chain squares the input before doubling, while the other doubles and adds one before squaring.
A coincidence at one input does not make two composite functions identical. To establish equality as functions, compare the rules on their common domain and check that their domains match. For ordinary exercises, calculate both expressions and simplify. Remember that is neither nor the product .
A practical annotation is . Write the first arrow before substituting anything. This is especially useful when the inner rule contains fractions, roots, or a table of values.
Evaluate from a table or a graph
You do not need formulas to compose functions. Suppose a table gives:
| 1 | 2 | 3 | 4 | |
|---|---|---|---|---|
| 3 | 4 | 1 | 2 | |
| 8 | 6 | 9 | 7 |
For , read from the first row. Now use 4 as the input to : . The answer is 7. For the reverse order, , but the table gives no value for . You cannot read from this table. It might exist if the full function is defined elsewhere; the listed values alone do not establish it.
A graph works the same way. At input 2, move to the graph of and read its height, say 4. Then start again at input 4 on the graph of and read its height, say 7. The first height becomes the second horizontal coordinate. Do not read both heights at and combine them. If either graph has no point at the required input, the composition is not defined there.
Notice the difference between “not in this partial table” and “outside the domain.” A short table may omit a value that exists. A graph with a clear open circle or stated endpoint can show that a value is excluded. State which evidence you have rather than inventing the missing output.
Check the domain before simplifying
The domain of has two gates. First, must be in the domain of . Second, the resulting must be in the domain of . OpenStax states the rule in precisely this input-output form.
The entire range of does not have to fit inside the domain of for a composition to exist at some inputs. Keep only the inputs for which both stages work. For example, squaring can accept every real number while a later square root can accept only nonnegative outputs; because squares are nonnegative, that particular pairing works for every real input. Change the inner rule to subtraction, and the allowed set can shrink. Check the actual handoff, not just the two formulas in isolation.
Let and , with real outputs. The inner rule accepts every real number, but the outer square root accepts only nonnegative inputs. Therefore:
Reverse the order. Now runs first and subtracts one afterward:
The expressions differ, and so do their domains. At , the second composition gives while the first is undefined in the real numbers. This is a more decisive comparison than finding one input where their values differ.
A denominator creates another gate. Suppose and . Then , but remains forbidden because the inner rule is undefined there.
Cancellation never repairs an originally forbidden input. Let , defined only when , and . You may simplify to for allowed inputs. The composite expression looks like , but its domain is still . At the original inner function asks you to divide by zero. A polynomial that agrees everywhere else cannot fill that hole without defining a new function.
Break a larger rule into stages
Composition can also be read backward as a description of how a formula was built. Take . One choice is followed by . Thus . This decomposition exposes the domain quickly: require , so .
There may be more than one valid decomposition. You could split the inner linear rule into “multiply by 3” and “add 2,” then apply the square root as a third step. What matters is that the stated order reproduces the original rule for each allowed input.
For a graph transformation, compare with . The change is inside the input slot, so the parabola shifts right by 2. With , the addition happens after , so the graph shifts up by 2. This is composition in action: “subtract 2 before squaring” differs from “square before adding 2.” Our algebra guide can help if the substitution itself feels unfamiliar.
Practice three distinct checks
1. Two orders. Let and . Find both compositions. The answers are and . At they give 10 and 14. The order changes where the added 4 enters the calculation.
2. A domain gate. Let and . Then . Exclude and because both make the outer denominator zero. The inner polynomial itself accepts every real number.
3. A table lookup. Using the table above, calculate . First . The table has no entry for , so the given table is insufficient. That is a complete answer, not a failed calculation.
After each exercise, say aloud which rule ran first, which value it produced, and whether the next rule accepts that value. Then verify one numerical input against your algebra. In Math Zen's functions practice, composition sits alongside domain and range problems, so you can practice the handoff as a separate skill.
An inverse function is a special case where one rule undoes another on suitable domains. You do not need inverses to evaluate ordinary compositions. For this guide, the reliable sequence is enough: inner output, outer input, then a domain check.
Common Questions
- What is a composite function?
- A composite function uses the output of one function as the input of another. In f(g(x)), evaluate g first, then feed that result into f.
- Is f(g(x)) the same as g(f(x))?
- Usually no. Changing the order changes which rule sees the original input. Compute both orders and check their domains rather than assuming they agree.
- How do I find the domain of f(g(x))?
- Keep only x values where g(x) exists and its output is allowed as an input to f. Preserve exclusions from the original rules even if algebraic factors later cancel.
- Can I evaluate a composition from a table or graph?
- Yes. Read the inner function first and use its value as the outer input. If a partial table omits a needed value, you need more information; an input outside either required domain makes the composition undefined.


