Matrix Multiplication definition
Matrix multiplication computes each output entry by taking a row of the first matrix and a column of the second.
Matrix Multiplication in a picture
How it works
An m × n matrix can multiply an n × p matrix in that order, giving an m × p matrix. Multiply matching row and column entries and sum the products. Matrix multiplication is associative but generally not commutative. The reverse order can give a different answer or be undefined.
Worked examples
Can a 2 × 3 matrix multiply a 3 × 4 matrix?
Yes. The product has dimensions 2 × 4.
Multiply the row [[1, 2]] by the column [[3], [4]].
The 1 × 1 product is [[11]].
Does AB always equal BA?
No. The order matters.
Common mistake
Match the inner dimensions first. The outer dimensions give the size of the result.
Quick check
Which matrix supplies the row?
Show answer
The first.
Which supplies the column?
Show answer
The second.
What are the dimensions of a 3 × 1 matrix times a 1 × 2 matrix?
Show answer
3 × 2.
Sources
Flashcard
Matrix Multiplication
Reveal the definition
Matrix multiplication computes each output entry by taking a row of the first matrix and a column of the second.
Effortless Math. “Matrix Multiplication.” Math Dictionary.



