🏠 Home β€Ί πŸ”’ Matrix Math

πŸ”’ Matrix Math

πŸš€ Advanced Β· A Complete Lesson

[ 2  3 ] + [ 5  1 ] = [ 7  4 ]
[ 1  4 ]   [ 0  2 ]   [ 1  6 ]
row [ 1  2 ] meets column [ 3 ; 1 ]:  1Γ—3 + 2Γ—1 = 5

Those two lines are matrix math in action. A matrix (say it: MAY-tricks) is just a grid of numbers β€” rows across, columns down β€” like a scoreboard or a spreadsheet. The first line adds two grids square by square. The second shows the heartbeat of matrix multiplication: a row pairs with a column, you multiply the partners, then add. The plural of matrix is matrices (MAY-tri-sees) β€” and once you can handle two or three of them at once, you can do things that feel like magic.

Why do people care? Because the world runs on grids of numbers! Every photo on your phone is a grid of pixel numbers. Every 3D video game spins and flips its world by multiplying matrices β€” millions of times per second. Music recommendations, weather forecasts, search engines, and the giant AI models that write poems all run on enormous versions of the little 2 Γ— 2 grids you'll master today. Matrices are how computers think about tables of numbers β€” and tables of numbers are everywhere.

You already know how to add and multiply single numbers β€” so we'll spend zero time relearning that and go straight to grids.

In this lesson, you will:

How to use this lesson: Read the sections in order. Each section starts with the key idea you'll learn in it. Take your time, and try every "Your Turn" box with a pencil and paper. Ready? Let's go!

πŸ“Έ Pictures

A diagram showing a row of one matrix meeting a column of another
πŸ“· Picture 1
How matrix multiplication works: each row of matrix A meets a column of matrix B to make one square in the answer. See source ↓
A drawing of a computer, with a zoomed-in square showing tiny coloured blocks
πŸ“· Picture 2
Zoom in on any computer picture and you'll see it's really a grid of tiny squares called pixels: a giant matrix of numbers! See source ↓

πŸ—ΊοΈ Your lesson map

πŸš€Lesson 1
Meet the Matrix β€” Rows, Columns, Addresses
🧩Lesson 2
Adding and Subtracting β€” Square by Square
🎯Lesson 3
The Scalar β€” One Number Times a Whole Grid
πŸ”Lesson 4
The Real Matrix Multiplication β€” Row Γ— Column
⚑Lesson 5
Order Matters! A Γ— B β‰  B Γ— A
🌟Lesson 6
Special Grids β€” The Zero Grid and the Identity Grid
πŸ› οΈLesson 7
Matrices at Work β€” Scores, Photos, Codes, and Flips
⚠️Lesson 8
Watch Out! Common Mistakes
🧠Lesson 9
Review β€” The Big Picture
πŸ‹οΈPractice Problems
100 problems to try
πŸ†Quiz
Test yourself: new questions every time!

πŸ“š Picture Sources

  1. Picture 1 Β· Matrix multiplication diagram 2. By Lakeworks. CC BY-SA 3.0. From Wikimedia Commons: https://commons.wikimedia.org/wiki/File:Matrix_multiplication_diagram_2.svg
  2. Picture 2 Β· Pixel-example. By ed g2s. CC BY-SA 3.0. From Wikimedia Commons: https://commons.wikimedia.org/wiki/File:Pixel-example.png
V.3.1