From school maths to LLMs

See the maths.
Then make it work.

A complete, visual path through algebra, calculus, probability, statistics, optimization, stochastic calculus, and the mathematics inside machine learning, deep learning, and language models.

17 chapters123 guided lessons1,700 practice questions
Watch attention connect meaning
theriverbankrosequeryattention weights the context that matters now

Every difficult idea begins with a picture, then becomes a formula.

01

Picture first

Animations build the mental model before symbols appear.

02

Use it for real

Every chapter connects to ML, LLMs, trading, physics, and daily decisions.

03

Earn the answer

Each chapter has 100 questions from easy to advanced. Answers stay hidden until you ask.

Saved on this device

Your progress starts here.

Small steps count. Finish one picture, one example, and one check at a time.

The learning path

One idea prepares the next.

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 language

Numbers, functions, counting, and algebra become pictures you can reason with.

6 lessons · 100 questions

Mathematical Foundations

Build the number sense, notation, logic, units, and checking habits that make every later topic easier.

Compare signed numbers and calculate with correct operation order.Move confidently among fractions, ratios, decimals, rates, and percentages.Use powers, roots, logarithms, and scientific notation to reason about scale.

10 lessons · 100 questions

Algebra and Functions

Learn to express changing quantities, solve constraints, and see a function as a reusable input-output rule.

Translate precise verbal rules into algebraic expressions.Solve linear equations, systems, and inequalities and verify the result.Move between degrees, radians, unit-circle coordinates, trigonometric graphs, identities, and inverse angles.

5 lessons · 100 questions

Permutations and Combinations

Count complex choices without listing every case, while keeping order, repetition, and restrictions straight.

Choose correctly between addition and multiplication counting rules.Recognize whether order matters and use permutations or combinations.Handle repeated selections, identical objects, and circular symmetry.

5 lessons · 100 questions

The Binomial Theorem

Expand powers of two-term expressions, understand Pascal's triangle, and connect coefficients to counting and probability.

Build and read Pascal's triangle and explain its counting meaning.Expand positive-integer binomial powers with correct coefficients, signs, and exponents.Find a requested term, power, or coefficient without full expansion.

Core tools

Describe change and space

Vectors, matrices, and calculus explain how models represent and learn patterns.

6 lessons · 100 questions

Vectors and Analytic Geometry

Turn directions, distances, lines, planes, angles, and projections into coordinates you can calculate with.

Distinguish points from vectors and calculate vector combinations.Compute norms, distances, and normalized directions.Use dot products for angles, similarity, orthogonality, and projections.

7 lessons · 100 questions

Linear Algebra

Understand matrices as transformations, solve systems, and learn the structures behind rank, basis, eigenvectors, and modern ML.

Read matrix shapes and treat a matrix as data and a linear map.Multiply matrices in the correct order and use identity and transpose rules.Solve linear systems by elimination and identify unique, absent, or infinite solutions.

12 lessons · 100 questions

Single-Variable Calculus

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.

Explain a limit from a graph, table, and formula.Differentiate compositions and interpret units and signs.Turn rates into totals with definite integrals.

9 lessons · 100 questions

Multivariable & Matrix Calculus

Move from curves to surfaces and tensors: partial derivatives, gradients, Jacobians, Hessians, matrix derivatives, and the chain rule behind backpropagation.

Compute and interpret partial derivatives and tangent planes.Use gradients and directional derivatives geometrically.Build Jacobians with correct shapes and compose them.

Uncertainty

Reason with incomplete information

Probability and statistics turn noisy observations into careful conclusions.

5 lessons · 100 questions

Probability Foundations

Build probability from outcomes and events, then learn conditional probability, independence, counting, and Bayes' rule.

Define experiments, outcomes, sample spaces, and eventsUse complement, union, intersection, and counting rulesDistinguish conditional probability from its reverse

9 lessons · 100 questions

Random Variables and Distributions

Build probability measures, turn outcomes into random variables, compare convergence modes, and learn the distributions and limit theorems used throughout data science.

Read PMFs, PDFs, and CDFsBuild probability statements from (Ω,𝓕,P) and interpret almost-sure claimsCompute expectation, variance, covariance, and correlation

7 lessons · 100 questions

Statistics and Inference

Learn how study design and samples become honest estimates, robust comparisons, intervals, tests, and simple predictive relationships.

Separate populations, samples, parameters, and statisticsDistinguish random sampling, randomized assignment, controls, blocking, blinding, and observational confoundingDiagnose bias, variance, and sampling uncertainty

6 lessons · 100 questions

Advanced Probability and Bayesian Reasoning

Study joint laws, transformations, bounds, Bayesian updating, hierarchical pooling, decisions, Monte Carlo, MCMC, and variational inference.

Move among joint, marginal, and conditional distributionsTransform variables and apply honest tail boundsBuild and critique a Bayesian model

Learning systems

Put the machinery together

Optimization, computation, information, randomness, and model mathematics connect.

7 lessons · 100 questions

Optimization

Turn goals into objective functions, then solve unconstrained, constrained, convex, nonconvex, and noisy optimization problems with methods you can reason about.

Translate a real goal into variables, an objective, and constraints.Run and diagnose gradient descent with a sensible stopping rule.Recognise convex structure and explain conditioning.

8 lessons · 100 questions

Numerical Methods & Computational Math

Understand how finite computers approximate real mathematics: floating-point error, conditioning, stable algorithms, numerical calculus, linear solves, and iterative root finding.

Explain rounding, cancellation, overflow, and relative error.Separate conditioning of a problem from stability of an algorithm.Choose sensible steps for numerical derivatives and quadrature.

6 lessons · 100 questions

Information Theory

Measure discrete and continuous uncertainty, shared information, maximum-entropy models, compression limits, and the losses used to train probabilistic models.

Compute discrete entropy and explain why continuous differential entropy depends on unitsIdentify maximum-entropy distributions only after support and constraints are statedUse conditional entropy and mutual information

10 lessons · 100 questions

Stochastic Processes and Stochastic Calculus

Follow random quantities through time, from walks and martingales through multidimensional calculus, SDE simulation, density PDEs, and measure changes.

Relate random walks to Brownian scalingCompute Markov transitions and stationary distributionsRecognize stopping times and state valid optional-stopping and martingale-convergence conditions

5 lessons · 100 questions

ML, Deep Learning, and LLM Math Integration

Connect probability, statistics, vectors, calculus, optimization, and information theory inside real learning systems.

Connect linear and logistic regression to logits, softmax, cross-entropy, gradients, and updatesExplain learned embeddings and similarity choicesCompute scaled dot-product attention with masks

Your finish line

You will read equations as stories about shape, change, and uncertainty.

By the final chapter, embeddings, gradients, attention, cross-entropy, stochastic updates, and sampling will connect to ideas you built yourself.

Open the coverage map