Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Blog › AI and maths

24 November 2026 · 5 min read

A student studying at a desk in front of a chalkboard
Photo by Vitaly Gariev on Unsplash

What maths do you need for AI? A roadmap

Four areas of maths carry almost all of machine learning. Here is what each is for, when school teaches it, and what to practise first.

You do not need a maths degree to understand how AI works, but you do need four areas of maths. The good news: school already teaches most of it. What it rarely does is tell you why these topics matter for AI.

1. Algebra and functions (Class 8 to 11)

A model is a function: numbers in, numbers out. Being comfortable with y = mx + c, with substituting values and with reading graphs is the base for everything else. If straight lines and quadratics feel easy, you are ready for the rest.

2. Vectors and matrices (Class 11 and 12)

Data is stored as vectors and processed by matrices. Learn the dot product, matrix multiplication and what a matrix does to shapes (stretching, rotating). In AI, almost every step is a matrix multiplication.

3. Calculus (Class 11 and 12)

Training is about making a loss smaller. The derivative tells you which way is downhill and how steep it is, and the chain rule lets you pass that information backwards through many layers. That is backpropagation, and it is just the chain rule used carefully.

4. Probability and statistics (Class 9 to 12)

Models predict probabilities, and we judge them with statistics. Mean, variance, conditional probability and Bayes’ theorem all appear, as does the idea of a distribution.

A practical order

  1. Get fast and accurate with algebra and graphs.
  2. Learn vectors and the dot product, even before school reaches them.
  3. Learn what a derivative means as a slope, then the chain rule.
  4. Learn probability, then softmax and cross-entropy loss.
  5. Put it together by training a tiny model yourself.

Gradient’s course follows this order, and ends with you training a small language model in your browser.

How much of each topic you really need

You do not need a maths degree to understand AI. You need four areas, each to a clear depth. Algebra to the level of rearranging formulas and reading graphs. Vectors and matrices to the level of the dot product and matrix multiplication. Calculus to the level of derivatives and the chain rule. Probability to the level of averages, spread and Bayes’ rule.

The order matters more than the speed. Each area leans on the one before: matrices are lists of vectors, derivatives need functions and graphs, and probability uses both.

A sample six-month plan

  1. Month 1: functions, graphs, exponents and logarithms
  2. Month 2: vectors, dot products and distance
  3. Month 3: matrices and matrix multiplication
  4. Month 4: derivatives, the chain rule and gradients
  5. Month 5: probability, distributions and Bayes
  6. Month 6: build and train a small model in code

Half an hour a day is enough. The key habit is to try each idea by hand on small numbers before letting a computer do it for you.

Mistakes that slow people down

  • Learning formulas without pictures: always draw the vector, the graph or the table.
  • Skipping practice: understanding feels complete until you try a question.
  • Jumping to deep learning code before the dot product feels obvious.
  • Trying to master everything at once instead of one area at a time.

Gradient’s Maths course covers the school foundations in depth; the Maths behind AI course connects them to models.

What each area does inside a model

  • Algebra and functions describe what a model computes: inputs go in, a prediction comes out.
  • Vectors and matrices store the data and the model’s weights and do most of the arithmetic.
  • Calculus tells the model how to change each weight to get better.
  • Probability lets a model express how confident it is and learn from uncertain data.

Keeping this map in mind gives every new topic a purpose. When you learn the chain rule, you are learning how backpropagation works. When you learn Bayes’ rule, you are learning how a spam filter updates its belief.

What you can skip at first

  • Proofs of every theorem: understand the idea and use it first, prove later.
  • Advanced integration techniques: rarely needed for everyday AI work.
  • Abstract algebra and topology: interesting, but not required to start.

Glossary

  • Model: a function with adjustable numbers that makes predictions.
  • Loss: a number measuring how wrong the model is.
  • Gradient: the list of slopes that shows how to reduce the loss.
  • Dataset: the examples used for training and testing.

Check where you are

  1. Can you solve 3x + 5 = 20 and rearrange v = u + at for t?
  2. Can you find [2, 3] · [4, −1] and the length of [3, 4]?
  3. Can you multiply a 2 × 2 matrix by a vector?
  4. Can you differentiate x³ − 2x and say what the answer means?
  5. Can you find the chance of two heads in two fair coin tosses?

Answers: x = 5 and t = (v − u) ÷ a; 5 and 5; yes if you multiply rows by the column; 3x² − 2, the slope at each point; ¼. If any felt hard, start your plan at that topic.

Free practice routes

  • Gradient’s Maths course for fractions, coordinates, vectors and trigonometry.
  • The Maths behind AI course for matrices, derivatives and probability with live models.
  • Daily puzzles to keep the habit going for ten minutes a day.

In short

Algebra, vectors and matrices, calculus and probability, learned in that order with small worked examples, are enough to understand how modern AI works.

Keep going

  • The maths behind AI course
  • Formula sheets
  • Class 12 maths tuition
  • Why is a negative times a negative positive?
  • What is the Riemann hypothesis? Explained simply
  • How does ChatGPT work? The maths for Class 10
  • What is a dot product? Explained with examples

Read and listen in

Indian languages

World languages

Questions people ask

Can a Class 10 student start learning AI maths?

Yes. Algebra, graphs, vectors and basic probability are all reachable, and they explain most of how models work. Calculus can come in Class 11.

Do I need to be good at maths to work in AI?

You need to be comfortable, not brilliant. Most practical AI work uses a small set of ideas again and again.

Which is most important: calculus, linear algebra or probability?

Linear algebra (vectors and matrices) is used most often in practice, but you need all three to understand how a model learns.

More articles

  • What is the Riemann hypothesis? Explained simply
  • How does ChatGPT work? The maths for Class 10
  • What is a dot product? Explained with examples