Sub topic 4
Finding the Domain of a Composite Function
The working rule
Assume you already know function notation, domains and ranges, algebraic restrictions, and how to read basic graphs.
A composite function feeds the output of one function into another:
\[ (f\circ g)(x)=f(g(x)). \]
The function \(g\) acts first. Its output then becomes the input for \(f\). Therefore, an input \(x\) belongs to the domain of \(f\circ g\) only when both conditions hold:
- \(x\) is in the domain of \(g\).
- \(g(x)\) is in the domain of \(f\).
In set notation,
\[ \operatorname{Dom}(f\circ g) = \{x\in\operatorname{Dom}(g):g(x)\in\operatorname{Dom}(f)\}. \]
The second condition is the one most often missed. It is not enough for \(g(x)\) to exist. Its output must also be an allowed input for \(f\).
Worked examples
A square root outside a polynomial
Let
\[ f(x)=\sqrt{x-1} \quad\text{and}\quad g(x)=x^2+2. \]
The domain of \(f\) requires its input to be at least \(1\). Since
\[ g(x)=x^2+2, \]
we require
\[ x^2+2\geq 1. \]
This inequality is true for every real \(x\). The function \(g\) is also defined for every real \(x\). Thus,
\[ \operatorname{Dom}(f\circ g)=(-\infty,\infty). \]
The composite simplifies to
\[ (f\circ g)(x)=\sqrt{x^2+1}. \]
Although square roots usually create restrictions, this particular inner function always produces a value that \(f\) accepts.
A rational function outside a square root
Let
\[ f(x)=\frac{1}{x-3} \quad\text{and}\quad g(x)=\sqrt{x+2}. \]
First, \(g(x)\) requires
\[ x+2\geq0, \]
so \(x\geq-2\). Next, \(f\) cannot receive the input \(3\). Therefore,
\[ g(x)\ne3. \]
Because \(g(x)=\sqrt{x+2}\), solve
\[ \sqrt{x+2}\ne3. \]
The equality occurs when \(x+2=9\), or \(x=7\). Remove that value from the first restriction:
\[ \operatorname{Dom}(f\circ g)=[-2,7)\cup(7,\infty). \]
The domain is not simply the intersection of the domains of \(f\) and \(g\). The input \(x\) is tested against \(g\), while the output \(g(x)\) is tested against \(f\).
| Step | Condition | Result |
|---|---|---|
| Inner function | \(x+2\geq0\) | \(x\geq-2\) |
| Outer function | \(\sqrt{x+2}\ne3\) | \(x\ne7\) |
| Combined domain | Both conditions | \([-2,7)\cup(7,\infty)\) |
Common errors
- Checking only the formula for \(g\) and ignoring restrictions from \(f\).
- Excluding values from the domain of \(f\) instead of finding which \(x\)-values produce those outputs.
- Assuming the domain of a simplified expression is automatically the domain of the original composite. Cancellation can hide a value where the original function was undefined.
- Forgetting that composition order changes the domain. The domain of \(g\circ f\) must be found separately.
Exercise
Let f(x) = 1/(x + 1) and g(x) = x^2 - 4. Find the domain of (f∘g)(x).
Show answer
The inner function is defined for every real x. The outer function requires g(x) + 1 ≠ 0, so x^2 - 4 + 1 ≠ 0, or x^2 ≠ 3. Therefore the domain is (-∞, -√3) ∪ (-√3, √3) ∪ (√3, ∞).