ACT® · Math: Functions — Composition, Transformation, and Inverse Functions
Domain and Range of a Composition
The domain of f(g(x)) is every x that survives two checks: x must be allowed into g, and g(x) must be allowed into f. It is never just the domain of g alone.
Think of two machines wired in series. The first machine, g, takes in x and produces an output. That output feeds straight into the second machine, f. For the whole pipeline to work, x has to be legal for g, but that is not enough — the number g spits out has to be legal for f too. If f chokes on some value that g happily produces, that x gets kicked out of the domain of the composition, even though g itself was fine with it.
This is why composing functions can shrink the set of usable inputs. g might accept all real numbers, but if f is something like 1/x or √x, f is picky about what it accepts. Any x that makes g(x) land on a number f rejects — like 0 for a reciprocal, or a negative number for a square root — has to be excluded, even though g never complained. So the rule is: screen x against g's domain first, then take g(x) and screen that against f's domain. Both screens have to pass.
This connects directly to how composition itself is built: you always evaluate the inner function first, then feed the result into the outer one, so the domain logic follows the same inside-out order. It also sets up inverse functions, where swapping input and output roles means swapping domain and range, and transformations, where shifting or stretching a parent graph can shift or stretch its domain and range the same way.
Key terms
- Composition
- Combining two functions by feeding the output of one directly into the other, written f(g(x)).
- Domain
- The complete set of input values a function is allowed to accept.
- Range
- The complete set of output values a function can actually produce.
- Inner function
- In f(g(x)), the function g, which is evaluated first on the original input.
- Outer function
- In f(g(x)), the function f, which is evaluated second using the inner function's output.
Watch it explained
- How it worksHow do you screen an input against the inner function's domain and then the outer one's?
- Worked exampleFind the domain of f(g(x)) when f(x) = 1 over x and g(x) = x - 3.
- Common mistakeWhy doesn't a composition's domain just equal the inner function's domain?
- Going furtherWhat happens to the outputs of f(g(x)) when the inner function only ever returns non-negative numbers?
Check yourself
End of topic.