Skip to main content

Thomas’ Calculus · Chapter 03 · Section 3.6

By Muhammad Abdullah Athar · SymPy Verified

The Chain Rule

❦

Read this page the way you would a book: first the notes, then the key ideas, then every worked example in order — each step explains not only what to do, but why it works.

Part One

Section Notes

❧

Section 3.6: The Chain Rule

The Chain Rule is the most powerful differentiation tool in calculus, enabling differentiation of nested and composite functions.


1. Theorem and Notations

  • Function Notation: ddx[f(g(x))]=f′(g(x))⋅g′(x)\frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x)
  • Leibniz Notation: If y=f(u)y = f(u) and u=g(x)u = g(x): dydx=dydu⋅dudx\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}

2. Repeated Chain Rule

For multiple nested compositions y=f(g(h(x)))y = f(g(h(x))):

dydx=f′(g(h(x)))⋅g′(h(x))⋅h′(x)\frac{dy}{dx} = f'(g(h(x))) \cdot g'(h(x)) \cdot h'(x)

Part Two

Key Ideas to Remember

2 essential statements for this section, each with a plain-words explanation.

Theorem #1Sec 3.6

The Chain Rule for Composite Functions

ddx[f(g(x))]=f′(g(x))⋅g′(x),dydx=dydu⋅dudx\frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x), \qquad \frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}

If g is differentiable at x and f is differentiable at g(x), then the composite function F(x) = f(g(x)) is differentiable at x, and its derivative is the derivative of the outer function evaluated at the inner function times the derivative of the inner function.

Conditions: Inner function g differentiable at x; Outer function f differentiable at g(x)

In plain words: Rate of change multiplies across successive transformations: if y changes twice as fast as u, and u changes three times as fast as x, y changes 6 times as fast as x.

Remember — Differentiate outside leaving inside alone, then multiply by derivative of inside.

Rule #2Sec 3.6

The Generalized Power Rule

ddx[u(x)n]=n[u(x)]n−1⋅u′(x)\frac{d}{dx}[u(x)^n] = n [u(x)]^{n-1} \cdot u'(x)

The derivative of any differentiable function raised to a real power n is n times the function to the power (n-1) times the derivative of the function.

Conditions: u(x) is differentiable; u(x) > 0 if n is not an integer

In plain words: Specialization of the chain rule where outer function is f(u) = u^n.

Remember — Never forget to multiply by u'(x) when differentiating [u(x)]^n.

Part Three

Worked Examples

5 exercises, solved in full. Every answer has been checked symbolically with SymPy before printing.

Example 01(Section 3.6, Exercise 1)

Warm-up

Problem. Differentiate y = (3x^2 - 5x + 1)^4.

Step-by-Step Derivation (3 steps)

1

Identify Inner Function u and Outer Function f

u=3x2−5x+1,y=u4u = 3x^2 - 5x + 1, \quad y = u^4

Set u equal to the inside polynomial.

Why this works: Chain rule decomposition.
2

Differentiate Inner and Outer Functions

dydu=4u3,dudx=6x−5\frac{dy}{du} = 4u^3, \quad \frac{du}{dx} = 6x - 5

Differentiate y with respect to u and u with respect to x.

Why this works: Component derivatives.
3

Multiply and Substitute Back u

dydx=4u3dudx=4(3x2−5x+1)3(6x−5)\frac{dy}{dx} = 4u^3 \frac{du}{dx} = 4(3x^2 - 5x + 1)^3(6x - 5)

Assemble via chain rule dy/dx = (dy/du)(du/dx).

Why this works: Chain rule formula.

Answer: dydx=4(3x2−5x+1)3(6x−5)\frac{dy}{dx} = 4(3x^2 - 5x + 1)^3(6x - 5)

✓ Verified by SymPy CAS

Example 02(Section 3.6, Exercise 2)

Core practice

Problem. Differentiate y = sin^3(4x) = (sin(4x))^3.

Step-by-Step Derivation (3 steps)

1

Identify the Three-Stage Composition

y=u3,u=sin⁡(v),v=4xy = u^3, \quad u = \sin(v), \quad v = 4x

Decompose into outer cube, middle sine, and inner linear function.

Why this works: Three-tier composite structure.
2

Differentiate Each Stage

dydu=3u2,duv=cos⁡v,dvdx=4\frac{dy}{du} = 3u^2, \quad \frac{du}{v} = \cos v, \quad \frac{dv}{dx} = 4

Compute the three intermediate derivatives.

Why this works: Leibniz chain rule components.
3

Multiply Chain Factors

dydx=3(sin⁡(4x))2⋅cos⁡(4x)⋅4=12sin⁡2(4x)cos⁡(4x)\frac{dy}{dx} = 3(\sin(4x))^2 \cdot \cos(4x) \cdot 4 = 12\sin^2(4x)\cos(4x)

