Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Math for AI and Machine Learning: Zero to Neural Networks
New
2 students

Math for AI and Machine Learning: Zero to Neural Networks

Linear algebra, calculus and probability for beginners: the math behind neural networks and LLMs, by hand. No coding.
Created byMohammed Abadi
Last updated 11/2026
English

What you'll learn

  • Understand the four pieces of math behind AI: vectors and matrices, functions, calculus and probability
  • Calculate vector length, distance, dot product and cosine similarity by hand, and explain what an embedding is
  • Multiply matrices by hand and explain why a layer of a neural network is a matrix multiplication
  • Explain what a model, a parameter, a loss and an activation function are, and calculate a neuron’s output
  • Run gradient descent by hand and see what a learning rate that is too small or too large does
  • Do one step of backpropagation with the chain rule, on paper
  • Turn scores into probabilities with softmax and measure them with cross-entropy
  • Follow how a language model predicts its next word: tokens, embeddings, attention and temperature

Course content

8 sections • 58 lectures • 2h 11m total length
  • Welcome: the math behind AI1:45
  • An AI model is a function2:09
  • The four pieces of math you will learn1:15
  • How to get the most from this course1:21
  • Reading math symbols without fear2:35
  • Section 1 practice quiz
  • Section 1 exam

Requirements

  • School arithmetic: adding, subtracting, multiplying and dividing
  • No coding and no earlier math courses are needed
  • A pen and some paper, to calculate along
  • A simple calculator for a few steps (the course says where)

Description

This course contains the use of artificial intelligence.

The narration in this course is an AI-generated voice, and AI tools were used in preparing the scripts, visuals, quizzes and workbook. Every number in the lectures, the quizzes and the workbook was calculated and checked.

Have you opened an article about AI, met the first formula, and closed it again? This course is for you.

Every AI system, from an image classifier to a chatbot, is built from the same four pieces of math: vectors and matrices, functions, calculus, and probability. In about two hours, you will learn all four from zero, and you will use them to calculate, by hand, what a neural network and a language model do.

What makes this course different

  • It really starts at zero. If you can add, subtract, multiply and divide, you can follow every lecture. Negative numbers, square roots and every symbol are explained when they first appear.

  • No coding. There is no Python and nothing to install. You need a pen and paper.

  • Every calculation is animated step by step. Each number appears on screen at the moment it is explained, with small numbers you can check yourself.

  • One idea per lecture. Most lectures are two to three minutes long.

  • Practice is built in. Every section ends with a practice quiz and a section exam, most of them small calculations with new numbers, each with a worked explanation. Two final exams cover the whole course.

  • A printable workbook. All formulas of the course on a few pages, and 48 extra exercises with full solutions.

What you will calculate yourself

  • The length of a vector, the distance between two vectors, a dot product and a cosine similarity

  • A matrix times a vector, and a matrix times a matrix

  • The prediction and the loss of a small model, and the output of an artificial neuron

  • Gradient descent, step by step, and one step of backpropagation with the chain rule

  • A conditional probability, Bayes’ rule, softmax and cross-entropy

  • A full training step of a small neural network: forward pass, backward pass, update

  • One attention step and one next-word prediction of a language model, with temperature

What you get

  • 58 short lectures in 8 sections

  • 16 section quizzes and 2 final exams, 144 questions in all

  • The workbook as a PDF

What this course is not

It is not a programming course, and it is not a full university course in linear algebra, calculus or statistics. It teaches the parts of each that you need for a first real understanding of how AI works, and it gives you the vocabulary to continue with a coding course or a deeper math course afterwards.

Who this course is for:

  • Beginners who want to understand how AI and machine learning work, not only how to use them
  • People who plan to learn machine learning or data science and want the math first, without code
  • Developers, managers and students who use AI tools and want to know what happens inside
  • Anyone who was put off by math at school and wants a second, gentler start
  • Not for people who already know linear algebra, calculus and probability: this course moves in small steps