1.2.2 · D3Calculus & Optimization Basics

Worked examples — Derivatives and rules (product, quotient, chain)

3,702 words17 min readBack to topic

Prerequisites you should have skimmed: Limits and Continuity (what means) and Power Rule and Basic Derivatives (so is already yours).


The scenario matrix

Every example below is a tick in one of these boxes. Read the table first — it is the map. ("ML" below is short for machine learning — the field these derivatives power.)

# Cell (the scenario) Which rule stress-tested Cleared by
C1 Product, evaluated at a specific point (plug in a number) Product Ex 1
C2 Product of THREE factors (rule used twice) Product ×2 Ex 2
C3 Quotient at a normal point + sign of the slope Quotient Ex 3
C4 Quotient where the derivative is ZERO (turning point) Quotient Ex 4
C5a Denominator → 0, removable hole (the that cancels) Quotient limit Ex 5
C5b Denominator → 0, genuine blow-up (vertical asymptote, ) Quotient limit Ex 5b
C6 Chain, negative-inside & positive-inside (sign of inner) Chain Ex 6
C7 Chain nested THREE deep (three gears) Chain ×2 Ex 7
C8 All three rules in one expression (machine-learning: sigmoid × input) Product+Quotient+Chain Ex 8
C9 Real-world word problem with units Product Ex 9
C10 Exam twist: implicit differentiation (curve not solved for ) Chain + algebra Ex 10
Recall Quick reminders (open if a rule is fuzzy)

Product ::: Quotient ::: Chain :::


Ex 1 — Product at a point · cell C1


Ex 2 — Product of three factors · cell C2


Ex 3 — Quotient at a normal point · cell C3


Ex 4 — Quotient with a zero derivative (turning point) · cell C4 📈

Figure — Derivatives and rules (product, quotient, chain)

Ex 5 — Denominator → 0, the removable hole · cell C5a


Ex 5b — Denominator → 0, a genuine blow-up · cell C5b


Ex 6 — Chain rule, sign of the inside matters · cell C6


Ex 7 — Triple-nested chain (three gears) · cell C7


Ex 8 — All three rules together (machine learning) · cell C8


Ex 9 — Real-world word problem with units · cell C9


Ex 10 — Exam twist: implicit differentiation · cell C10


Coverage check

Recall Did we hit every matrix cell?

C1 (product@point) ::: Ex 1 C2 (three-factor product) ::: Ex 2 C3 (quotient sign) ::: Ex 3 C4 (quotient zero-slope) ::: Ex 4 C5a (denominator→0 removable hole) ::: Ex 5 C5b (denominator→0 genuine blow-up) ::: Ex 5b C6 (chain, inside sign) ::: Ex 6 C7 (triple nested chain) ::: Ex 7 C8 (all three, machine learning) ::: Ex 8 C9 (word problem + units) ::: Ex 9 C10 (exam twist, implicit differentiation) ::: Ex 10

Onward: these hand-derivatives are exactly the numbers that flow through Gradient and Partial Derivatives and get chained in Backpropagation to power Gradient Descent.

Connections