AnyLearn
All lessons

Math lessons & courses

32 lessons · 8 learning paths · free, quiz-checked, no signup required

The mathematics that underpins engineering and data work: linear algebra, statistics, and the habits of quantitative reasoning. Each lesson builds the intuition first, then makes it precise.

Learning paths

Math
advanced

Convex Optimization: From Gradient Descent to Interior Point Methods

The real divide in optimization is convex against nonconvex, and it decides whether you can prove your answer is best or merely hope so. Start by learning to recognise convexity without touching a Hessian. Derive why the safe step size is one over the smoothness constant, and why the condition number governs everything. Pick up duality and the KKT conditions as your certificate. Then add curvature, and see how a log barrier turned constrained problems into something solvable in polynomial time.

4 lessons · certificate
Math
advanced

Group Theory and Symmetry

A group is a set with one operation and four rules, and that deliberate poverty is what lets a single theorem cover rotations, shuffles, clock arithmetic and Rubik's cube at once. This path starts from the symmetries of a square, proves Lagrange's theorem and gets Fermat's little theorem for free, shows why no crystal can have five-fold symmetry and what happened when one did, and ends with the group of order 60 that makes a quintic formula impossible.

4 lessons · certificate
Math
intermediate

Discrete Mathematics: Counting, Proof, Graphs, and Congruence

The mathematics of finite structures sits under most of computing, and it is usually absorbed in fragments rather than learned. This path builds four working tools: counting arrangements you could never enumerate, proving a claim for every input instead of the ones you tested, modelling relationships as graphs and reading what the structure permits, and doing arithmetic on a circle. Every result is tied to something engineers actually hit.

4 lessons · certificate
Math
intermediate

Signal Processing: Fourier, Sampling, and Filters

Audio, images, sensors and instruments all rest on the same four ideas, and getting any of them wrong destroys data silently. This path builds the frequency domain and why sinusoids get the job, the sampling rule that cannot be broken and what aliasing does when it is, convolution and the filters built from it, and how to read a spectrum without mistaking the analysis for the signal. Every number is computed, so you can reproduce it.

4 lessons · certificate
Math
intermediate

Calculus for Machine Learning

Derivatives, gradients and the chain rule are the machinery under every training run, and knowing them changes what you can debug. This path builds the derivative as a local linear model, then gradients, Jacobians and Hessians, then the chain rule as a product whose evaluation order decides the cost, and finally automatic differentiation itself. You will finish knowing why a billion-parameter gradient costs one backward pass, why conditioning sets your iteration count, and where autodiff answers the wrong question exactly.

4 lessons · certificate
Math
advanced

Optimization on Manifolds: When Parameters Live on a Curve

Rotations, subspaces, low-rank matrices and covariances are not vectors in flat space, and treating their constraints as penalties throws away structure that makes the problem easier. This path builds Riemannian optimization from the ground up: tangent spaces and the metric that decides what steepest means, the projection that turns an ordinary gradient into the right one, retractions that let you move along a curved space without solving differential equations, and why these non-convex problems are so often solved to global optimality anyway.

4 lessons · certificate
Math
intermediate

Probability and Statistics for Machine Learning

Build the mathematical foundation every ML practitioner needs: go from sample spaces and distributions to Bayesian inference and hypothesis testing. By the end you will be able to choose the right distribution for any modelling problem, derive maximum likelihood estimators, reason about uncertainty the Bayesian way, and correctly interpret p-values and confidence intervals.

4 lessons · certificate
Math
intermediate

Linear Algebra for Engineers

Master the mathematical backbone of machine learning, signal processing, and scientific computing. By the end you will decompose any matrix into its fundamental subspaces, compute eigenvalues and eigenvectors, apply the SVD for low-rank approximation and compression, and solve least-squares problems — all with geometric intuition and NumPy.

4 lessons · certificate

All Math lessons

Math
advanced

Newton's method and the interior point revolution

