Mathematical Foundations
Build the number sense, notation, logic, units, and checking habits that make every later topic easier.
From school maths to LLMs
A complete, visual path through algebra, calculus, probability, statistics, optimization, stochastic calculus, and the mathematics inside machine learning, deep learning, and language models.
Every difficult idea begins with a picture, then becomes a formula.
Animations build the mental model before symbols appear.
Every chapter connects to ML, LLMs, trading, physics, and daily decisions.
Each chapter has 100 questions from easy to advanced. Answers stay hidden until you ask.
Saved on this device
Small steps count. Finish one picture, one example, and one check at a time.
The learning path
Follow the path in order if you are starting fresh. If you already know a topic, open it directly and use the mastery list to test yourself.
Foundations
Build the number sense, notation, logic, units, and checking habits that make every later topic easier.
Learn to express changing quantities, solve constraints, and see a function as a reusable input-output rule.
Count complex choices without listing every case, while keeping order, repetition, and restrictions straight.
Expand powers of two-term expressions, understand Pascal's triangle, and connect coefficients to counting and probability.
Core tools
Turn directions, distances, lines, planes, angles, and projections into coordinates you can calculate with.
Understand matrices as transformations, solve systems, and learn the structures behind rank, basis, eigenvectors, and modern ML.
Learn how one changing quantity behaves: approach with limits, measure instant change with derivatives, total small pieces with integrals, and replace hard functions with useful series.
Move from curves to surfaces and tensors: partial derivatives, gradients, Jacobians, Hessians, matrix derivatives, and the chain rule behind backpropagation.
Uncertainty
Build probability from outcomes and events, then learn conditional probability, independence, counting, and Bayes' rule.
Build probability measures, turn outcomes into random variables, compare convergence modes, and learn the distributions and limit theorems used throughout data science.
Learn how study design and samples become honest estimates, robust comparisons, intervals, tests, and simple predictive relationships.
Study joint laws, transformations, bounds, Bayesian updating, hierarchical pooling, decisions, Monte Carlo, MCMC, and variational inference.
Learning systems
Turn goals into objective functions, then solve unconstrained, constrained, convex, nonconvex, and noisy optimization problems with methods you can reason about.
Understand how finite computers approximate real mathematics: floating-point error, conditioning, stable algorithms, numerical calculus, linear solves, and iterative root finding.
Measure discrete and continuous uncertainty, shared information, maximum-entropy models, compression limits, and the losses used to train probabilistic models.
Follow random quantities through time, from walks and martingales through multidimensional calculus, SDE simulation, density PDEs, and measure changes.
Connect probability, statistics, vectors, calculus, optimization, and information theory inside real learning systems.
Your finish line
By the final chapter, embeddings, gradients, attention, cross-entropy, stochastic updates, and sampling will connect to ideas you built yourself.
Open the coverage map