AP® Precalculus · Unit 2 · Topic 2.7
Domain of a Composite, and Decomposing
The domain of f(g(x)) is every x in the domain of g whose output g(x) also lands in the domain of f. Decomposing just reverses this: you spot the outer operation and the inner expression it acts on.
A composite function f(g(x)) runs x through g first, then feeds that result into f. For x to be allowed, two things must hold: x has to be a legal input for g, and the output g(x) has to be a legal input for f. That second condition is the one students forget. It's why a composite can have a smaller domain than f or g alone — g might accept some x just fine, but hand f an output f can't use, like a negative number under a square root or a zero in a denominator.
Mechanically, you work from the outside in but check from the inside out. Find g's own domain restrictions first, then write down what f needs as input, then translate that requirement back onto g(x), and solve for x. The algebra usually turns into an inequality or equation involving g's formula, since you're asking which x-values make g(x) satisfy f's requirement.
Decomposing is this process backwards: given one messy formula, find an inner function g(x) and outer function f(x) so that f(g(x)) matches it. Look for the last operation applied — that's usually the outer function — and whatever it's being applied to is the inner one. This skill connects directly to transformations: shifting a graph horizontally by k is really composing f with g(x) = x - k, since you're changing what gets fed into f before f ever acts. Seeing shifts as composition ties this topic straight back to how transformed graphs behave.
Key terms
- composite function
- A function formed by applying one function to the output of another, written f(g(x)).
- domain
- The complete set of input values for which a function produces a valid output.
- inner function
- In f(g(x)), the function g that processes x first.
- outer function
- In f(g(x)), the function f that processes the result g(x) produces.
- decompose
- To rewrite a single function as a composition of two or more simpler functions.
Watch it explained
- How it worksHow does the inner function's output have to land inside the outer function's domain?
- Worked exampleFind the domain of f(g(x)) when f(x) = √x and g(x) = 4 - x².
- How it worksWalk me through breaking h(x) = (2x + 5)³ into two simpler functions composed together.
- Ties togetherHow does a horizontal shift turn out to be a composition with g(x) = x + k?
Check yourself
End of topic.