+10 XP

Recap: The Whole Calculus Toolkit

πŸ”οΈ You've climbed the whole Differentiation & Integration mountain. Here's everything in one view.

The two halves of calculus:
β€’ Differentiation = slope = rate of change. Sign tells direction; zero marks peaks and valleys.
β€’ Integration = area under the curve = adding things up. The reverse of differentiation.

The rules for slopes:
β€’ Power / exp / sin β€” the short list worth recognizing.
β€’ Product rule for two functions multiplied (the PSP alpha function).
β€’ Chain rule for functions nested inside functions (and for how one variable changes with another through time).

When there's no clean formula β€” go numerical:
β€’ Derivative β‰ˆ finite difference, np.gradient.
β€’ Integral β‰ˆ Riemann sum, np.cumsum(y * dt).
β€’ Smaller step = more accurate but more computation. Always a tradeoff.

Two variables or more:
β€’ Partial derivatives (βˆ‚) β€” wiggle one input, freeze the rest. Stack them into the gradient, the heart of model training.

Two ways to picture each operation:
β€’ Geometry: derivative = slope, integral = area.
β€’ Filtering: differentiation = high-pass (keeps fast changes, amplifies noise), integration = low-pass (smooths).

Where it all goes: finding where a derivative = 0 β†’ optimization & gradient descent (training every AI and fitting every neuron model). Adding up tiny changes β†’ simulating neurons over time (the next quest: Differential Equations). One toolkit, the entire course. πŸš€