Skip to content
🎯⭐ INTERACTIVE LESSON

Chain Rule

Learn step-by-step with interactive practice!

Chain Rule - Complete Interactive Lesson

Part 1: Chain Rule Basics

🔗 The Chain Rule

Part 1 of 7 — Chain Rule Basics

Welcome to the Chain Rule — arguably the most important differentiation rule in calculus!

PartTopic
1Chain Rule Basics
2Nested Functions & Double Chain Rule
3Implicit Differentiation
4Related Rates
5Advanced Applications
6Problem-Solving Workshop
7Comprehensive Review

Why Do We Need the Chain Rule?

So far, you can differentiate functions like x3x^3, sin⁡x\sin x, or exe^x. But what about composite functions — functions inside other functions?

  • (3x+1)5(3x + 1)^5 — expanding this is painful
  • sin⁡(x2)\sin(x^2) — can't use basic trig rule directly
  • e3xe^{3x} — the exponent isn't just xx

The Chain Rule handles ALL of these.

The Chain Rule Formula

ddx[f(g(x))]=f′(g(x))⋅g′(x)\boxed{\frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x)}

In words: differentiate the outer function (leaving the inner function untouched), then multiply by the derivative of the inner function.

Leibniz Notation

If y=f(u)y = f(u) where u=g(x)u = g(x), then:

dydx=dydu⋅dudx\boxed{\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}}

Key Fact: The Chain Rule is needed whenever you see a function INSIDE another function. It appears in ~80% of all derivative problems on the AP exam.

Worked Examples — Step by Step

Example 1: Find ddx(3x+1)5\frac{d}{dx}(3x+1)^5

StepWork
Identify layersOuter: u5u^5, Inner: u=3x+1u = 3x+1
Differentiate outer5u4=5(3x+1)45u^4 = 5(3x+1)^4
Differentiate innerddx(3x+1)=3\frac{d}{dx}(3x+1) = 3
Multiply5(3x+1)4⋅3=15(3x+1)45(3x+1)^4 \cdot 3 = 15(3x+1)^4

Example 2: Find ddxsin⁡(x2)\frac{d}{dx}\sin(x^2)

StepWork
Identify layersOuter: sin⁡(u)\sin(u), Inner: u=x2u = x^2
Differentiate outercos⁡(u)=cos⁡(x2)\cos(u) = \cos(x^2)
Differentiate innerddx(x2)=2x\frac{d}{dx}(x^2) = 2x
Multiplycos⁡(x2)⋅2x=2xcos⁡(x2)\cos(x^2) \cdot 2x = 2x\cos(x^2)

Example 3: Find ddxx2+1\frac{d}{dx}\sqrt{x^2 + 1}

Rewrite: x2+1=(x2+1)1/2\sqrt{x^2+1} = (x^2+1)^{1/2}

StepWork
Outer derivative12(x2+1)−1/2\frac{1}{2}(x^2+1)^{-1/2}
Inner derivative2x2x
Chain Rule12(x2+1)−1/2⋅2x=xx2+1\frac{1}{2}(x^2+1)^{-1/2} \cdot 2x = \frac{x}{\sqrt{x^2+1}}

Example 4: Find ddxe−x2\frac{d}{dx}e^{-x^2}

StepWork
Outer: eue^ue−x2e^{-x^2} (unchanged)
Inner: u=−x2u = -x^2−2x-2x
Chain Rulee−x2⋅(−2x)=−2xe−x2e^{-x^2} \cdot (-2x) = -2xe^{-x^2}

AP Tip: The most common Chain Rule error is forgetting to multiply by the inner derivative. Always ask: "Did I multiply by the derivative of what's inside?"

Apply the Chain Rule 🎯

Chain Rule Pattern Reference

Key Concept: Every basic derivative rule has a "chain rule version" where you multiply by the inner derivative.