Second derivatives buy something gradients cannot: a step shaped by curvature, immune to conditioning, converging quadratically. This lesson builds Newton's method, then layers it on a log barrier to get interior point methods, the machinery that made large constrained problems solvable with a certificate rather than a hope.

13 steps·~20 min
Math
intermediate

Gradient descent: choosing the step and knowing the rate

Gradient descent is three lines of code and a hundred years of theory. This lesson derives why a safe step size is one over the smoothness constant, why the condition number governs everything, and why acceleration reaching order one over k squared is provably the best any first-order method can do.

11 steps·~17 min
Math
intermediate

Convexity: the property that decides what is solvable

Convexity is what separates optimization problems you can solve with a guarantee from ones you can only hope about. This lesson defines convex sets and functions, proves why every local minimum is global, and gives you the operations that let you recognise convexity without touching a Hessian.

11 steps·~17 min
Math
advanced

Why There Is No Quintic Formula

Quadratics, cubics and quartics all have formulas in radicals. The general fifth-degree equation has none, and not because nobody clever enough has tried. This lesson explains how permuting the roots turns an algebra question into a group question, and why the answer changes at degree five when a group of order 60 refuses to break down.

10 steps·~15 min
Math
intermediate

Symmetry Groups: Crystals, Conservation Laws, and Neural Networks

Group theory earns its keep when a symmetry argument settles a physical question no calculation was going to answer. This lesson covers group actions and counting up to symmetry, why crystals cannot have five-fold rotation and what happened when one did, Noether's link between symmetry and conservation, and how the same idea is built into modern networks.

10 steps·~15 min
Math
intermediate

Subgroups, Cosets, and Lagrange's Theorem

Cosets cut a group into equal-sized blocks, and one counting argument then forces every subgroup's size to divide the group's. This lesson proves that, derives Fermat's little theorem from it as a corollary, and introduces the maps that let you compare two groups and say precisely when they are the same object.

10 steps·~15 min
Math
intermediate

What a Group Is, and Why the Axioms Are So Bare

A group is a set with one operation obeying four rules, and that deliberate poverty is the point: anything proved about groups holds for rotations, permutations, integers, XOR and Rubik's cube at once. This lesson builds the definition from symmetry, works through the symmetries of a square, and shows where groups already sit in code.

10 steps·~15 min
Math
intermediate

Modular Arithmetic: Doing Maths on a Clock

Wrap the number line into a circle and addition and multiplication survive intact while division mostly does not. This lesson builds congruences, shows why you can reduce early to avoid overflow, works through Euclid's algorithm and modular inverses, and explains how a million-digit exponent becomes twenty multiplications.

10 steps·~15 min
Math
intermediate

Graphs: A Language for Relationships

A graph is two sets and an incidence relation, and that austerity is why the same object models build dependencies, social networks, register allocation and road maps. This lesson covers the structural properties worth knowing, the special families that make hard problems easy, and the line where a small change to a question makes it intractable.

10 steps·~15 min
Math
intermediate

Proof and Induction: Covering Infinitely Many Cases

Testing checks the cases you thought of; a proof covers all of them at once, including the ones nobody will ever run. This lesson builds direct proof, contradiction and induction as working tools, shows the two ways induction fails, and connects it to the loop invariants that make a program correct rather than merely untested.

10 steps·~15 min
Math
intermediate

Counting Without Listing

Combinatorics answers how many arrangements exist without producing any of them, which is what makes password strength, hash collisions and search-space size computable at all. This lesson builds the product rule, permutations, combinations, inclusion-exclusion and the pigeonhole principle, then applies them to problems where intuition is reliably wrong.

10 steps·~15 min
Math
intermediate

Reading a Spectrum Without Fooling Yourself

A spectrum shows you artefacts of the analysis alongside the signal, and telling them apart is a learnable skill. This lesson covers spectral leakage, what windows buy and what they cost, why zero-padding does not add resolution, and the hard trade a spectrogram forces between knowing when and knowing what.

