Cheatsheet: The essence of calculus
The method
Section titled “The method”Break a hard problem into many small easy pieces, then add them up as the pieces shrink toward zero. That is the move behind almost all of calculus.
The circle-area derivation
Section titled “The circle-area derivation”- Slice the disk into thin concentric rings: radius
r, thicknessdr. - Unroll one ring into a thin rectangle: length
2πr(the circumference), widthdr. Area≈ 2πr · dr. - Total area
≈ sum over r of (2πr · dr), which is the area under the line2πrplotted againstr. - That region is a triangle, base
R, height2πR:
area = (1/2) · R · 2πR = πR²The familiar formula is the area under a straight line, assembled from thin rectangles.
The two pillars
Section titled “The two pillars”| Pillar | Question | Name |
|---|---|---|
| Rate of change | How fast is a function changing at each instant? | Differentiation |
| Accumulation | How much does a function add up over a range? | Integration |
For the circle: A(R) = πR² is the accumulated (integrated) circumference 2πr.
The inverse relationship (Fundamental Theorem)
Section titled “The inverse relationship (Fundamental Theorem)”curve --(accumulate area: integrate)--> accumulated functionaccumulated function --(rate of change: differentiate)--> curveA(R) = πR², and its rate of change A'(R) = 2πR is exactly the circumference being accumulated. Integration and differentiation undo each other. This is the Fundamental Theorem of Calculus.
What calculus is
Section titled “What calculus is”The systematic study of two questions about any function, how fast it changes (rate) and how much it accumulates (total), plus the discovery that they are inverses.
Why it matters for AI
Section titled “Why it matters for AI”- Training = following a rate. A model lowers its loss by computing the loss’s derivative with respect to each parameter and nudging downhill (gradient descent). Backpropagation computes those derivatives through the layers.
- Continuous probability = accumulation. Likelihood is the area under a density curve, an integral.
Pitfalls to dodge
Section titled “Pitfalls to dodge”dris a mystery. No, treat it as a small ordinary width that shrinks toward zero.- The ring-as-rectangle is exact. No, it is an approximation that becomes exact in the limit.
- Differentiation and integration are unrelated. No, they are inverses (the Fundamental Theorem).
- Memorize
πR². Don’t; it is the area under2πr, rederivable on a napkin.
The one-line version
Section titled “The one-line version”Calculus slices hard problems into tiny pieces and adds them up; its two ideas, rates and accumulation, are inverses, which is why the rate of a circle’s accumulated area is exactly its circumference.