Calculus for machine learning
Free calculus course from zero for ML: slopes, derivatives, the chain rule, partial derivatives, gradients, gradient descent and backpropagation.
Module 1 · Beginner
Getting started with calculus
What calculus is, why models need it to learn, and the idea of a limit without the formal maths.
Module 2 · Beginner
Derivatives
How fast things change: slopes of curves, the derivative rules, and checking them with Python.
- Rate of change explained
- What is a derivative? Explained visually
- The derivative from first principles
- Derivative rules: power, constant and sum
- Derivatives of exponentials and logs
- The product and quotient rules
- The chain rule explained step by step
- Derivative of the sigmoid function
- Numerical derivatives with Python
Module 3 · Intermediate
Finding the minimum
Use derivatives to find the lowest point of a curve: the core idea of model training.
- Lagrange multipliers explained
- Maxima and minima with derivatives
- Second derivatives and curvature
- Taylor series: approximating a function near a point
- Convex functions explained
- Optimisation explained for beginners
- Newton's method explained
Module 4 · Intermediate
Many variables
Real models have millions of inputs: partial derivatives, gradients, Jacobians and Hessians.
- Functions of several variables
- Partial derivatives explained
- The gradient explained visually
- Why the gradient points uphill
- The multivariable chain rule
- The Jacobian matrix explained
- The Hessian matrix explained
- Matrix calculus for machine learning
Module 5 · Intermediate
Integrals
Adding up infinitely many tiny pieces: areas under curves and the link to probability.
- What is an integral? Area under a curve
- Integrals and probability distributions
- Numerical integration with Python
Module 6 · Advanced
Gradient descent and optimisers
How models actually learn, from plain gradient descent to Adam.
- Gradient descent explained, with Python code
- Loss functions and their derivatives
- The learning rate explained
- Stochastic and mini-batch gradient descent
- Momentum, RMSProp and Adam explained
Module 7 · Advanced
Backpropagation
The chain rule at scale: how neural networks compute their gradients.
- Calculus for machine learning, made easy
- Computational graphs explained
- Backpropagation step by step
- Build a neural network from scratch with NumPy
- Automatic differentiation with PyTorch
- Calculus interview questions for ML