Precalculus-I · Unit 4 · Video 4 · Interactive Practice

Domain of a Composite Function and Decomposition

IKey Formulas

IdeaStatement
Domain of f∘gf \circ gall xx in the domain of gg for which g(x)g(x) is in the domain of ff
Three steps(1) domain of gg; (2) domain of ff; (3) from the domain of gg, remove every xx with g(x)g(x) outside the domain of ff
Decompositionf(x)=g(h(x))f(x) = g(h(x)): hh is the inside, gg the outside; compose again to check

Key Insight: the test in step 3 is applied to g(x)g(x), never to xx. So an input the outer function rejects can still belong to the composite, and intersecting the two domains is a mistake.

IITwo Checks Every Input Must Pass

For f(x)=5x−1f(x) = \frac{5}{x - 1} and g(x)=43x−2g(x) = \frac{4}{3x - 2}, an input fails if gg fails, or if g(x)=1g(x) = 1 makes ff fail.

x=1x = 1 stays in the domain although 11 is not in the domain of ff: g(1)=4g(1) = 4 and f(4)=53f(4) = \frac{5}{3}. The domain is (−∞,23)∪(23,2)∪(2,∞)\left(-\infty, \tfrac{2}{3}\right) \cup \left(\tfrac{2}{3}, 2\right) \cup (2, \infty).

IIIWhen Step 3 Removes Nothing

For f(x)=x+2f(x) = \sqrt{x + 2} and g(x)=3−xg(x) = \sqrt{3 - x}, every output of gg is at least 00, already inside the domain of ff.

IVQuiz Questions

Problem 1 · Test g(x)g(x), Not xx

Given: f(x)=1x−3f(x) = \dfrac{1}{x - 3} and g(x)=x+1g(x) = x + 1. Find the domain of f∘gf \circ g.

✅ Correct! ff rejects the value 33, and g(x)=3g(x) = 3 exactly when x=2x = 2.
❌ That tests xx against the domain of ff. ff receives g(x)=x+1g(x) = x + 1; at x=3x = 3, g(3)=4g(3) = 4 and f(4)=1f(4) = 1 exists.
❌ x=3x = 3 is fine. g(3)=4g(3) = 4 and f(4)=1f(4) = 1; only x=2x = 2, where g(2)=3g(2) = 3, fails.
❌ Not quite. Find the xx for which g(x)g(x) equals the value ff cannot accept.
Show solution

Step 1: gg accepts every real number. Step 2: ff accepts every real number except 33. Step 3: remove the xx with g(x)=3g(x) = 3: x+1=3x + 1 = 3, so x=2x = 2.

Check: f(g(x))=1(x+1)−3=1x−2f(g(x)) = \dfrac{1}{(x + 1) - 3} = \dfrac{1}{x - 2}. Domain: x≠2x \neq 2, that is (−∞,2)∪(2,∞)(-\infty, 2) \cup (2, \infty).

Problem 2 · A Square Root Outside

Given: f(x)=xf(x) = \sqrt{x} and g(x)=x−4g(x) = x - 4. Find the domain of f∘gf \circ g.

✅ Correct! ff needs g(x)=x−4≥0g(x) = x - 4 \ge 0, so x≥4x \ge 4.
❌ That is the domain of ff itself. The condition ≥0\ge 0 applies to g(x)=x−4g(x) = x - 4, not to xx.
❌ x=4x = 4 works. g(4)=0g(4) = 0 and 0=0\sqrt{0} = 0.
❌ Not quite. gg accepts every xx, but ff needs a non-negative input.
Show solution

gg has domain all reals; ff has domain [0,∞)[0, \infty). Keep xx with g(x)≥0g(x) \ge 0: x−4≥0x - 4 \ge 0, so x≥4x \ge 4. Indeed f(g(x))=x−4f(g(x)) = \sqrt{x - 4}, with domain [4,∞)[4, \infty).

Problem 3 · Both Steps Remove Something

Given: f(x)=1xf(x) = \dfrac{1}{x} and g(x)=x+1g(x) = \sqrt{x + 1}. Find the domain of f∘gf \circ g.

✅ Correct! gg needs x≥−1x \ge -1, and ff needs g(x)≠0g(x) \neq 0, which removes x=−1x = -1.
❌ x=−1x = -1 fails in ff. g(−1)=0g(-1) = 0, and f(0)=10f(0) = \frac{1}{0} is undefined.
❌ That intersects the domains. x=0x = 0 is fine (g(0)=1g(0) = 1, f(1)=1f(1) = 1); the input to remove is the one where g(x)=0g(x) = 0, namely x=−1x = -1.
❌ Not quite. Start from the domain of gg, then remove each xx with g(x)=0g(x) = 0.
Show solution

Step 1: x+1≥0x + 1 \ge 0, so the domain of gg is [−1,∞)[-1, \infty). Step 2: ff rejects only 00. Step 3: g(x)=0g(x) = 0 when x=−1x = -1; remove it.

Domain: (−1,∞)(-1, \infty). Indeed f(g(x))=1x+1f(g(x)) = \dfrac{1}{\sqrt{x + 1}} needs x+1>0x + 1 > 0.

Problem 4 · Decompose

Given: F(x)=(2x+3)5F(x) = (2x + 3)^5. Which pair satisfies F(x)=g(h(x))F(x) = g(h(x))?

✅ Correct! g(h(x))=g(2x+3)=(2x+3)5g(h(x)) = g(2x + 3) = (2x + 3)^5.
❌ Inside and outside are swapped. That gives g(h(x))=2x5+3g(h(x)) = 2x^5 + 3.
❌ Not quite. Compose the pair to check: the function inside the power is the inner function hh.
Show solution

The expression 2x+32x + 3 sits inside the fifth power, so h(x)=2x+3h(x) = 2x + 3 and g(x)=x5g(x) = x^5. Check: g(h(x))=(2x+3)5g(h(x)) = (2x + 3)^5.

The others: (a) gives 2x5+32x^5 + 3, (b) gives 10x+1510x + 15, (c) gives (2x+6)5(2x + 6)^5.

Solved: 0 / 4