TOPIC 3.1 · STUDY

The Chain Rule

The chain rule differentiates a composite function by multiplying the outside derivative, still evaluated at the inside expression, by the derivative of the inside. Expanding (x^2 + 1)^2 and differentiating term by term confirms the chain-rule result.

FUN-3.C

The Chain Rule

A composite function is an outside operation applied to an inside expression. In $y=(x^{2}+1)^{2}$, the inside is $u=x^{2}+1$ and the outside operation is squaring. The chain rule keeps that structure: differentiate the outside with respect to the inside, leave the inside written as it is, and multiply by the derivative of the inside.

If $y=f(g(x))$ and both $f$ and $g$ are differentiable at the input you are using, then $\dfrac{dy}{dx}=f'(g(x))\,g'(x)$. With $u=g(x)$, the Leibniz form of the same statement is $\dfrac{dy}{dx}=\dfrac{dy}{du}\cdot\dfrac{du}{dx}$. The factor $f'(g(x))$ still contains the inside function $g(x)$. The factor $g'(x)$ is a separate multiplier.

Work $y=(x^{2}+1)^{2}$ with that rule. Let $u=x^{2}+1$, so $y=u^{2}$. Then $\dfrac{dy}{du}=2u$ and $\dfrac{du}{dx}=2x$. Multiply: $\dfrac{dy}{dx}=2u\cdot 2x=2(x^{2}+1)\cdot 2x=4x(x^{2}+1)$. One more expansion gives the polynomial $4x(x^{2}+1)=4x^{3}+4x$.

Check by expanding before you differentiate. $(x^{2}+1)^{2}=x^{4}+2x^{2}+1$, and the term-by-term derivative is $4x^{3}+4x$. The two methods agree. At $x=1$, both give $4(1)^{3}+4(1)=8$, and the factored form gives $4(1)(1^{2}+1)=8$. At $x=0$, both give $0$. At $x=-1$, both give $4(-1)^{3}+4(-1)=-8$.

Graph of y = (x^2 + 1)^2, a valley with minimum 1 at x = 0.

Graph of $y=(x^{2}+1)^{2}$, the same curve as $y=x^{4}+2x^{2}+1$. The marked low point is $(0,1)$, where the chain-rule derivative $4x(x^{2}+1)$ equals $0$.

The factor $4x$ in $4x(x^{2}+1)$ controls the sign of the slope, because $x^{2}+1$ is always positive. The graph falls for $x<0$ and rises for $x>0$. The horizontal tangent sits only at the bottom point $(0,1)$. If a third function were wrapped around this composite, the chain rule would multiply one more derivative; each layer contributes one factor.

Role Expression in this example
Inside $u$ $x^{2}+1$
Outside $u^{2}$
Outside derivative $\dfrac{dy}{du}$ $2u=2(x^{2}+1)$
Inside derivative $\dfrac{du}{dx}$ $2x$
Product $\dfrac{dy}{dx}$ $4x(x^{2}+1)=4x^{3}+4x$

Key points

  • The chain rule is $\dfrac{dy}{dx}=f'(g(x))\,g'(x)$, or $\dfrac{dy}{du}\cdot\dfrac{du}{dx}$.
  • Leave $g(x)$ inside $f'$, and multiply by $g'(x)$.
  • For $y=(x^{2}+1)^{2}$, the derivative is $4x(x^{2}+1)=4x^{3}+4x$.
  • Expanding a polynomial composite and differentiating term by term is a valid check.
  • Each additional nested function contributes one more derivative factor.

Common mistake: differentiating only the square and stopping at $2(x^{2}+1)$. That answer omits the inside derivative $2x$. At $x=1$ it equals $4$, while the slope on the graph is $4x(x^{2}+1)=8$.

Practice this topic