AI Engineer Path

Concept Lab · Week 4 · Prerequisites

Matrices move space

Drag the basis vectors and watch the whole grid transform with them.

The idea: Matrices as linear transformations

The single most useful reframe in linear algebra: a matrix is not a grid of numbers, it is a transformation of space that keeps grid lines parallel and evenly spaced and the origin fixed: rotation, scaling, shear, reflection or projection.

Read a 2×2 matrix column by column: the first column is where i^\hat{i} lands, the second is where j^\hat{j} lands. Every other vector follows, because it is a combination of i^\hat{i} and j^\hat{j}. Drag the basis vectors in the simulation and watch the whole grid follow.

Matrix–vector multiplication Ax⃗A\vec{x} is therefore 'apply transformation AA to x⃗\vec{x}'. A neural network layer Wx⃗+b⃗W\vec{x} + \vec{b} is exactly this, followed by a non-linearity.

Open the full lesson in week 4

Next simulation: Dot product → cosine similarity