Dr. Gilbert Strang

The wonderful thing about matrix multiplication is you can do it alot of ways, it comes out the same every way, and each way tells you something.

Mental Model

If is a matrix, what do u think it is?

A collection of numbers arranged in a grid?

And then multiplying it by another matrix is some operation that spits out another matrix that is another grid of numbers?

And numbers in are computed by moving through and in some defined way that seems arbitrary and can be easily forgotten?

This is a totally valid view to have. However, a little shift in perspective may give u a more intuitive understanding of the multiplication operation and will reveal it as as not a single operation, but 4 different types of operations.

What a Matrix is

Bringing back our matrix , it can be viewed as a collection of either columns or rows.

Multiplying it by another matrix that’s either a Rows or Columns matrix results in 4 different types of operations (depending on how each matrix is viewed)


Matrix Multiplication as Inner Products

Rows matrix * Columns matrix

contains the inner product of every vector in with each vector in .


Matrix Multiplications as Outer Products

Columns matrix * Rows matrix

is the sum of the outer product matrix of every vector in with each vector in .


Matrix Multiplication as Column Combinations

Columns matrix * Columns matrix

multiplies every column vector in .


Matrix Multiplication as Row Combinations

Rows matrix * Rows matrix

Every row vector in multiplies .


Connections