Matrix Multiplication
The entry of is row of dotted with column of . Sizes must chain: . Order MATTERS: in general — the single biggest habit change from ordinary algebra.
The system , is one equation about the matrix . Solving the system, inverting , and asking whether columns are independent are all the SAME question in different clothes.
and are dependent exactly when one is a multiple of the other; the first two coordinates force the multiplier to be , so — dependence is a rigid, all-coordinates condition.
An image is a matrix of pixels; a social network is an adjacency matrix; a dataset is a rows-by-features matrix; a 3D scene is transformed by matrices sixty times a second. Matrix multiplication being composition is why graphics pipelines can collapse a chain of transformations into ONE matrix and apply it to millions of points.
Let (rotation by ). Predict , then compute. Work: two quarter-turns are a half-turn, so should be — and indeed ✓. Thinking in maps first turns matrix arithmetic into geometry.
Proofs & Why It Matters
Let and be the maps and . Column of is — feed the th basis vector through , then through .
But a linear map is determined by where it sends basis vectors, so the matrix whose columns are IS the matrix of . The row-times-column rule is just this computed entry by entry — and composition of maps is famously order-sensitive, which is WHY .
Each operation is reversible: swapping rows swaps back; scaling by undoes by ; adding (row ) to row undoes by subtracting. A solution of the old system satisfies every new equation (each new row is a combination of old rows), and reversibility gives the converse. So the solution set never changes on the way to echelon form.
Going Deeper: Explanations & Worked Problems
Everything about is visible in two special inputs. Feed in : out comes the FIRST COLUMN of . Feed in : the second column.
Any other input is a combination , and linearity forces — matrix-times-vector is a WEIGHTED SUM OF COLUMNS. Example: sends the unit square spanned by to the parallelogram spanned by and : the plane is stretched, sheared, and every area is multiplied by . This picture explains the multiplication rule too: the columns of are applied to the columns of — do first, then — which is why and genuinely differ: shear-then-rotate is not rotate-then-shear.
Compute for , . Entry : row of dot column of : . Entry : row dot column : . Entry : row dot column : .
Entry : . So . Now the other order: — completely different, as composition order predicts. One determinant check seals both: , and ✓.
Solve , three compatible ways.
Way 1 — elimination: add the equations to kill : , so , then .
Way 2 — inverse matrix: has , so , and .
Way 3 — column picture: find weights making ; the weights and work. Three languages, one answer — and fluency means moving between them at will.