Common mistake
AB always equals BA.
Correct understanding
Matrix multiplication is not commutative. In the worked example AB = [[4, 7], [8, 15]] but BA = [[3, 4], [11, 16]].
Maths · Lesson 3.2
The row-by-column rule, transpose, symmetric and skew-symmetric matrices.
By the end of this lesson, you should be able to:
Matrix multiplication is the operation that makes matrices useful. It combines rows of the first matrix with columns of the second, and it represents the composition of linear transformations. Unlike ordinary multiplication, it is not commutative.
The transpose flips a matrix across its main diagonal. Transposes connect row operations to column operations and are essential for symmetry, least squares and covariance matrices.
If A is m × n and B is n × p, then AB is m × p. The entry in row i and column j of AB is the dot product of row i of A with column j of B: (AB)ij = ∑k aikbkj. The inner dimensions must match.
Matrix multiplication is associative and distributive, but not commutative. In fact, AB may be defined while BA is not, or the two products may have different orders. The identity matrix satisfies AI = IA = A whenever the orders are compatible.
The transpose At is obtained by interchanging rows and columns: the entry in row i, column j of At is aji. If A is m × n, then At is n × m. The transpose reverses the order of a product: (AB)t = BtAt.
A square matrix is symmetric if At = A, and skew-symmetric if At = -A. A skew-symmetric matrix must have zeros on its main diagonal, because aii = -aii forces aii = 0.
AB = [[1(0) + 2(2), 1(1) + 2(3)], [3(0) + 4(2), 3(1) + 4(3)]] = [[4, 7], [8, 15]].
BA = [[0(1) + 1(3), 0(2) + 1(4)], [2(1) + 3(3), 2(2) + 3(4)]] = [[3, 4], [11, 16]].
The products are different, so matrix multiplication is not commutative.
At = [[1, 3], [2, 4]] by interchanging rows and columns.
Common mistake
AB always equals BA.
Correct understanding
Matrix multiplication is not commutative. In the worked example AB = [[4, 7], [8, 15]] but BA = [[3, 4], [11, 16]].
It corresponds to composing linear transformations: applying B and then A produces the matrix AB.
Yes. Matrix multiplication has zero divisors, which is one reason matrix algebra differs from ordinary algebra.