This lesson covers matrix multiplication — one of the most important operations in linear algebra. Unlike addition, matrix multiplication is not element-by-element; it follows a specific "row times column" rule and has some surprising properties.
The Rule for Matrix Multiplication
To multiply matrices A (order m×n) and B (order n×p):
The number of columns of A must equal the number of rows of B
The result AB has order m×p
Entry (i,j) of AB = dot product of row i of A with column j of B
(AB)ij=k=1∑naikbkj
2×2 Matrix Multiplication
(acbd)(egfh)=(ae+bgce+dgaf+bhcf+dh)
Worked Example 1:
(2134)(50−12)=(10+05+0−2+6−1+8)=(10547)
Matrix Multiplication Is NOT Commutative
In general, AB=BA.
Example: Let A=(1021) and B=(0110).
AB=(2110), but BA=(0112).
AB=BA — matrix multiplication is not commutative.
Exam Tip: Never assume you can swap the order of matrix multiplication. This is one of the most common errors.
Properties of Matrix Multiplication
Property
Statement
Associative
(AB)C=A(BC)
Distributive (left)
A(B+C)=AB+AC
Distributive (right)
(A+B)C=AC+BC
Identity
AI=IA=A
Scalar
k(AB)=(kA)B=A(kB)
NOT commutative
AB=BA in general
NOT cancellative
AB=AC does not imply B=C in general
Multiplying with the Identity Matrix
The identity matrix I acts like the number 1 in multiplication: