As we discussed previously, the domain of a composite function such as f∘g is dependent on the domain of g and the domain of f. It is important to know when we can apply a composite function and when we cannot, that is, to know the domain of a function such as f∘g. Let us assume we know the domains of the functions f and g separately. If we write the composite function for an input x as f(g(x)), we can see right away that x must be a member of the domain of g in order for the expression to be meaningful, because otherwise we cannot complete the inner function evaluation. However, we also see that g(x) must be a member of the domain of f, otherwise the second function evaluation in f(g(x)) cannot be completed, and the expression is still undefined. Thus the domain of f∘g consists of only those inputs in the domain of g that produce outputs from g belonging to the domain of f. Note that the domain of f composed with g is the set of all x such that x is in the domain of g and g(x) is in the domain of f.
A General Note: Domain of a Composite Function
The domain of a composite function f(g(x)) is the set of those inputs x in the domain of g for which g(x) is in the domain of f.
How To: Given a function composition f(g(x)), determine its domain.
- Find the domain of g.
- Find the domain of f.
- Find those inputs, x, in the domain of g for which g(x) is in the domain of f. That is, exclude those inputs, x, from the domain of g for which g(x) is not in the domain of f. The resulting set is the domain of f∘g.
Example 8: Finding the Domain of a Composite Function
Find the domain of
Solution
The domain of g(x) consists of all real numbers except x=23, since that input value would cause us to divide by 0. Likewise, the domain of f consists of all real numbers except 1. So we need to exclude from the domain of g(x) that value of x for which g(x)=1.
So the domain of f∘g is the set of all real numbers except 23 and 2. This means that
We can write this in interval notation as
Example 9: Finding the Domain of a Composite Function Involving Radicals
Find the domain of
Solution
Because we cannot take the square root of a negative number, the domain of g is (−∞,3]. Now we check the domain of the composite function
The domain of this function is (−∞,5]. To find the domain of f∘g, we ask ourselves if there are any further restrictions offered by the domain of the composite function. The answer is no, since (−∞,3] is a proper subset of the domain of f∘g. This means the domain of f∘g is the same as the domain of g, namely, (−∞,3].
Candela Citations
- Precalculus. Authored by: Jay Abramson, et al.. Provided by: OpenStax. Located at: http://cnx.org/contents/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175. License: CC BY: Attribution. License Terms: Download For Free at : http://cnx.org/contents/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175.
Analysis of the Solution
This example shows that knowledge of the range of functions (specifically the inner function) can also be helpful in finding the domain of a composite function. It also shows that the domain of f∘g can contain values that are not in the domain of f, though they must be in the domain of g.