4.1.16Calculus I — Limits & Derivatives

Chain rule — proof, composite function derivatives

1,561 words7 min readdifficulty · medium6 backlinks

WHAT is the chain rule?

The Leibniz form makes the multiplication look like cancelling fractions — that's a mnemonic, not a proof (they are not literal fractions).

Figure — Chain rule — proof, composite function derivatives

HOW we derive it (from first principles)

Rigorous fix (the increment / "error function" method)


Worked examples


Recall Feynman: explain to a 12-year-old

Imagine a bike with two gears connected. You pedal a little (that's xx). The first gear turns 3× as fast as your pedals. The second gear turns 5× as fast as the first. So the back wheel turns 5×3=155\times 3 = 15 times as fast as your feet. The chain rule just says: to get the total speed-up, multiply the speed-ups of each gear. f(g(x))f'(g(x)) is the second gear's ratio, g(x)g'(x) is the first gear's ratio.

Flashcards

What is the chain rule for h=f(g(x))h=f(g(x))?
h(x)=f(g(x))g(x)h'(x)=f'(g(x))\,g'(x).
State the chain rule in Leibniz notation.
dydx=dydududx\dfrac{dy}{dx}=\dfrac{dy}{du}\cdot\dfrac{du}{dx} with u=g(x)u=g(x).
Why can't we just multiply/divide by Δu\Delta u in the proof?
Δu=g(x+Δx)g(x)\Delta u=g(x+\Delta x)-g(x) can be 00 even when Δx0\Delta x\neq0, making the division undefined.
What property of gg guarantees Δu0\Delta u\to0 as Δx0\Delta x\to0?
Differentiability of gg implies continuity of gg.
In the rigorous proof, what is E(k)E(k) and why is it used?
The error E(k)=f(u+k)f(u)kf(u)E(k)=\frac{f(u+k)-f(u)}{k}-f'(u) (with E(0)=0E(0)=0); it lets us multiply instead of divide, avoiding Δu=0\Delta u=0.
Differentiate sin(x2)\sin(x^2).
2xcos(x2)2x\cos(x^2).
Differentiate esinxe^{\sin x}.
esinxcosxe^{\sin x}\cos x.
Differentiate (3x2+1)5(3x^2+1)^5.
30x(3x2+1)430x(3x^2+1)^4.
For triple nesting, how many factors appear?
One per layer; multiply all layer-derivatives, evaluating each outer at the relevant inner value.
Common slip when differentiating sin(x2)\sin(x^2)?
Writing cos(2x)\cos(2x) — you must keep the inside intact: cos(x2)\cos(x^2), then multiply by 2x2x.

Connections

  • Derivative — limit definition — the chain rule is built directly from the difference-quotient limit.
  • Continuity implies differentiability fails converse — we use "differentiable ⇒ continuous" for gg.
  • Product rule and Quotient rule — sibling differentiation rules; often combined with the chain rule.
  • Implicit differentiation — is literally the chain rule applied to y(x)y(x).
  • Related rates — physical applications where dydt=dydxdxdt\frac{dy}{dt}=\frac{dy}{dx}\frac{dx}{dt}.
  • Inverse function derivative — derived by chain-ruling f(f1(x))=xf(f^{-1}(x))=x.

Concept Map

wiggle amplified in sequence

rates multiply

states

Leibniz form

looks like but is not

start of proof

multiply and divide by delta u

fails when delta u = 0

fixed by

continuous at 0

yields

Composite f of g x

Gear-ratio intuition

Chain rule

h' = f' of g x times g' x

dy/dx = dy/du times du/dx

Fraction cancelling mnemonic

Derivative definition limit

Difference quotient of h

Naive split

Division-by-zero gap

Error function E k

Rigorous derivation

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, chain rule ka core idea bahut simple hai: jab ek function doosre function ke andar baitha ho — jaise sin(x2)\sin(x^2) — toh hum use "machine feeding machine" ki tarah sochte hain. Pehle inner machine g(x)=x2g(x)=x^2 apna kaam karti hai, uska rate hota hai g(x)=2xg'(x)=2x. Phir outer machine sin\sin uske upar kaam karti hai, uska rate hota hai cos(inside)\cos(\text{inside}). Total rate = dono rates ka multiplication: h(x)=f(g(x))g(x)h'(x)=f'(g(x))\cdot g'(x). Yaad rakho gear example — agar pehla gear 3× tez ghoomta hai aur doosra usse 5× tez, toh wheel 15×15\times tez. Rates multiply hote hain kyunki wo sequence mein lagte hain.

Proof ka asli twist yeh hai: agar tum seedha Δu\Delta u se multiply-divide karoge toh galat ho sakta hai, kyunki kabhi-kabhi Δu=g(x+Δx)g(x)\Delta u = g(x+\Delta x)-g(x) zero ho jata hai even when Δx0\Delta x \neq 0. Tab divide karna illegal hai. Isliye hum ek "error function" E(k)E(k) banate hain jo k=0k=0 par bhi 00 deti hai aur continuous hoti hai. Isse hum multiply karte hain, divide nahi — toh zero-wala problem khatam. Yahi cheez exam mein extra marks dilati hai jab teacher rigorous proof maangta hai.

Practical tip: hamesha "outside-in" peel karo — pehle bahar wale function ka derivative lo (inside ko mat chhedo), phir inside ka derivative multiply karo. Galti yeh hoti hai ki log sin(x2)\sin(x^2) ka derivative cos(2x)\cos(2x) likh dete hain — galat! Inside intact rehna chahiye: cos(x2)2x\cos(x^2)\cdot 2x. DOTI yaad rakho: Derivative of Outside Times derivative of Inside. Triple nesting mein bas har layer ka ek factor multiply karte jao.

Go deeper — visual, from zero

Test yourself — Calculus I — Limits & Derivatives

Connections