Multiply factors together.

Why this works: Repeated chain rule.

Answer: dydx=12sin⁡2(4x)cos⁡(4x)\frac{dy}{dx} = 12\sin^2(4x)\cos(4x)

✓ Verified by SymPy CAS

Example 03(Section 3.6, Exercise 3)

Core practice

Problem. Find dy/dx for y = sqrt((x + 1)/(x - 1)).

Step-by-Step Derivation (3 steps)

1

Apply Outer Power Rule (Exponent 1/2)

dydx=12(x+1x−1)−1/2⋅ddx[x+1x−1]\frac{dy}{dx} = \frac{1}{2}\left(\frac{x + 1}{x - 1}\right)^{-1/2} \cdot \frac{d}{dx}\left[\frac{x + 1}{x - 1}\right]

Differentiate the outer square root.

Why this works: Power rule for outer function.
2

Differentiate the Inner Quotient

ddx[x+1x−1]=1(x−1)−(x+1)(1)(x−1)2=−2(x−1)2\frac{d}{dx}\left[\frac{x + 1}{x - 1}\right] = \frac{1(x - 1) - (x + 1)(1)}{(x - 1)^2} = \frac{-2}{(x - 1)^2}

Apply quotient rule to the inner rational function.

Why this works: Quotient rule for inner derivative.
3

Combine Factors

12(x+1x−1)−1/2⋅−2(x−1)2=−1(x−1)2x−1x+1\frac{1}{2}\left(\frac{x + 1}{x - 1}\right)^{-1/2} \cdot \frac{-2}{(x - 1)^2} = -\frac{1}{(x - 1)^2}\sqrt{\frac{x - 1}{x + 1}}

Multiply and cancel factor of 2.

Why this works: Final algebraic consolidation.

Answer: dydx=−1(x−1)2x+1x−1=−1(x−1)x2−1\frac{dy}{dx} = -\frac{1}{(x - 1)^2 \sqrt{\frac{x + 1}{x - 1}}} = -\frac{1}{(x - 1)\sqrt{x^2 - 1}}

✓ Verified by SymPy CAS

Example 04(Section 3.6, Exercise 4)

Core practice

Problem. Differentiate y = tan(cos(2x)).

Step-by-Step Derivation (3 steps)

1

Differentiate Outer Tangent Function

dydx=sec⁡2(cos⁡(2x))⋅ddx[cos⁡(2x)]\frac{dy}{dx} = \sec^2(\cos(2x)) \cdot \frac{d}{dx}[\cos(2x)]

d/du[tan u] = sec^2(u) with u = cos(2x).

Why this works: Outer derivative.
2

Differentiate Middle Cosine Function

ddx[cos⁡(2x)]=−sin⁡(2x)⋅ddx[2x]=−2sin⁡(2x)\frac{d}{dx}[\cos(2x)] = -\sin(2x) \cdot \frac{d}{dx}[2x] = -2\sin(2x)

Chain rule on cos(2x).

Why this works: Middle derivative times inner derivative.
3

Combine

dydx=−2sec⁡2(cos⁡(2x))sin⁡(2x)\frac{dy}{dx} = -2\sec^2(\cos(2x))\sin(2x)

Multiply the chain of derivatives.

Why this works: Complete chain rule result.

Answer: dydx=−2sec⁡2(cos⁡(2x))sin⁡(2x)\frac{dy}{dx} = -2\sec^2(\cos(2x))\sin(2x)

✓ Verified by SymPy CAS

Example 05(Section 3.6, Exercise 5)

Warm-up

Problem. Find the equation of the tangent line to y = (2x - 1)^5 at x = 1.

Step-by-Step Derivation (3 steps)

1

Find y-Coordinate at x = 1

y(1)=(2(1)−1)5=15=1y(1) = (2(1) - 1)^5 = 1^5 = 1

Point of tangency is (1, 1).

Why this works: Contact point evaluation.
2

Differentiate via Chain Rule

y′=5(2x−1)4⋅ddx[2x−1]=5(2x−1)4(2)=10(2x−1)4y' = 5(2x - 1)^4 \cdot \frac{d}{dx}[2x - 1] = 5(2x - 1)^4 (2) = 10(2x - 1)^4

Apply generalized power rule.

Why this works: Derivative function.
3

Evaluate Slope and Construct Tangent Line

m=y′(1)=10(1)4=10;y−1=10(x−1)  ⟹  y=10x−9m = y'(1) = 10(1)^4 = 10; \quad y - 1 = 10(x - 1) \implies y = 10x - 9

Apply point-slope formula with m = 10 and (1, 1).

Why this works: Tangent line equation.

Answer: y=10x−9y = 10x - 9

✓ Verified by SymPy CAS