Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Applied Linear Algebra Part 1: The Math Behind AI
New
Rating: 5.0 out of 5(1 rating)
7 students

Applied Linear Algebra Part 1: The Math Behind AI

Linear algebra for machine learning and AI, animated step by step and coded in Python with NumPy, with 8 case studies
Created byMilan Joshi
Last updated 10/2026
English
English

What you'll learn

  • Read any 2 by 2 matrix as a motion of space and predict what it does to a grid, a picture or a cloud of data points
  • Measure how alike two things are with norms, dot products and cosine similarity, the way search engines and embeddings do
  • Multiply matrices by hand and in NumPy, and explain the shapes inside a neural network layer, a batch of data and attention
  • Apply rotations, shears, determinants and convolution filters to images, and see why a CNN layer is a sparse matrix
  • Solve systems of equations by elimination, and choose between solve, least squares and inverse in NumPy without the usual traps
  • Use row reduction, rank and singular values to find how many independent features a real dataset has
  • Test whether vectors are dependent, and spot redundant features before they upset a regression
  • Run every idea in Python and NumPy with notebooks, exercises and solutions, and check your understanding with a quiz in each module

Coding Exercises

This course includes our updated coding exercises so you can practice your skills as you learn.

See a demo
Image of coding exercise example

Course content

11 sections • 75 lectures • 8h 13m total length
  • Welcome to the course3:03

    A short tour of Part 1: eight modules, 53 short lessons, and the one idea behind all of them, that every AI model runs on vectors and matrices. You will see how each lesson is built (watch the idea move, check it by hand, run it in NumPy, see it in real AI) and how the notebooks, demo videos, interactive tools and quizzes fit in. School algebra is all the background you need.

  • How to use the notebooks and interactives1:13

    Where to find each module's notebook and the seven interactive tools, and a simple order for using them with the lessons. It takes about two minutes to read.

  • Interactive tools: how to use them7:57

    A walk through all seven interactive pages that come with Part 1: the norm explorer, linear combination dials, cosine dial, projection explorer, transformation playground, hyperplane classifier and elimination stepper. For each one you see what to drag, what to read off the screen and the matching line of NumPy. The pages are free, need no sign-up and open in any browser. ## Section 2: Why Linear Algebra Runs AI

Requirements

  • School algebra: solving for x and reading the graph of a line. No calculus and no earlier linear algebra.
  • Basic Python helps for the notebooks, but you can follow every video without it. The notebooks run free in Google Colab or on your own computer.
  • A computer with a web browser for the interactive tools (they need no install).

Description

This is linear algebra for machine learning, AI and data science, taught visually. Every AI model you use, from chatbots to image generators, runs on vectors and matrices, multiplied billions of times a second. Most of us were taught that as a wall of symbols. This course teaches it the other way round. You watch every idea move first, check it by hand once with small numbers, run it in one line of Python with NumPy, and then see where it shows up in real AI and deep learning.

Part 1 has 8 modules and 53 short lessons, each under 15 minutes. It also has 8 case studies, a notebook and a demo video for every module, 7 free interactive tools and a quiz at the end of each module. You need school algebra and nothing else.

What is in Part 1

  • Module 1, Why Linear Algebra Runs AI: a matrix as a machine that moves a picture, and data as vectors.
  • Module 2, Vectors: The Toolkit: adding and scaling, norms, linear combinations, and matrix times vector. Case studies: word2vec and Uber's H3 grid.
  • Module 3, Dot Products, Angles and Similarity: the dot product, cosine similarity, projections, nearest neighbours, the cross product and k-means. Case studies: search by meaning, and how a vector database works.
  • Module 4, Matrix Operations: special matrices, matrix algebra, multiplication, transposes, the Hadamard product and the Frobenius norm. Case study: attention in transformers.
  • Module 5, Matrices as Transformations: rotations, shears and determinants, transforming images, affine maps, convolution and image filters, and a preview of the Jacobian. Case study: how a neural network bends space.
  • Module 6, Systems of Linear Equations: Ax = b, the geometry of solutions, elimination, solving safely in NumPy, and hyperplanes. Case study: how a CT scanner rebuilds an image.
  • Module 7, Row Reduction and Rank: row operations, echelon forms, free variables, and the rank of real data. Case study: how many features your data really has.
  • Module 8, Span and Linear Dependence: what a set of vectors can reach, when they repeat each other, and how to detect near repeats.

How it works

Every lesson follows one recipe: watch the idea animated, check it by hand, run it in NumPy, and see it in real AI. Each module ends with a notebook walkthrough where the code is typed live, mistakes included, plus exercise and solution notebooks to try yourself. The interactive tools open in any browser, so you can drag a matrix and watch the grid bend.

This is Part 1 of Applied Linear Algebra. Part 2 continues with subspaces, eigenvalues and beyond.

Who this course is for:

  • Beginners in machine learning, deep learning and data science who want the linear algebra behind them to click.
  • Developers who use NumPy, PyTorch or TensorFlow and want to know what the shapes and operations mean.
  • Students who passed a linear algebra class but never saw what it was for.
  • Anyone preparing for a machine learning course, a job interview or a research paper that uses matrices.
  • Visual learners who find formulas hard to read but pictures easy.