Welcome to the Chain Rule — arguably the most important differentiation rule in calculus!
Part
Topic
1
Chain Rule Basics
2
Nested Functions & Double Chain Rule
3
Implicit Differentiation
4
Related Rates
5
Advanced Applications
6
Problem-Solving Workshop
7
Comprehensive Review
Why Do We Need the Chain Rule?
So far, you can differentiate functions like x3, sinx, or ex. But what about composite functions — functions inside other functions?
(3x+1)5 — expanding this is painful
sin(x2) — can't use basic trig rule directly
e3x — the exponent isn't just x
The Chain Rule handles ALL of these.
The Chain Rule Formula
dxd[f(g(x))]=f′(g(x))⋅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) where u=g(x), then:
dxdy=dudy⋅dxdu
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 dxd(3x+1)5
Step
Work
Identify layers
Outer: u5, Inner: u=3x+1
Differentiate outer
5u4=5(3x+1)4
Differentiate inner
dxd(3x+1)=3
Multiply
5(3x+1)4⋅3=15(3x+1)4
Example 2: Find dxdsin(x2)
Step
Work
Identify layers
Outer: sin(u), Inner: u=x2
Differentiate outer
cos(u)=cos(x2)
Differentiate inner
dxd(x2)=2x
Multiply
cos(x2)⋅2x=2xcos(x2)
Example 3: Find dxdx2+1
Rewrite: x2+1=(x2+1)1/2
Step
Work
Outer derivative
21(x2+1)−1/2
Inner derivative
2x
Chain Rule
21(x2+1)−1/2⋅2x=x2+1x
Example 4: Find dxde−x2
Step
Work
Outer: eu
e−x2 (unchanged)
Inner: u=−x2
−2x
Chain Rule
e−x2⋅(−2x)=−2xe−x2
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.
Function
Without Chain Rule
With Chain Rule
un
nxn−1
n[g(x)]n−1⋅g′(x)
sinu
cosx
cos(g(x))⋅g′(x)
cosu
−sinx
−sin(g(x))⋅g′(x)
tanu
sec2x
sec2(g(x))⋅g′(x)
eu
ex
eg(x)⋅g′(x)
lnu
x1
g(x)g′(x)
The "Stuff" Method (Quick Shorthand)
Replace the inner function with "stuff":
Function
Derivative ("stuff" method)
(stuff)n
n(stuff)n−1⋅(stuff)′
sin(stuff)
cos(stuff)⋅(stuff)′
estuff
estuff⋅(stuff)′
ln(stuff)
stuff(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
dxd[f(g(x))]=f′(g(x))⋅g′(x)
Function Type
Derivative Pattern
(stuff)n
n(stuff)n−1⋅(stuff)′
sin(stuff)
cos(stuff)⋅(stuff)′
cos(stuff)
−sin(stuff)⋅(stuff)′
estuff
estuff⋅(stuff)′
ln(stuff)
stuff(stuff)′
The #1 Chain Rule mistake: Forgetting the inner derivative. ALWAYS multiply by 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)=sin2(3x)=[sin(3x)]2
Here we have three layers:
Outermost:u2
Middle:sin(v)
Innermost:v=3x
The general formula for nested compositions:
dxd[f(g(h(x)))]=f′(g(h(x)))⋅g′(h(x))⋅h′(x)
Key Concept: Each layer contributes one factor. Count layers = count factors in the derivative.
Worked Examples — Layer-by-Layer
Example 1:dxd[sin(3x)]2
Layer
Function
Derivative
Outer
u2
2u=2sin(3x)
Middle
sin(v)
cos(v)=cos(3x)
Inner
3x
3
Result
2sin(3x)⋅cos(3x)⋅3=6sin(3x)cos(3x)
Bonus: By the double-angle identity, 6sin(3x)cos(3x)=3sin(6x).
Example 2:dxdecos(2x)
Layer
Function
Derivative
Outer
eu
ecos(2x)
Middle
cos(v)
−sin(2x)
Inner
2x
2
Result
−2sin(2x)ecos(2x)
Example 3:dxdlnx=dxd(lnx)1/2
Layer
Derivative
(⋅)1/2
21(lnx)−1/2
lnx
x1
Result
2xlnx1
Example 4:dxdsin3(2x+1)=dxd[sin(2x+1)]3
Layer
Derivative
u3
3[sin(2x+1)]2
sin(v)
cos(2x+1)
2x+1
2
Result
6sin2(2x+1)cos(2x+1)
AP Tip: Students commonly write 2sin(3x)cos(3x) for dxdsin2(3x) — forgetting the factor of 3 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.
Function
Layers
Chain Rule Applications
sin(x)
1
0
sin(5x)
2 (sin, 5x)
1
sin2(5x)
3 (square, sin, 5x)
2
esin2(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.
Common Nested Patterns on the AP Exam
Pattern
Derivative
sinn(ax)
nasinn−1(ax)cos(ax)
ef(x)2
2f(x)f′(x)ef(x)2
ln(f(g(x)))
f(g(x))g′(x)⋅f′(g(x))
[f(g(x))]n
n[f(g(x))]n−1⋅f′(g(x))⋅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
dxd[f(g(h(x)))]=f′(g(h(x)))⋅g′(h(x))⋅h′(x)
Mistake
Correct Approach
Stop after first layer
Multiply ALL layer derivatives
Confuse order of layers
Work outside → in
Forget innermost derivative
Always check the innermost layer
Differentiate the inner function
Leave 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 x and y is not solved for y. For example:
x2+y2=25
This is a circle. We cannot easily write y as a single function of x. But we can still find dxdy using the Chain Rule.
The Key Idea
Differentiate both sides with respect to x. Every time you differentiate y, multiply by dxdy.
Why? Because y is implicitly a function of x, so:
dxd[yn]=nyn−1⋅dxdy
Key Concept: Implicit differentiation is just the Chain Rule applied to y, treating y as a function of x.
Step-by-Step Method
Step
Action
1
Differentiate every term with respect to x
2
Apply Chain Rule to any term with y (attach dxdy)
3
Use Product/Quotient Rule when x and y are multiplied/divided
4
Collect all dxdy terms on one side
5
Factor out dxdy
6
Solve for dxdy
Worked Example 1: Circle
Finddxdy for x2+y2=25
Step
Work
Differentiate both sides
2x+2ydxdy=0
Isolate
2ydxdy=−2x
Solve
dxdy=−yx
Notice: the derivative depends on BOTH x and y. This is typical for implicit differentiation.
Worked Example 2: Folium of Descartes
Finddxdy for x3+y3=6xy
Step
Work
Differentiate
3x2+3y2dxdy=6y+6xdxdy
Group dxdy terms
3y2dxdy−6xdxdy=6y−3x2
Factor
dxdy(3y2−6x)=6y−3x2
Solve
dxdy=3y2−6x6y−3x2=y2−2x2y−x2
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
Step
Work
Differentiate
cos(y)⋅dxdy=1
Solve
dxdy=cos(y)1=sec(y)
Key Fact: This is exactly how we derive the formula dxd[arcsin(x)]=1−x21. Since sin(y)=x, we know cos(y)=1−x2.
Tangent Line Applications
Example 4: Find the slope of the tangent line to x2+xy+y2=7 at (1,2).
Step
Work
Differentiate
2x+y+xdxdy+2ydxdy=0
Collect dxdy
(x+2y)dxdy=−2x−y
Solve
dxdy=x+2y−2x−y
Plug in (1,2)
dxdy=1+2(2)−2(1)−2=5−4
Tangent line: y−2=−54(x−1)
Which Rules Are Needed?
Term
Rule(s) Required
xn terms
Power Rule only
yn terms
Power Rule + Chain Rule (dxdy)
xy products
Product Rule + Chain Rule
sin(y), ey, etc.
Chain Rule applied to y
Implicit Differentiation Applications 🎯
Second Derivatives (Implicit)
On the AP exam, you may be asked to find dx2d2y implicitly.
Example: For x2+y2=25, find dx2d2y.
We already found dxdy=−yx. Now differentiate again using quotient rule:
dx2d2y=dxd(−yx)=−y2y(1)−xdxdy
Substitute dxdy=−yx:
=−y2y−x(−yx)=−y2y+yx2=−y2yy2+x2=−y3x2+y2
Since x2+y2=25:
dx2d2y=−y325
AP Tip: When finding dx2d2y, substitute the original dxdy 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 x), select the rule needed.
Implicit Differentiation computation. ✍️
Key Takeaways — Part 3
Every time you differentiate y, attach dxdy
Step
Action
1
Differentiate both sides w.r.t. x
2
Chain Rule on every y term
3
Product Rule when x and y multiply
4
Collect, factor, solve for dxdy
Common Errors:
Forgetting dxdy on y terms
Missing the product rule on xy terms
Plugging in the point too early (always find general dxdy 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 (t), and they are connected by an equation. We use implicit differentiation (with respect to t) to find how fast one quantity changes given information about the other.
Key Concept: Related Rates = Implicit Differentiation with respect to time instead of x.
Relate the variables (geometry formulas, Pythagorean theorem, etc.)
3
Differentiate w.r.t. t
Every variable gets dtd (implicit diff)
4
Substitute known values
Plug in AFTER differentiating, never before!
5
Solve for unknown rate
Algebra
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 2 ft/s. How fast is the area increasing when the radius is 5 ft?
Step
Work
Known
dtdr=2 ft/s, r=5 ft
Find
dtdA
Equation
A=πr2
Differentiate
dtdA=2πr⋅dtdr
Substitute
dtdA=2π(5)(2)=20π ft2/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?
Step
Work
Setup
x2+y2=169
Known
dtdx=2 ft/s, x=5
Find y
y=169−25=12
Differentiate
2xdtdx+2ydtdy=0
Substitute
2(5)(2)+2(12)dtdy=0
Solve
dtdy=−2420=−65 ft/s
The negative sign means the top is sliding down at 65 ft/s.
Worked Example 3: Conical Tank
Water drains from a conical tank (vertex down) at 2 ft3/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: hr=63=21, so r=2h.
Step
Work
Volume
V=31πr2h=31π(2h)2h=12πh3
Differentiate
dtdV=4πh2dtdh
Substitute
−2=4π(16)dtdh
Solve
dtdh=4π−2=−2π1 ft/min
Solve These Related Rates Problems 🎯
Essential Geometry Formulas for Related Rates
Shape
Formula
Differentiated
Circle area
A=πr2
dtdA=2πrdtdr
Circle circumference
C=2πr
dtdC=2πdtdr
Sphere volume
V=34πr3
dtdV=4πr2dtdr
Sphere surface area
S=4πr2
dtdS=8πrdtdr
Cone volume
V=31πr2h
Product rule needed
Right triangle
a2+b2=c2
2adtda+2bdtdb=2cdtdc
Rectangle area
A=lw
dtdA=ldtdw+wdtdl
Common Related Rates Mistakes
Mistake
Why It's Wrong
Substituting values before differentiating
Turns variables into constants — derivative becomes 0
Forgetting to use similar triangles
Eliminates a variable (e.g., replacing r with h/2)
Missing the negative sign
Decreasing quantities have negative rates
Using wrong formula
Double-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
Problem Type
Key Formula
Expanding/contracting circle
A=πr2
Sliding ladder
x2+y2=L2
Filling/draining cone
V=31πr2h + similar triangles
Balloon inflation
V=34πr3
Separating objects
d2=a2+b2
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=xx or y=(sinx)cosx, standard rules fail because both the base AND exponent depend on x. Logarithmic differentiation handles these:
Key Concept: When do you need log differentiation?
Variable base AND variable exponent: f(x)g(x)
Products/quotients of many factors (to simplify)
When to Use Each Technique
Situation
Technique
[f(x)]n (constant exponent)
Power Rule + Chain Rule
af(x) (constant base)
af(x)ln(a)⋅f′(x)
f(x)g(x) (both variable)
Logarithmic Differentiation
Complex products/quotients
Logarithmic Differentiation (optional but easier)
Worked Example 1: dxdxx
Step
Work
Let y=xx
Take ln: lny=xlnx
Differentiate
y1dxdy=lnx+x⋅x1=lnx+1
Solve
dxdy=y(lnx+1)=xx(lnx+1)
dxdxx=xx(lnx+1)
Worked Example 2: Simplifying Complex Products
Finddxd(2x−3)4x2x+1
Step
Work
Take ln
lny=2lnx+21ln(x+1)−4ln(2x−3)
Differentiate
yy′=x2+2(x+1)1−2x−38
Multiply by y
y′=(2x−3)4x2x+1(x2+2(x+1)1−2x−38)
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:
Function
Derivative (with Chain Rule)
arcsin(u)
1−u2u′
arccos(u)
1−u2−u′
arctan(u)
1+u2u′
arccot(u)
1+u2−u′
arcsec(u)
$\frac{u'}{
arccsc(u)
$\frac{-u'}{
Key Fact: On the AP exam, arctan is the most commonly tested inverse trig function. Know its derivative cold.
Worked Examples
Example 3:dxdarctan(3x)=1+(3x)23=1+9x23
Example 4:dxdarcsin(x2)=1−(x2)22x=1−x42x
Example 5:dxdarctan(ex)=1+(ex)2ex=1+e2xex
Inverse Trig Derivatives 🎯
Match the derivative technique 🔍
For each function, select the best approach.
Inverse trig computation. ✍️
Key Takeaways — Part 5
Technique
When to Use
Formula
Log Differentiation
f(x)g(x)
ln both sides → implicit diff
Inverse Trig + Chain Rule
arcsin(u), arctan(u), etc.
Standard formulas × u′
Exponential (af(x))
Constant base
af(x)ln(a)⋅f′(x)
dxd[arctan(u)]=1+u2u′dxd[arcsin(u)]=1−u2u′
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
Outermost Operation
Primary Rule
Then Apply
Sum/difference
Sum Rule
Chain Rule to each term
Product f⋅g
Product Rule
Chain Rule inside each factor
Quotient f/g
Quotient Rule
Chain Rule inside each part
Composition f(g(x))
Chain Rule directly
Continue peeling layers
Key Strategy: Work from the OUTSIDE IN. The outermost operation determines which rule to start with.
AP Tip: Sometimes rewriting exf(x) as f(x)⋅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)), then h′(a)=f′(g(a))⋅g′(a). You need: g(a) from the table, then f′ at that value, then g′(a).
x
f(x)
f′(x)
g(x)
g′(x)
1
3
−2
2
4
2
5
1
1
−3
3
−1
6
3
2
Example: Find h′(1) where h(x)=f(g(x)).
h′(1)=f′(g(1))⋅g′(1)=f′(2)⋅4=1⋅4=4
Example: Find k′(2) where k(x)=g(f(x)).
k′(2)=g′(f(2))⋅f′(2)=g′(5)⋅1
But 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) gives a value not in the table, you can't find f′(g(a)).
Table-Based & Mixed Problems 🎯
Use the table from the previous section.
Subtle Distinctions
These look similar but have very different derivatives:
Function
Derivative
Rule Used
(5x)3=125x3
375x2
Chain Rule (or expand)
5x3
15x2
Constant Multiple
5x
5xln5
Exponential
x5
5x4
Power Rule
53=125
0
Constant
Key Principle: Know the difference between: constant exponent (Power Rule), constant base (Exponential Rule), both variable (Log Differentiation).
FTC Part 1 + Chain Rule
dxd∫ag(x)f(t)dt=f(g(x))⋅g′(x)
Example:dxd∫0x2sin(t)dt=sin(x2)⋅2x=2xsin(x2)
Identify the correct derivative 🔍
Match each function to its derivative.
Table-based Chain Rule computation. ✍️
Workshop Complete!
Skill
Practiced
Product Rule + Chain Rule
x2sin(3x)
Quotient Rule + Chain Rule
x+1e2x
Chain on logarithms
ln(cosx)=−tanx
Table-based derivatives
h(x)=f(g(x))
FTC + Chain Rule
dxd∫0g(x)f(t)dt
Subtle distinctions
(5x)3 vs 5x3 vs 5x
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
dxd[f(g(x))]=f′(g(x))⋅g′(x)
Scenario
Technique
Key Formula
Basic composition
Chain Rule
f′(g(x))⋅g′(x)
Nested (3+ layers)
Repeated Chain Rule
Multiply ALL layer derivatives
Implicit (y as fn of x)
Implicit Differentiation
Attach dxdy to every y term
Rates changing w.r.t. time
Related Rates
Differentiate w.r.t. t
f(x)g(x)
Log Differentiation
ln both sides → implicit diff
arcsin(u), arctan(u)
Inverse Trig + Chain
Standard formula ×u′
FTC Part 1
FTC + Chain
f(g(x))⋅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
Function
Derivative
[g(x)]n
n[g(x)]n−1⋅g′(x)
sin(g(x))
cos(g(x))⋅g′(x)
cos(g(x))
−sin(g(x))⋅g′(x)
tan(g(x))
sec2(g(x))⋅g′(x)
eg(x)
eg(x)⋅g′(x)
ag(x)
ag(x)ln(a)⋅g′(x)
ln(g(x))
g(x)g′(x)
arcsin(g(x))
1−[g(x)]2g′(x)
arctan(g(x))
1+[g(x)]2g′(x)
Common Errors to Avoid
Error
Example
Correct
Forgetting inner derivative
dxdsin(3x)=cos(3x)
3cos(3x)
Confusing constant vs variable exponent
Treating 2x like x2
2xln2 vs 2x
Missing Product Rule
dxd[xsin(x)]=cos(x)
sin(x)+xcos(x)
Forgetting dxdy in implicit
2y instead of 2ydxdy
Always attach dxdy
Substituting before differentiating
In related rates
Always 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:
dxd∫ag(x)f(t)dt=f(g(x))⋅g′(x)
Example 1:dxd∫0x2sin(t)dt=sin(x2)⋅2x=2xsin(x2)
Example 2:dxd∫1ext1dt=ex1⋅ex=1
Example 3: Both limits variable:
dxd∫xx2t3dt=(x2)3⋅2x−x3⋅1=2x7−x3
AP Tip: FTC + Chain Rule appears on nearly every AP exam. The key is: "plug in the upper limit for t, then multiply by the derivative of that upper limit."
Final Matching 🔍
Select the correct derivative.
Final Challenge ✍️
Chain Rule — Complete! ✅
Topic
Mastered
Basic Chain Rule
f′(g(x))⋅g′(x)
Nested Functions
Multiply all layer derivatives
Implicit Differentiation
Attach dxdy to y terms
Related Rates
Differentiate w.r.t. t
Log Differentiation
ln both sides for f(x)g(x)
Inverse Trig + Chain
Standard formulas ×u′
FTC + Chain Rule
f(g(x))⋅g′(x)
Table-Based Problems
Look up g(a), then 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!