Mathematical-Reasoning · Unit 23 · Video 3 · Interactive Practice

Decomposing a Function: Cut at the Last Step

IKey Formulas

FormulaNameWhat it says
(g∘h)(x)=g(h(x))(g \circ h)(x) = g\big(h(x)\big)Compositehh (inner) acts first, gg (outer) acts second
(3x+2)3=g(h(x))(3x + 2)^3 = g\big(h(x)\big) with h(x)=3x+2h(x) = 3x + 2, g(x)=x3g(x) = x^3Cut at the last stepLast step of the verbal description is the outer function, earlier steps form the inner one
h:A→Bh: A \to B and g:B→Cg: B \to CThe sets fitCodomain of the inner function equals the domain of the outer one, e.g. f:R→R+f: \mathbb{R} \to \mathbb{R}^+, h:R+→Rh: \mathbb{R}^+ \to \mathbb{R} for ln⁡(x2+3)\ln(x^2 + 3)
(g∘h)′(x)=g′(h(x))⋅h′(x)(g \circ h)'(x) = g'\big(h(x)\big) \cdot h'(x)Chain ruleUses exactly this split: f′(x)=3(3x+2)2⋅3=9(3x+2)2f'(x) = 3(3x + 2)^2 \cdot 3 = 9(3x + 2)^2

Key Insight: Decomposing takes one step and two checks: cut at the last step, make the inner codomain equal the outer domain, and give the composite the original domain and codomain.

IIWhere to Cut

Every cut of the step chain gives a correct composite, but only the last-step cut leaves a one-operation outer function.

IIIMake the Sets Fit

A decomposition is complete only when the inner codomain is the outer domain and the composite keeps the original sets.

💡 Here R+\mathbb{R}^+ is the set of positive real numbers and N={1,2,3,…}\mathbb{N} = \{1, 2, 3, \ldots\}. Each example has exactly one choice of the four sets that works.

IVQuiz Questions

Problem 1 · Cut at the Last Step

Given: F:R→RF: \mathbb{R} \to \mathbb{R}, F(x)=x2+7F(x) = \sqrt{x^2 + 7}. Which decomposition F=g∘hF = g \circ h cuts at the last step of the verbal description?

✅ Correct! The last step is the square root, so the outer function is g(x)=xg(x) = \sqrt{x} and everything before it, x2+7x^2 + 7, is the inner function.
❌ Not the last step. g(h(x))=x2+7g(h(x)) = \sqrt{x^2 + 7} is right, but the outer function x+7\sqrt{x + 7} still takes two steps (add 77, then take the square root).
❌ No progress. This composite is correct, but the inner function is the identity and the outer function is the whole formula.
❌ Order reversed. g(h(x))=(x)2+7=x+7g(h(x)) = (\sqrt{x})^2 + 7 = x + 7 for x≥0x \ge 0, which is not F(x)F(x). Also x\sqrt{x} is undefined for negative xx.
Show solution

Verbal description of FF: choose xx, square it, add 77, take the square root. The last step is the square root, so

g(x)=x,h(x)=x2+7.g(x) = \sqrt{x}, \qquad h(x) = x^2 + 7.

Check: g(h(x))=g(x2+7)=x2+7=F(x)g(h(x)) = g(x^2 + 7) = \sqrt{x^2 + 7} = F(x).

Sets: x2+7≥7>0x^2 + 7 \ge 7 > 0 for every real xx, so take h:R→R+h: \mathbb{R} \to \mathbb{R}^+ and g:R+→Rg: \mathbb{R}^+ \to \mathbb{R}. Then g∘h:R→Rg \circ h: \mathbb{R} \to \mathbb{R}, as FF requires.

Options (a) and (b) are also correct composites, but their outer functions are not a single basic operation. Option (d) is not even a decomposition of FF.

Problem 2 · Which Function Goes on the Left?

Given: F:R→RF: \mathbb{R} \to \mathbb{R}, F(x)=sin⁡(x3)F(x) = \sin(x^3). Which pair gives F=g∘hF = g \circ h?

✅ Correct! g(h(x))=g(x3)=sin⁡(x3)=F(x)g(h(x)) = g(x^3) = \sin(x^3) = F(x). The sine is applied last, so it is the outer function, written on the left.
❌ The order is swapped. g(h(x))=(sin⁡x)3g(h(x)) = (\sin x)^3, which cubes last. In FF the cube is taken first and the sine last, so the sine is the outer function gg.
❌ Not quite. g(h(x))=sin⁡(3x)g(h(x)) = \sin(3x). The inner step of FF cubes xx rather than multiplying it by 33.
❌ Cubed twice. g(h(x))=sin⁡((x3)3)=sin⁡(x9)g(h(x)) = \sin\big((x^3)^3\big) = \sin(x^9). The outer function must be only the last step.
Show solution

Verbal description of FF: choose xx, cube it, take the sine. The last step is the sine, so the outer function is g(x)=sin⁡xg(x) = \sin x and the inner function is h(x)=x3h(x) = x^3.

(g∘h)(x)=g(h(x))=g(x3)=sin⁡(x3)=F(x).(g \circ h)(x) = g\big(h(x)\big) = g(x^3) = \sin(x^3) = F(x).