FunctionWithout Chain RuleWith Chain Rule
unu^nnxn−1nx^{n-1}n[g(x)]n−1⋅g′(x)n[g(x)]^{n-1} \cdot g'(x)
sin⁡u\sin ucos⁡x\cos xcos⁡(g(x))⋅g′(x)\cos(g(x)) \cdot g'(x)
cos⁡u\cos u−sin⁡x-\sin x−sin⁡(g(x))⋅g′(x)-\sin(g(x)) \cdot g'(x)
tan⁡u\tan usec⁡2x\sec^2 xsec⁡2(g(x))⋅g′(x)\sec^2(g(x)) \cdot g'(x)
eue^uexe^xeg(x)⋅g′(x)e^{g(x)} \cdot g'(x)
ln⁡u\ln u1x\frac{1}{x}g′(x)g(x)\frac{g'(x)}{g(x)}

The "Stuff" Method (Quick Shorthand)

Replace the inner function with "stuff":

FunctionDerivative ("stuff" method)
(stuff)n(\text{stuff})^nn(stuff)n−1⋅(stuff)′n(\text{stuff})^{n-1} \cdot (\text{stuff})'
sin⁡(stuff)\sin(\text{stuff})cos⁡(stuff)⋅(stuff)′\cos(\text{stuff}) \cdot (\text{stuff})'
estuffe^{\text{stuff}}estuff⋅(stuff)′e^{\text{stuff}} \cdot (\text{stuff})'
ln⁡(stuff)\ln(\text{stuff})(stuff)′stuff\frac{(\text{stuff})'}{\text{stuff}}

AP Tip: This shorthand method is how most students actually think about Chain Rule on the exam. Practice until it's automatic!

More Chain Rule Practice 🎯

Identify the Outer Function 🔍

For each composite function, select the correct outer function.

Chain Rule computation. ✍️

Key Takeaways — Part 1

ddx[f(g(x))]=f′(g(x))⋅g′(x)\boxed{\frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x)}

Function TypeDerivative Pattern
(stuff)n(\text{stuff})^nn(stuff)n−1⋅(stuff)′n(\text{stuff})^{n-1} \cdot (\text{stuff})'
sin⁡(stuff)\sin(\text{stuff})cos⁡(stuff)⋅(stuff)′\cos(\text{stuff}) \cdot (\text{stuff})'
cos⁡(stuff)\cos(\text{stuff})−sin⁡(stuff)⋅(stuff)′-\sin(\text{stuff}) \cdot (\text{stuff})'
estuffe^{\text{stuff}}estuff⋅(stuff)′e^{\text{stuff}} \cdot (\text{stuff})'
ln⁡(stuff)\ln(\text{stuff})(stuff)′stuff\frac{(\text{stuff})'}{\text{stuff}}

The #1 Chain Rule mistake: Forgetting the inner derivative. ALWAYS multiply by g′(x)g'(x)!

Up Next: Part 2 — Nested Functions & the Double Chain Rule.

Part 2: Nested Functions & Double Chain Rule

🔗 Nested Functions & Double Chain Rule

Part 2 of 7 — Nested Functions

When the Chain Rule Applies Twice

Some functions have three or more layers. For example:

f(x)=sin⁡2(3x)=[sin⁡(3x)]2f(x) = \sin^2(3x) = [\sin(3x)]^2

Here we have three layers:

  1. Outermost: u2u^2
  2. Middle: sin⁡(v)\sin(v)
  3. Innermost: v=3xv = 3x

The general formula for nested compositions:

ddx[f(g(h(x)))]=f′(g(h(x)))⋅g′(h(x))⋅h′(x)\boxed{\frac{d}{dx}[f(g(h(x)))] = f'(g(h(x))) \cdot g'(h(x)) \cdot h'(x)}

Key Concept: Each layer contributes one factor. Count layers = count factors in the derivative.

Worked Examples — Layer-by-Layer

Example 1: ddx[sin⁡(3x)]2\frac{d}{dx}[\sin(3x)]^2

LayerFunctionDerivative
Outeru2u^22u=2sin⁡(3x)2u = 2\sin(3x)
Middlesin⁡(v)\sin(v)cos⁡(v)=cos⁡(3x)\cos(v) = \cos(3x)
Inner3x3x33
Result2sin⁡(3x)⋅cos⁡(3x)⋅3=6sin⁡(3x)cos⁡(3x)2\sin(3x) \cdot \cos(3x) \cdot 3 = 6\sin(3x)\cos(3x)

Bonus: By the double-angle identity, 6sin⁡(3x)cos⁡(3x)=3sin⁡(6x)6\sin(3x)\cos(3x) = 3\sin(6x).


Example 2: ddxecos⁡(2x)\frac{d}{dx}e^{\cos(2x)}

LayerFunctionDerivative
Outereue^uecos⁡(2x)e^{\cos(2x)}
Middlecos⁡(v)\cos(v)−sin⁡(2x)-\sin(2x)
Inner2x2x22
Result−2sin⁡(2x) ecos⁡(2x)-2\sin(2x)\,e^{\cos(2x)}

Example 3: ddxln⁡x=ddx(ln⁡x)1/2\frac{d}{dx}\sqrt{\ln x} = \frac{d}{dx}(\ln x)^{1/2}

LayerDerivative
(⋅)1/2(\cdot)^{1/2}12(ln⁡x)−1/2\frac{1}{2}(\ln x)^{-1/2}
ln⁡x\ln x1x\frac{1}{x}
Result12xln⁡x\frac{1}{2x\sqrt{\ln x}}

Example 4: ddxsin⁡3(2x+1)=ddx[sin⁡(2x+1)]3\frac{d}{dx}\sin^3(2x+1) = \frac{d}{dx}[\sin(2x+1)]^3

LayerDerivative
u3u^33[sin⁡(2x+1)]23[\sin(2x+1)]^2
sin⁡(v)\sin(v)cos⁡(2x+1)\cos(2x+1)
2x+12x+122
Result6sin⁡2(2x+1)cos⁡(2x+1)6\sin^2(2x+1)\cos(2x+1)

AP Tip: Students commonly write 2sin⁡(3x)cos⁡(3x)2\sin(3x)\cos(3x) for ddxsin⁡2(3x)\frac{d}{dx}\sin^2(3x) — forgetting the factor of 33 from the innermost layer. Always ask: "Is there another layer inside?"

Nested Chain Rule Practice 🎯

How Many Chain Rule Applications?

Key Fact: The number of chain rule applications = number of layers minus 1.

FunctionLayersChain Rule Applications
sin⁡(x)\sin(x)10
sin⁡(5x)\sin(5x)2 (sin, 5x)1
sin⁡2(5x)\sin^2(5x)3 (square, sin, 5x)2
esin⁡2(5x)e^{\sin^2(5x)}4 (exp, square, sin, 5x)3

Strategy: Peel from the Outside In

Step 1: Identify outermost operation. Step 2: Differentiate it. Step 3: Repeat for each inner layer. Step 4: Multiply all factors.\boxed{\text{Step 1: Identify outermost operation. Step 2: Differentiate it. Step 3: Repeat for each inner layer. Step 4: Multiply all factors.}}

Common Nested Patterns on the AP Exam

PatternDerivative
sin⁡n(ax)\sin^n(ax)nasin⁡n−1(ax)cos⁡(ax)na\sin^{n-1}(ax)\cos(ax)
ef(x)2e^{f(x)^2}2f(x)f′(x) ef(x)22f(x)f'(x)\,e^{f(x)^2}
ln⁡(f(g(x)))\ln(f(g(x)))g′(x)⋅f′(g(x))f(g(x))\frac{g'(x) \cdot f'(g(x))}{f(g(x))}
[f(g(x))]n[f(g(x))]^nn[f(g(x))]n−1⋅f′(g(x))⋅g′(x)n[f(g(x))]^{n-1} \cdot f'(g(x)) \cdot g'(x)

Multi-Layer Problems 🎯

How many Chain Rule applications? 🔍

For each function, select how many times you must apply the Chain Rule.

Double Chain Rule computation. ✍️

Key Takeaways — Part 2

ddx[f(g(h(x)))]=f′(g(h(x)))⋅g′(h(x))⋅h′(x)\boxed{\frac{d}{dx}[f(g(h(x)))] = f'(g(h(x))) \cdot g'(h(x)) \cdot h'(x)}

MistakeCorrect Approach
Stop after first layerMultiply ALL layer derivatives
Confuse order of layersWork outside → in
Forget innermost derivativeAlways check the innermost layer
Differentiate the inner functionLeave the inner function unchanged inside the outer derivative

Up Next: Part 3 — Implicit Differentiation using the Chain Rule.

Part 3: Implicit Differentiation

🔗 Implicit Differentiation

Part 3 of 7 — Implicit Differentiation

What Is Implicit Differentiation?

Sometimes a relationship between xx and yy is not solved for yy. For example:

x2+y2=25x^2 + y^2 = 25

This is a circle. We cannot easily write yy as a single function of xx. But we can still find dydx\frac{dy}{dx} using the Chain Rule.

The Key Idea

Differentiate both sides with respect to x. Every time you differentiate y, multiply by dydx.\boxed{\text{Differentiate both sides with respect to } x.\text{ Every time you differentiate } y, \text{ multiply by } \frac{dy}{dx}.}

Why? Because yy is implicitly a function of xx, so:

ddx[yn]=nyn−1⋅dydx\frac{d}{dx}[y^n] = ny^{n-1} \cdot \frac{dy}{dx}

Key Concept: Implicit differentiation is just the Chain Rule applied to yy, treating yy as a function of xx.

Step-by-Step Method

StepAction
1Differentiate every term with respect to xx
2Apply Chain Rule to any term with yy (attach dydx\frac{dy}{dx})
3Use Product/Quotient Rule when xx and yy are multiplied/divided
4Collect all dydx\frac{dy}{dx} terms on one side
5Factor out dydx\frac{dy}{dx}
6Solve for dydx\frac{dy}{dx}

Worked Example 1: Circle

Find dydx\frac{dy}{dx} for x2+y2=25x^2 + y^2 = 25

StepWork
Differentiate both sides2x+2ydydx=02x + 2y\frac{dy}{dx} = 0
Isolate2ydydx=−2x2y\frac{dy}{dx} = -2x
Solvedydx=−xy\frac{dy}{dx} = -\frac{x}{y}

Notice: the derivative depends on BOTH xx and yy. This is typical for implicit differentiation.

Worked Example 2: Folium of Descartes

Find dydx\frac{dy}{dx} for x3+y3=6xyx^3 + y^3 = 6xy

StepWork
Differentiate3x2+3y2dydx=6y+6xdydx3x^2 + 3y^2\frac{dy}{dx} = 6y + 6x\frac{dy}{dx}
Group dydx\frac{dy}{dx} terms3y2dydx−6xdydx=6y−3x23y^2\frac{dy}{dx} - 6x\frac{dy}{dx} = 6y - 3x^2
Factordydx(3y2−6x)=6y−3x2\frac{dy}{dx}(3y^2 - 6x) = 6y - 3x^2
Solvedydx=6y−3x23y2−6x=2y−x2y2−2x\frac{dy}{dx} = \frac{6y - 3x^2}{3y^2 - 6x} = \frac{2y - x^2}{y^2 - 2x}

AP Tip: Implicit differentiation appears frequently on the AP exam, especially when finding slopes of tangent lines to curves.

Practice Implicit Differentiation 🎯

Implicit Differentiation with Trig Functions

Example 3: sin⁡(y)=x\sin(y) = x

StepWork
Differentiatecos⁡(y)⋅dydx=1\cos(y) \cdot \frac{dy}{dx} = 1
Solvedydx=1cos⁡(y)=sec⁡(y)\frac{dy}{dx} = \frac{1}{\cos(y)} = \sec(y)

Key Fact: This is exactly how we derive the formula ddx[arcsin⁡(x)]=11−x2\frac{d}{dx}[\arcsin(x)] = \frac{1}{\sqrt{1-x^2}}. Since sin⁡(y)=x\sin(y) = x, we know cos⁡(y)=1−x2\cos(y) = \sqrt{1-x^2}.

Tangent Line Applications

Example 4: Find the slope of the tangent line to x2+xy+y2=7x^2 + xy + y^2 = 7 at (1,2)(1, 2).

StepWork
Differentiate2x+y+xdydx+2ydydx=02x + y + x\frac{dy}{dx} + 2y\frac{dy}{dx} = 0
Collect dydx\frac{dy}{dx}(x+2y)dydx=−2x−y(x + 2y)\frac{dy}{dx} = -2x - y
Solvedydx=−2x−yx+2y\frac{dy}{dx} = \frac{-2x - y}{x + 2y}
Plug in (1,2)(1,2)dydx=−2(1)−21+2(2)=−45\frac{dy}{dx} = \frac{-2(1) - 2}{1 + 2(2)} = \frac{-4}{5}

Tangent line: y−2=−45(x−1)\boxed{\text{Tangent line: } y - 2 = -\frac{4}{5}(x - 1)}

Which Rules Are Needed?

TermRule(s) Required
xnx^n termsPower Rule only
yny^n termsPower Rule + Chain Rule (dydx\frac{dy}{dx})
xyxy productsProduct Rule + Chain Rule
sin⁡(y)\sin(y), eye^y, etc.Chain Rule applied to yy

Implicit Differentiation Applications 🎯

Second Derivatives (Implicit)

On the AP exam, you may be asked to find d2ydx2\frac{d^2y}{dx^2} implicitly.

Example: For x2+y2=25x^2 + y^2 = 25, find d2ydx2\frac{d^2y}{dx^2}.

We already found dydx=−xy\frac{dy}{dx} = -\frac{x}{y}. Now differentiate again using quotient rule:

d2ydx2=ddx(−xy)=−y(1)−xdydxy2\frac{d^2y}{dx^2} = \frac{d}{dx}\left(-\frac{x}{y}\right) = -\frac{y(1) - x\frac{dy}{dx}}{y^2}

Substitute dydx=−xy\frac{dy}{dx} = -\frac{x}{y}:

=−y−x(−xy)y2=−y+x2yy2=−y2+x2yy2=−x2+y2y3= -\frac{y - x\left(-\frac{x}{y}\right)}{y^2} = -\frac{y + \frac{x^2}{y}}{y^2} = -\frac{\frac{y^2+x^2}{y}}{y^2} = -\frac{x^2+y^2}{y^3}

Since x2+y2=25x^2+y^2 = 25:

d2ydx2=−25y3\boxed{\frac{d^2y}{dx^2} = -\frac{25}{y^3}}

AP Tip: When finding d2ydx2\frac{d^2y}{dx^2}, substitute the original dydx\frac{dy}{dx} expression AND use the original equation to simplify. This is a common free-response technique.

Which differentiation rule is needed? 🔍

For each term (when differentiating with respect to xx), select the rule needed.

Implicit Differentiation computation. ✍️

Key Takeaways — Part 3

Every time you differentiate y, attach dydx\boxed{\text{Every time you differentiate } y, \text{ attach } \frac{dy}{dx}}

StepAction
1Differentiate both sides w.r.t. xx
2Chain Rule on every yy term
3Product Rule when xx and yy multiply
4Collect, factor, solve for dydx\frac{dy}{dx}

Common Errors:

  • Forgetting dydx\frac{dy}{dx} on yy terms
  • Missing the product rule on xyxy terms
  • Plugging in the point too early (always find general dydx\frac{dy}{dx} first)

Up Next: Part 4 — Related Rates (using implicit differentiation with respect to time).

Part 4: Related Rates Intro

🔗 Related Rates

Part 4 of 7 — Related Rates

What Are Related Rates?

In related rates problems, two or more quantities are changing with respect to time (tt), and they are connected by an equation. We use implicit differentiation (with respect to tt) to find how fast one quantity changes given information about the other.

Key Concept: Related Rates = Implicit Differentiation with respect to time instead of xx.

The Strategy

Draw→Equation→Differentiate (w.r.t. t)→Substitute→Solve\boxed{\text{Draw} \to \text{Equation} \to \text{Differentiate (w.r.t. } t\text{)} \to \text{Substitute} \to \text{Solve}}

StepActionDetails
1Draw a pictureLabel ALL changing quantities with variables
2Write an equationRelate the variables (geometry formulas, Pythagorean theorem, etc.)
3Differentiate w.r.t. ttEvery variable gets ddt\frac{d}{dt} (implicit diff)
4Substitute known valuesPlug in AFTER differentiating, never before!
5Solve for unknown rateAlgebra

AP Tip (Critical): NEVER substitute numerical values before differentiating. This is the #1 related rates mistake.

Worked Example 1: Expanding Circle

A stone is dropped in a pond. The circular ripple expands so that its radius increases at 22 ft/s. How fast is the area increasing when the radius is 55 ft?

StepWork
Knowndrdt=2\frac{dr}{dt} = 2 ft/s, r=5r = 5 ft
FinddAdt\frac{dA}{dt}
EquationA=πr2A = \pi r^2
DifferentiatedAdt=2πr⋅drdt\frac{dA}{dt} = 2\pi r \cdot \frac{dr}{dt}
SubstitutedAdt=2π(5)(2)=20π\frac{dA}{dt} = 2\pi(5)(2) = 20\pi ft2^2/s

Worked Example 2: Ladder Problem

A 13-ft ladder leans against a wall. The bottom slides away at 2 ft/s. How fast is the top sliding down when the bottom is 5 ft from the wall?

StepWork
Setupx2+y2=169x^2 + y^2 = 169
Knowndxdt=2\frac{dx}{dt} = 2 ft/s, x=5x = 5
Find yyy=169−25=12y = \sqrt{169 - 25} = 12
Differentiate2xdxdt+2ydydt=02x\frac{dx}{dt} + 2y\frac{dy}{dt} = 0
Substitute2(5)(2)+2(12)dydt=02(5)(2) + 2(12)\frac{dy}{dt} = 0
Solvedydt=−2024=−56\frac{dy}{dt} = -\frac{20}{24} = -\frac{5}{6} ft/s

The negative sign means the top is sliding down at 56\frac{5}{6} ft/s.


Worked Example 3: Conical Tank

Water drains from a conical tank (vertex down) at 22 ft3^3/min. The cone has radius 3 ft and height 6 ft. How fast is the water level dropping when the depth is 4 ft?

Similar triangles: rh=36=12\frac{r}{h} = \frac{3}{6} = \frac{1}{2}, so r=h2r = \frac{h}{2}.

StepWork
VolumeV=13πr2h=13π(h2)2h=πh312V = \frac{1}{3}\pi r^2 h = \frac{1}{3}\pi \left(\frac{h}{2}\right)^2 h = \frac{\pi h^3}{12}
DifferentiatedVdt=π4h2dhdt\frac{dV}{dt} = \frac{\pi}{4} h^2 \frac{dh}{dt}
Substitute−2=π4(16)dhdt-2 = \frac{\pi}{4}(16)\frac{dh}{dt}
Solvedhdt=−24π=−12π\frac{dh}{dt} = \frac{-2}{4\pi} = -\frac{1}{2\pi} ft/min

Solve These Related Rates Problems 🎯

Essential Geometry Formulas for Related Rates

ShapeFormulaDifferentiated
Circle areaA=πr2A = \pi r^2dAdt=2πrdrdt\frac{dA}{dt} = 2\pi r\frac{dr}{dt}
Circle circumferenceC=2πrC = 2\pi rdCdt=2πdrdt\frac{dC}{dt} = 2\pi \frac{dr}{dt}
Sphere volumeV=43πr3V = \frac{4}{3}\pi r^3dVdt=4πr2drdt\frac{dV}{dt} = 4\pi r^2\frac{dr}{dt}
Sphere surface areaS=4πr2S = 4\pi r^2dSdt=8πrdrdt\frac{dS}{dt} = 8\pi r\frac{dr}{dt}
Cone volumeV=13πr2hV = \frac{1}{3}\pi r^2 hProduct rule needed
Right trianglea2+b2=c2a^2 + b^2 = c^22adadt+2bdbdt=2cdcdt2a\frac{da}{dt} + 2b\frac{db}{dt} = 2c\frac{dc}{dt}
Rectangle areaA=lwA = lwdAdt=ldwdt+wdldt\frac{dA}{dt} = l\frac{dw}{dt} + w\frac{dl}{dt}

Common Related Rates Mistakes

MistakeWhy It's Wrong
Substituting values before differentiatingTurns variables into constants — derivative becomes 0
Forgetting to use similar trianglesEliminates a variable (e.g., replacing rr with h/2h/2)
Missing the negative signDecreasing quantities have negative rates
Using wrong formulaDouble-check: is it area, volume, or distance?

Advanced Related Rates 🎯

Related Rates Setup 🔍

Match each scenario with the correct geometric relationship.

Related Rates computation. ✍️

Key Takeaways — Part 4

Related Rates = Implicit Differentiation with respect to t\boxed{\text{Related Rates = Implicit Differentiation with respect to } t}

Problem TypeKey Formula
Expanding/contracting circleA=πr2A = \pi r^2
Sliding ladderx2+y2=L2x^2 + y^2 = L^2
Filling/draining coneV=13πr2hV = \frac{1}{3}\pi r^2 h + similar triangles
Balloon inflationV=43πr3V = \frac{4}{3}\pi r^3
Separating objectsd2=a2+b2d^2 = a^2 + b^2

Remember: Differentiate FIRST, substitute AFTER!

Up Next: Part 5 — Advanced Chain Rule Applications (Logarithmic Differentiation & Inverse Trig).

Part 5: Advanced Chain Rule Applications

🔗 Advanced Chain Rule Applications

Part 5 of 7 — Logarithmic Differentiation & Inverse Trig

Logarithmic Differentiation

For functions like y=xxy = x^x or y=(sin⁡x)cos⁡xy = (\sin x)^{\cos x}, standard rules fail because both the base AND exponent depend on xx. Logarithmic differentiation handles these:

Step 1: ln⁡(both sides)Step 2: SimplifyStep 3: Differentiate implicitlyStep 4: Solve for dydx\boxed{\text{Step 1: } \ln(\text{both sides}) \quad \text{Step 2: Simplify} \quad \text{Step 3: Differentiate implicitly} \quad \text{Step 4: Solve for } \frac{dy}{dx}}

Key Concept: When do you need log differentiation?

  • Variable base AND variable exponent: f(x)g(x)f(x)^{g(x)}
  • Products/quotients of many factors (to simplify)

When to Use Each Technique

SituationTechnique
[f(x)]n[f(x)]^n (constant exponent)Power Rule + Chain Rule
af(x)a^{f(x)} (constant base)af(x)ln⁡(a)⋅f′(x)a^{f(x)} \ln(a) \cdot f'(x)
f(x)g(x)f(x)^{g(x)} (both variable)Logarithmic Differentiation
Complex products/quotientsLogarithmic Differentiation (optional but easier)

Worked Example 1: ddxxx\frac{d}{dx}x^x

StepWork
Let y=xxy = x^xTake ln⁡\ln: ln⁡y=xln⁡x\ln y = x \ln x
Differentiate1ydydx=ln⁡x+x⋅1x=ln⁡x+1\frac{1}{y}\frac{dy}{dx} = \ln x + x \cdot \frac{1}{x} = \ln x + 1
Solvedydx=y(ln⁡x+1)=xx(ln⁡x+1)\frac{dy}{dx} = y(\ln x + 1) = x^x(\ln x + 1)

ddxxx=xx(ln⁡x+1)\boxed{\frac{d}{dx}x^x = x^x(\ln x + 1)}

Worked Example 2: Simplifying Complex Products

Find ddxx2x+1(2x−3)4\frac{d}{dx}\frac{x^2\sqrt{x+1}}{(2x-3)^4}

StepWork
Take ln⁡\lnln⁡y=2ln⁡x+12ln⁡(x+1)−4ln⁡(2x−3)\ln y = 2\ln x + \frac{1}{2}\ln(x+1) - 4\ln(2x-3)
Differentiatey′y=2x+12(x+1)−82x−3\frac{y'}{y} = \frac{2}{x} + \frac{1}{2(x+1)} - \frac{8}{2x-3}
Multiply by yyy′=x2x+1(2x−3)4(2x+12(x+1)−82x−3)y' = \frac{x^2\sqrt{x+1}}{(2x-3)^4}\left(\frac{2}{x} + \frac{1}{2(x+1)} - \frac{8}{2x-3}\right)

AP Tip: Log differentiation is rarely tested directly on AP Calc AB, but it's an important tool for AP Calc BC and is excellent for building understanding.

Logarithmic Differentiation 🎯

Chain Rule with Inverse Trig Functions

The inverse trig derivatives all require the Chain Rule when the argument is a composite:

FunctionDerivative (with Chain Rule)
arcsin⁡(u)\arcsin(u)u′1−u2\frac{u'}{\sqrt{1-u^2}}
arccos⁡(u)\arccos(u)−u′1−u2\frac{-u'}{\sqrt{1-u^2}}
arctan⁡(u)\arctan(u)u′1+u2\frac{u'}{1+u^2}
arccot(u)\text{arccot}(u)−u′1+u2\frac{-u'}{1+u^2}
arcsec(u)\text{arcsec}(u)$\frac{u'}{
arccsc(u)\text{arccsc}(u)$\frac{-u'}{

Key Fact: On the AP exam, arctan⁡\arctan is the most commonly tested inverse trig function. Know its derivative cold.

Worked Examples

Example 3: ddxarctan⁡(3x)=31+(3x)2=31+9x2\frac{d}{dx}\arctan(3x) = \frac{3}{1+(3x)^2} = \frac{3}{1+9x^2}

Example 4: ddxarcsin⁡(x2)=2x1−(x2)2=2x1−x4\frac{d}{dx}\arcsin(x^2) = \frac{2x}{\sqrt{1-(x^2)^2}} = \frac{2x}{\sqrt{1-x^4}}

Example 5: ddxarctan⁡(ex)=ex1+(ex)2=ex1+e2x\frac{d}{dx}\arctan(e^x) = \frac{e^x}{1+(e^x)^2} = \frac{e^x}{1+e^{2x}}

Inverse Trig Derivatives 🎯

Match the derivative technique 🔍

For each function, select the best approach.

Inverse trig computation. ✍️

Key Takeaways — Part 5

TechniqueWhen to UseFormula
Log Differentiationf(x)g(x)f(x)^{g(x)}ln⁡\ln both sides → implicit diff
Inverse Trig + Chain Rulearcsin⁡(u)\arcsin(u), arctan⁡(u)\arctan(u), etc.Standard formulas × u′u'
Exponential (af(x)a^{f(x)})Constant baseaf(x)ln⁡(a)⋅f′(x)a^{f(x)} \ln(a) \cdot f'(x)

ddx[arctan⁡(u)]=u′1+u2ddx[arcsin⁡(u)]=u′1−u2\boxed{\frac{d}{dx}[\arctan(u)] = \frac{u'}{1+u^2} \qquad \frac{d}{dx}[\arcsin(u)] = \frac{u'}{\sqrt{1-u^2}}}

Up Next: Part 6 — Problem-Solving Workshop with mixed Chain Rule problems.

Part 6: Mixed Chain Rule Problems

🔗 Problem-Solving Workshop

Part 6 of 7 — Mixed Chain Rule Problems

Decision Framework

Every derivative problem begins with the same question: What is the outermost operation?

Identify outermost operation→Apply rule→Chain Rule for inner layers\boxed{\text{Identify outermost operation} \to \text{Apply rule} \to \text{Chain Rule for inner layers}}

Outermost OperationPrimary RuleThen Apply
Sum/differenceSum RuleChain Rule to each term
Product f⋅gf \cdot gProduct RuleChain Rule inside each factor
Quotient f/gf/gQuotient RuleChain Rule inside each part
Composition f(g(x))f(g(x))Chain Rule directlyContinue peeling layers

Key Strategy: Work from the OUTSIDE IN. The outermost operation determines which rule to start with.

Combining Chain Rule with Other Rules

Example 1: Product + Chain

ddx[x2sin⁡(3x)]=2xsin⁡(3x)+x2⋅cos⁡(3x)⋅3=2xsin⁡(3x)+3x2cos⁡(3x)\frac{d}{dx}[x^2 \sin(3x)] = 2x\sin(3x) + x^2 \cdot \cos(3x) \cdot 3 = 2x\sin(3x) + 3x^2\cos(3x)

Example 2: Quotient + Chain

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

Example 3: Chain on ln⁡\ln

ddx[ln⁡(cos⁡x)]=−sin⁡xcos⁡x=−tan⁡x\frac{d}{dx}[\ln(\cos x)] = \frac{-\sin x}{\cos x} = -\tan x

Important: ddxsin⁡xex\frac{d}{dx}\frac{\sin x}{e^x} (Shortcut)

ddx[sin⁡xex]=ddx[sin⁡x⋅e−x]=cos⁡x⋅e−x+sin⁡x⋅(−e−x)=cos⁡x−sin⁡xex\frac{d}{dx}\left[\frac{\sin x}{e^x}\right] = \frac{d}{dx}[\sin x \cdot e^{-x}] = \cos x \cdot e^{-x} + \sin x \cdot (-e^{-x}) = \frac{\cos x - \sin x}{e^x}

AP Tip: Sometimes rewriting f(x)ex\frac{f(x)}{e^x} as f(x)⋅e−xf(x) \cdot e^{-x} and using Product Rule is easier than Quotient Rule.

AP-Style Problems — Set 1 🎯

Table-Based Chain Rule Problems

On the AP exam, you may be given a table of values and asked to compute a composite function's derivative.

Key Fact: If h(x)=f(g(x))h(x) = f(g(x)), then h′(a)=f′(g(a))⋅g′(a)h'(a) = f'(g(a)) \cdot g'(a). You need: g(a)g(a) from the table, then f′f' at that value, then g′(a)g'(a).

xxf(x)f(x)f′(x)f'(x)g(x)g(x)g′(x)g'(x)
13−2-224
2511−3-3
3−1-1632

Example: Find h′(1)h'(1) where h(x)=f(g(x))h(x) = f(g(x)).

h′(1)=f′(g(1))⋅g′(1)=f′(2)⋅4=1⋅4=4h'(1) = f'(g(1)) \cdot g'(1) = f'(2) \cdot 4 = 1 \cdot 4 = 4

Example: Find k′(2)k'(2) where k(x)=g(f(x))k(x) = g(f(x)).

k′(2)=g′(f(2))⋅f′(2)=g′(5)⋅1k'(2) = g'(f(2)) \cdot f'(2) = g'(5) \cdot 1

But g′(5)g'(5) is not in the table — insufficient information!

AP Tip: Always check that the required values are in the table before computing. If g(a)g(a) gives a value not in the table, you can't find f′(g(a))f'(g(a)).

Table-Based & Mixed Problems 🎯

Use the table from the previous section.

Subtle Distinctions

These look similar but have very different derivatives:

FunctionDerivativeRule Used
(5x)3=125x3(5x)^3 = 125x^3375x2375x^2Chain Rule (or expand)
5x35x^315x215x^2Constant Multiple
5x5^x5xln⁡55^x \ln 5Exponential
x5x^55x45x^4Power Rule
53=1255^3 = 12500Constant

Key Principle: Know the difference between: constant exponent (Power Rule), constant base (Exponential Rule), both variable (Log Differentiation).

FTC Part 1 + Chain Rule

ddx∫ag(x)f(t) dt=f(g(x))⋅g′(x)\boxed{\frac{d}{dx}\int_a^{g(x)} f(t)\,dt = f(g(x)) \cdot g'(x)}

Example: ddx∫0x2sin⁡(t) dt=sin⁡(x2)⋅2x=2xsin⁡(x2)\frac{d}{dx}\int_0^{x^2} \sin(t)\,dt = \sin(x^2) \cdot 2x = 2x\sin(x^2)

Identify the correct derivative 🔍

Match each function to its derivative.

Table-based Chain Rule computation. ✍️

Workshop Complete!

SkillPracticed
Product Rule + Chain Rulex2sin⁡(3x)x^2\sin(3x)
Quotient Rule + Chain Rulee2xx+1\frac{e^{2x}}{x+1}
Chain on logarithmsln⁡(cos⁡x)=−tan⁡x\ln(\cos x) = -\tan x
Table-based derivativesh(x)=f(g(x))h(x) = f(g(x))
FTC + Chain Ruleddx∫0g(x)f(t) dt\frac{d}{dx}\int_0^{g(x)} f(t)\,dt
Subtle distinctions(5x)3(5x)^3 vs 5x35x^3 vs 5x5^x

Up Next: Part 7 — Comprehensive Review & Final Assessment.

Part 7: Chain Rule Review

🔗 Chain Rule — Comprehensive Review

Part 7 of 7 — Review & Final Assessment

Complete Chain Rule Summary

ddx[f(g(x))]=f′(g(x))⋅g′(x)\boxed{\frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x)}

ScenarioTechniqueKey Formula
Basic compositionChain Rulef′(g(x))⋅g′(x)f'(g(x)) \cdot g'(x)
Nested (3+ layers)Repeated Chain RuleMultiply ALL layer derivatives
Implicit (yy as fn of xx)Implicit DifferentiationAttach dydx\frac{dy}{dx} to every yy term
Rates changing w.r.t. timeRelated RatesDifferentiate w.r.t. tt
f(x)g(x)f(x)^{g(x)}Log Differentiationln⁡\ln both sides → implicit diff
arcsin⁡(u)\arcsin(u), arctan⁡(u)\arctan(u)Inverse Trig + ChainStandard formula ×u′\times u'
FTC Part 1FTC + Chainf(g(x))⋅g′(x)f(g(x)) \cdot g'(x)

AP Exam Frequency

Key Fact: The Chain Rule appears in ~80% of all derivative problems on the AP exam. It is embedded in:

  • All implicit differentiation problems
  • All related rates problems
  • FTC Part 1 with variable upper limit
  • Most trig, exponential, and logarithmic derivatives

Quick Reference — All Chain Rule Patterns

FunctionDerivative
[g(x)]n[g(x)]^nn[g(x)]n−1⋅g′(x)n[g(x)]^{n-1} \cdot g'(x)
sin⁡(g(x))\sin(g(x))cos⁡(g(x))⋅g′(x)\cos(g(x)) \cdot g'(x)
cos⁡(g(x))\cos(g(x))−sin⁡(g(x))⋅g′(x)-\sin(g(x)) \cdot g'(x)
tan⁡(g(x))\tan(g(x))sec⁡2(g(x))⋅g′(x)\sec^2(g(x)) \cdot g'(x)
eg(x)e^{g(x)}eg(x)⋅g′(x)e^{g(x)} \cdot g'(x)
ag(x)a^{g(x)}ag(x)ln⁡(a)⋅g′(x)a^{g(x)} \ln(a) \cdot g'(x)
ln⁡(g(x))\ln(g(x))g′(x)g(x)\frac{g'(x)}{g(x)}
arcsin⁡(g(x))\arcsin(g(x))g′(x)1−[g(x)]2\frac{g'(x)}{\sqrt{1-[g(x)]^2}}
arctan⁡(g(x))\arctan(g(x))g′(x)1+[g(x)]2\frac{g'(x)}{1+[g(x)]^2}

Common Errors to Avoid

ErrorExampleCorrect
Forgetting inner derivativeddxsin⁡(3x)=cos⁡(3x)\frac{d}{dx}\sin(3x) = \cos(3x)3cos⁡(3x)3\cos(3x)
Confusing constant vs variable exponentTreating 2x2^x like x2x^22xln⁡22^x\ln 2 vs 2x2x
Missing Product Ruleddx[xsin⁡(x)]=cos⁡(x)\frac{d}{dx}[x\sin(x)] = \cos(x)sin⁡(x)+xcos⁡(x)\sin(x) + x\cos(x)
Forgetting dydx\frac{dy}{dx} in implicit2y2y instead of 2ydydx2y\frac{dy}{dx}Always attach dydx\frac{dy}{dx}
Substituting before differentiatingIn related ratesAlways differentiate first

Comprehensive Assessment — Part A 🎯

No hints — test your mastery.

Comprehensive Assessment — Part B 🎯

FTC Part 1 + Chain Rule

This is one of the most important AP Calculus formulas:

ddx∫ag(x)f(t) dt=f(g(x))⋅g′(x)\boxed{\frac{d}{dx}\int_a^{g(x)} f(t)\,dt = f(g(x)) \cdot g'(x)}

Example 1: ddx∫0x2sin⁡(t) dt=sin⁡(x2)⋅2x=2xsin⁡(x2)\frac{d}{dx}\int_0^{x^2} \sin(t)\,dt = \sin(x^2) \cdot 2x = 2x\sin(x^2)

Example 2: ddx∫1ex1t dt=1ex⋅ex=1\frac{d}{dx}\int_1^{e^x} \frac{1}{t}\,dt = \frac{1}{e^x} \cdot e^x = 1

Example 3: Both limits variable:

ddx∫xx2t3 dt=(x2)3⋅2x−x3⋅1=2x7−x3\frac{d}{dx}\int_{x}^{x^2} t^3\,dt = (x^2)^3 \cdot 2x - x^3 \cdot 1 = 2x^7 - x^3

AP Tip: FTC + Chain Rule appears on nearly every AP exam. The key is: "plug in the upper limit for tt, then multiply by the derivative of that upper limit."

Final Matching 🔍

Select the correct derivative.

Final Challenge ✍️

Chain Rule — Complete! ✅

TopicMastered
Basic Chain Rulef′(g(x))⋅g′(x)f'(g(x)) \cdot g'(x)
Nested FunctionsMultiply all layer derivatives
Implicit DifferentiationAttach dydx\frac{dy}{dx} to yy terms
Related RatesDifferentiate w.r.t. tt
Log Differentiationln⁡\ln both sides for f(x)g(x)f(x)^{g(x)}
Inverse Trig + ChainStandard formulas ×u′\times u'
FTC + Chain Rulef(g(x))⋅g′(x)f(g(x)) \cdot g'(x)
Table-Based ProblemsLook up g(a)g(a), then f′(g(a))f'(g(a))

The Chain Rule is the single most important differentiation technique. You are now ready to tackle any derivative problem on the AP exam!