10 steps·~15 min
Math
intermediate

Convolution and Filters: Shaping a Signal

A filter is fully described by what it does to a single impulse, and applying it is a convolution. This lesson builds that idea, shows why the frequency domain turns convolution into plain multiplication, and works through the trade-offs that make real filters ring, lag, or cost more than they need to.

10 steps·~15 min
Math
intermediate

Sampling and Aliasing: The Rule You Cannot Break

Turning a continuous signal into numbers is safe only above a specific rate, and below it the damage is silent and permanent. This lesson derives the Nyquist limit, shows exactly where a too-high frequency reappears, and explains why the fix has to be analogue and has to happen before the converter.

10 steps·~15 min
Math
intermediate

The Frequency Domain: Why Everything Is Sinusoids

The same signal can be written as a function of time or as a recipe of frequencies. This lesson explains why sinusoids in particular get that job, builds the discrete Fourier transform, and shows how the FFT turned a quadratic computation into one you can run on a million samples in a fraction of a second.

10 steps·~15 min
Math
intermediate

Automatic Differentiation: How Gradients Are Actually Computed

Frameworks do not differentiate formulas symbolically or estimate derivatives numerically. They differentiate the program. This lesson builds forward mode from dual numbers and reverse mode from the backward sweep, shows why a full gradient costs about four function evaluations at any size, and where the answer is not what you meant.

10 steps·~15 min
Math
intermediate

The Chain Rule, and Why Depth Is Hard

A deep network is a composition, so its derivative is a product of Jacobians. This lesson builds the chain rule from one variable up to matrix form, shows that the order you multiply that product in changes the cost tenfold, and explains vanishing gradients as an arithmetic consequence rather than a mystery.

10 steps·~15 min
Math
intermediate

Gradients, Jacobians, and Hessians: Calculus in Many Dimensions

One derivative becomes three objects once a function has many inputs and many outputs. This lesson builds the gradient, the Jacobian and the Hessian, shows what each one actually tells you, and explains why curvature decides how many steps an optimiser needs and why nobody ever writes the Hessian down.

10 steps·~15 min
Math
intermediate

The Derivative Is a Local Linear Model

Machine learning uses the derivative as a search strategy, not a symbolic exercise. This lesson builds it as the best local linear approximation, derives the gradient descent update from it, and shows why estimating derivatives numerically loses half your digits and costs one function evaluation per parameter.

10 steps·~15 min
Math
advanced

Applications, Geodesic Convexity, and Why Non-Convex Can Still Be Solvable

Where this machinery earns its place: low-rank matrix completion, synchronization, and PCA. Plus the two ideas that explain why non-convex manifold problems are often solved to global optimality anyway.

8 steps·~12 min
Math
advanced

Retractions and Riemannian Algorithms

How to move along a curved space without solving differential equations: retractions as cheap approximations to geodesics, vector transport, and the Riemannian versions of gradient descent, conjugate gradients, and trust regions.

8 steps·~12 min
Math
advanced

Tangent Spaces, Metrics, and the Riemannian Gradient

Building the machinery: the linear space of allowed directions at a point, the inner product that gives it geometry, and why the Riemannian gradient is the ambient gradient projected rather than a new derivative.

8 steps·~12 min
Math
advanced

When Your Parameters Live on a Curved Space

Rotations, subspaces, low-rank matrices and covariances are not vectors in flat space. Why treating those constraints as penalties or projections wastes structure, and what it means to say the search space is a manifold.

8 steps·~12 min
Math
intermediate

Random Variables and Distributions

Build the vocabulary that underlies all of ML: sample spaces, discrete and continuous random variables, PMFs, PDFs, and CDFs. Then tour the key distributions — Bernoulli, Binomial, Categorical, Gaussian, Poisson, Exponential, Uniform — with their parameters, mean, variance, and exactly when each appears in practice.

10 steps·~15 min