In g∘hg \circ h the function on the right acts first, so the inner function sits next to the input. Both hh and gg can be taken from R\mathbb{R} to R\mathbb{R}, because cubing and sine are defined for every real number.

Problem 3 · Make the Sets Fit

Given: F:R→RF: \mathbb{R} \to \mathbb{R}, F(x)=ln⁡(x4+1)F(x) = \ln(x^4 + 1), decomposed with inner f(x)=x4+1f(x) = x^4 + 1 and outer h(x)=ln⁡xh(x) = \ln x. Which choice of sets makes F=h∘fF = h \circ f? (R+\mathbb{R}^+ is the set of positive reals.)

✅ Correct! x4+1≥1>0x^4 + 1 \ge 1 > 0, so ff lands in R+\mathbb{R}^+, which is exactly where ln⁡\ln is defined, and h∘f:R→Rh \circ f: \mathbb{R} \to \mathbb{R} matches FF.
❌ The outer function fails. ln⁡(−1)\ln(-1) and ln⁡0\ln 0 do not exist, so h:R→Rh: \mathbb{R} \to \mathbb{R} is not a function.
❌ The sets do not fit. The codomain of ff is R+\mathbb{R}^+ but the domain of hh is R\mathbb{R}. Besides, ln⁡\ln is not defined on all of R\mathbb{R}.
❌ Wrong domain for the composite. These pieces fit, but h∘f:R+→Rh \circ f: \mathbb{R}^+ \to \mathbb{R} has a different domain from F:R→RF: \mathbb{R} \to \mathbb{R}, so it is a different function.
Show solution

Outer domain. ln⁡x\ln x is defined only for x>0x > 0, so h:R+→Rh: \mathbb{R}^+ \to \mathbb{R}.

Fit. The codomain of ff must be R+\mathbb{R}^+. It can be: x4≥0x^4 \ge 0, so x4+1≥1>0x^4 + 1 \ge 1 > 0 for every real xx, giving f:R→R+f: \mathbb{R} \to \mathbb{R}^+.

Composite. h∘f:R→Rh \circ f: \mathbb{R} \to \mathbb{R} and (h∘f)(x)=ln⁡(x4+1)=F(x)(h \circ f)(x) = \ln(x^4 + 1) = F(x) for every x∈Rx \in \mathbb{R}, so F=h∘fF = h \circ f.

Problem 4 · Decomposing on the Integers

Given: f:Z→Zf: \mathbb{Z} \to \mathbb{Z}, f(x)=∣2x−5∣f(x) = |2x - 5|. Cutting at the last step gives inner k(x)=2x−5k(x) = 2x - 5 and outer g(x)=∣x∣g(x) = |x|, with k:Z→Bk: \mathbb{Z} \to B and g:B→Zg: B \to \mathbb{Z}. Which set BB makes f=g∘kf = g \circ k? (N={1,2,3,…}\mathbb{N} = \{1, 2, 3, \ldots\}.)

✅ Correct! 2x−52x - 5 is an integer whenever xx is, and the absolute value of an integer is an integer, so k:Z→Zk: \mathbb{Z} \to \mathbb{Z} and g:Z→Zg: \mathbb{Z} \to \mathbb{Z}.
❌ The inner function leaves N\mathbb{N}. k(2)=−1k(2) = -1 and k(0)=−5k(0) = -5 are not natural numbers, so k:Z→Nk: \mathbb{Z} \to \mathbb{N} is not a function.
❌ The outer function leaves Z\mathbb{Z}. k:Z→Rk: \mathbb{Z} \to \mathbb{R} is fine, but g:R→Zg: \mathbb{R} \to \mathbb{Z} is not a function, since g(12)=12∉Zg\big(\tfrac{1}{2}\big) = \tfrac{1}{2} \notin \mathbb{Z}.
❌ Negative outputs. k(2)=−1k(2) = -1 is not a positive real number, so k:Z→R+k: \mathbb{Z} \to \mathbb{R}^+ is not a function.
Show solution

Inner codomain. kk takes negative values, e.g. k(0)=−5k(0) = -5 and k(2)=−1k(2) = -1, so BB must contain negative numbers. That rules out N\mathbb{N} and R+\mathbb{R}^+.

Outer codomain. g:B→Zg: B \to \mathbb{Z} must send every element of BB to an integer. With B=RB = \mathbb{R}, g(12)=12∉Zg\big(\tfrac{1}{2}\big) = \tfrac{1}{2} \notin \mathbb{Z}, so R\mathbb{R} fails.

B=ZB = \mathbb{Z} works. If x∈Zx \in \mathbb{Z} then 2x−5∈Z2x - 5 \in \mathbb{Z}, and ∣n∣∈Z|n| \in \mathbb{Z} for n∈Zn \in \mathbb{Z}. So g∘k:Z→Zg \circ k: \mathbb{Z} \to \mathbb{Z} and (g∘k)(x)=∣2x−5∣=f(x)(g \circ k)(x) = |2x - 5| = f(x), hence f=g∘kf = g \circ k.

Check one input: k(1)=−3k(1) = -3, g(−3)=3g(-3) = 3, and f(1)=∣2−5∣=3f(1) = |2 - 5| = 3.

Solved: 0 / 4