Composition: Controlling Increments on the Range
Composition combines two different kinds of control. Absolute continuity of the inner function controls the total change in its values over short collections of intervals. A bound on the outer function’s derivative turns those changes into bounds on the changes of the composition. Together, these facts show that composition preserves absolute continuity. Differentiability then gives the chain rule wherever the inner function has a derivative; absolute continuity ensures that this is almost everywhere.
Throughout, \([a,b]\) is a compact interval with \(a<b\), and the functions considered are real-valued. A family of intervals \([u_j,v_j]\subseteq[a,b]\) is pairwise nonoverlapping if their interiors are disjoint. The definition below uses finite families of such intervals; allowing shared endpoints does not affect the sums.
The interval-sum condition is stronger than continuity: it controls the combined increments across many intervals, not just the change across one small interval. In particular, an absolutely continuous function is continuous. To check this, fix \(\varepsilon>0\) and choose \(\delta\) from the definition. Whenever \(x,y\in[a,b]\) and \(|x-y|<\delta\), apply the condition to the single interval with endpoints \(x,y\); it gives \(|f(y)-f(x)|<\varepsilon\).
Proof. Set \(K=f([a,b])\). The continuity of \(f\) implies that \(K\) is compact, and the intermediate value theorem implies that it is an interval. For any \(s,t\in K\), the whole interval between \(s\) and \(t\) lies in \(K\). The mean value theorem, applied to \(g\) on that interval, therefore gives \(|g(s)-g(t)|\le M|s-t|\). If \(M=0\), this inequality says that \(g\) is constant on \(K\), so \(g\circ f\) is constant and hence absolutely continuous. If \(M>0\), fix \(\varepsilon>0\) and use the absolute continuity of \(f\) with tolerance \(\varepsilon/M\). It supplies \(\delta>0\). For any finite pairwise nonoverlapping intervals \([u_j,v_j]\) with total length less than \(\delta\), the inequality on \(K\) gives \[ \sum_j|g(f(v_j))-g(f(u_j))| \le M\sum_j|f(v_j)-f(u_j)| < M\frac{\varepsilon}{M} =\varepsilon. \] This is precisely the definition of absolute continuity for \(g\circ f\). \(\square\)
Only the bound on the range of \(f\) is used: the derivative of \(g\) need not be bounded everywhere on the real line. In this theorem the bound is automatic if \(g'\) is continuous on an open interval containing the compact set \(f([a,b])\), since a continuous function is bounded on a compact set. It is useful to state the bound explicitly because the increment estimate depends on it.
Worked Example: A Polynomial Outer Function on a Bounded Range
Take \(f(x)=1+x\) on \([0,1]\), and \(g(t)=t^2\). Verify that the composition is absolutely continuous and compute its derivative.
The function \(f\) is Lipschitz with constant \(1\): for any \(x,y\in[0,1]\), \[ |f(y)-f(x)|=|y-x|. \] Thus, for a finite family of pairwise nonoverlapping intervals, the sum of the increments of \(f\) is at most the sum of their lengths, which verifies the definition of absolute continuity. The range of \(f\) is \([1,2]\). On this range \(g'(t)=2t\), so \(|g'(t)|\le4\). The theorem applies.
Direct calculation gives \[ (g\circ f)(x)=(1+x)^2=1+2x+x^2. \] For an interval \([u,v]\subseteq[0,1]\) with \(u\le v\), its composition increment is \[ |(1+v)^2-(1+u)^2| =(v-u)(2+u+v) \le4(v-u), \] because \(u+v\le2\). Summing this estimate over any such family shows directly that a total length less than \(\varepsilon/4\) gives total composition increment less than \(\varepsilon\). Differentiating the polynomial gives \((g\circ f)'(x)=2+2x\). The chain-rule expression gives \(g'(f(x))f'(x)=2(1+x)\cdot1=2+2x\), as required. Check: at \(x=0\), both derivative calculations give \(2\); at \(x=1\), both give \(4\).
Why the Chain Rule Holds Almost Everywhere
To pass from a pointwise calculation to an almost-everywhere statement, we need to know that \(f\) is differentiable almost everywhere. Here is the needed link to the earlier material on bounded variation. For a real-valued function on \([a,b]\), its total variation is the supremum of \(\sum_{i=1}^n|f(x_i)-f(x_{i-1})|\) over all partitions \(a=x_0<x_1<\cdots<x_n=b\). A function has bounded variation if this supremum is finite. The earlier result that a function of bounded variation on a compact interval is differentiable almost everywhere will be used below.
Proof. Apply absolute continuity with tolerance \(1\), obtaining \(\delta>0\). Choose a finite subdivision \(a=c_0<c_1<\cdots<c_N=b\) whose subintervals have length less than \(\delta\). Consider any partition \(a=x_0<x_1<\cdots<x_n=b\). Insert all the subdivision points \(c_i\) into this partition. The triangle inequality shows that inserting points cannot decrease the sum of absolute increments. Within each subinterval \([c_{i-1},c_i]\), the resulting partition intervals have total length \(c_i-c_{i-1}<\delta\). By absolute continuity, the sum of the increments over those intervals is less than \(1\). Summing over the \(N\) subintervals shows that the original partition sum is at most \(N\). This bound does not depend on the original partition. Taking the supremum over all partitions proves that \(f\) has bounded variation. \(\square\)
Combining the lemma with the earlier almost-everywhere differentiability result for functions of bounded variation, \(f\) is differentiable at Lebesgue-almost every point of \((a,b)\). This is the only almost-everywhere differentiability fact needed for the chain rule here; no claim is made about differentiability at every point.
Proof. By the lemma and the earlier almost-everywhere differentiability result for functions of bounded variation, there is a Lebesgue-null set \(N\subseteq(a,b)\) outside of which \(f\) is differentiable. Fix \(x\in(a,b)\setminus N\), and put \(y=f(x)\). For nonzero \(h\) sufficiently small that \(x+h\in[a,b]\), write \(k_h=f(x+h)-f(x)\). Differentiability of \(f\) at \(x\) means \[ k_h=f'(x)h+r_h,\qquad \frac{r_h}{h}\longrightarrow0\quad\text{as }h\to0. \] In particular, \(k_h\to0\) and \(k_h/h\to f'(x)\). Differentiability of \(g\) at \(y\) gives \[ g(y+k_h)-g(y)=g'(y)k_h+s_h, \] where \(s_h/k_h\to0\) whenever \(k_h\ne0\). If \(k_h=0\), then \(g(y+k_h)-g(y)=0\), so the same expansion holds with \(s_h=0\). Also, \(s_h/h\to0\): when \(k_h\ne0\), write \(s_h/h=(s_h/k_h)(k_h/h)\), whose first factor tends to \(0\) and whose second factor tends to the finite value \(f'(x)\); when \(k_h=0\), the quotient is zero. Dividing the expansion by \(h\) and taking the limit now yields \[ \lim_{h\to0}\frac{g(f(x+h))-g(f(x))}{h} =g'(y)\lim_{h\to0}\frac{k_h}{h} =g'(f(x))f'(x). \] Thus the chain-rule identity holds at each \(x\in(a,b)\setminus N\), and hence almost everywhere. \(\square\)
Worked Example: The Chain Rule Away from a Corner
On \([-1,1]\), let \(f(x)=|x|\) and \(g(t)=\sin t\). Find the derivative of the composition where it exists, and locate the point where a direct pointwise chain-rule calculation is unavailable.
The function \(f\) is Lipschitz with constant \(1\), since \(||y|-|x||\le|y-x|\); the interval-sum definition then shows that it is absolutely continuous. Its range is \([0,1]\), and \(|g'(t)|=|\cos t|\le1\). The composition theorem therefore shows that \(\sin|x|\) is absolutely continuous.
For \(x<0\), \(f(x)=-x\), so \(f'(x)=-1\). The chain-rule expression is \(\cos(|x|)(-1)=-\cos(|x|)\). For \(x>0\), \(f(x)=x\), so the expression is \(\cos(x)\cdot1=\cos x\). At \(x=0\), the derivative of the composition would have to be the two-sided limit of \[ \frac{\sin|h|-\sin0}{h}. \] For \(h>0\), this quotient is \(\sin h/h\), which tends to \(1\). For \(h<0\), it is \(\sin(-h)/h\), which tends to \(-1\). The two limits disagree, so the derivative does not exist at \(0\). The chain-rule formula is valid at every \(x\ne0\), and therefore almost everywhere on \([-1,1]\). Check: the formula gives \(-\cos(1)\) at \(x=-1\) and \(\cos(1)\) at \(x=1\), matching the derivatives of \(\sin|x|\) on the respective sides.
Worked Example: A Range-Dependent Derivative Bound
Let \(f(x)=x^2\) on \([0,1]\) and \(g(t)=t^3\). Verify the derivative bound needed for the composition theorem and check the chain-rule result.
For \(x,y\in[0,1]\), \[ |f(y)-f(x)|=|y-x||y+x|\le2|y-x|, \] so \(f\) is Lipschitz, hence absolutely continuous. Its range is \([0,1]\). Since \(g'(t)=3t^2\), the derivative satisfies \(|g'(t)|\le3\) on that range. The composition theorem applies even though \(g'\) is not bounded on all of \(\mathbb{R}\).
Directly, \((g\circ f)(x)=(x^2)^3=x^6\), whose derivative is \(6x^5\). The chain-rule expression is \[ g'(f(x))f'(x)=3(x^2)^2(2x)=6x^5. \] For an interval \(0\le u\le v\le1\), the composition increment is \[ |v^6-u^6|=(v-u)(v^5+v^4u+v^3u^2+v^2u^3+vu^4+u^5)\le6(v-u), \] because each of the six terms in parentheses is at most \(1\). Thus the total composition increment is at most six times the total interval length, independently confirming absolute continuity. Check: at \(x=0\), both derivative expressions give \(0\); at \(x=1\), both give \(6\).
A Common Pitfall
The composition theorem establishes absolute continuity everywhere on the interval, but the chain-rule identity is asserted only where \(f\) is differentiable. A common error is to apply the pointwise chain rule at an exceptional point anyway. In the preceding example, one might write at \(x=0\) that \((\sin|x|)'=\cos(|x|)(|x|)'=1\). This calculation is invalid: \((|x|)'(0)\) does not exist. Indeed, the right and left difference quotients of \(\sin|x|\) at \(0\) are \(1\) and \(-1\), respectively. The correct statement is that the chain rule holds for every \(x\ne0\), and hence almost everywhere; a null exceptional set is permitted, but it cannot be ignored when claiming an everywhere identity.
Two distinct hypotheses play distinct roles. Absolute continuity of \(f\) supplies differentiability almost everywhere and the interval-sum control needed to prove absolute continuity of the composition. The derivative bound for \(g\) on the range supplies the inequality \(|g(s)-g(t)|\le M|s-t|\). A derivative bound outside the range is not needed, while a pointwise chain-rule conclusion at points where \(f\) is not differentiable is not justified by the almost-everywhere theorem.
Check Your Understanding
For each question, distinguish the composition’s absolute continuity from the points where its derivative formula applies.
- Suppose \(f\) is absolutely continuous on \([a,b]\), \(g\) is continuously differentiable on an open interval containing \(f([a,b])\), and \(|g'|\le M\) on \(f([a,b])\). Give the interval-sum estimate that proves \(g\circ f\) is absolutely continuous.
- For \(f(x)=|x|\) and \(g(t)=t^2\) on \([-1,1]\), compute \(g\circ f\) and its derivative. Does the composition have a derivative at \(0\), even though \(f\) does not?
- Why is it sufficient to bound \(g'\) on \(f([a,b])\), rather than on all of \(\mathbb{R}\)?
- In the proof of the almost-everywhere chain rule, where is differentiability almost everywhere of \(f\) used?
- For \(f(x)=x^2\) on \([0,1]\) and \(g(t)=t^3\), state the range of \(f\), a valid derivative bound for \(g\) there, and the chain-rule expression.