All courses › Linear Algebra and Differential Equations › Matrix multiplication

Matrix multiplication

Multiplying matrices is done row times column, and is not the same as multiplying entrywise. The order matters: in general AB≠BAAB\neq BA.

(AB)ij=∑kAikBkj(AB)_{ij} = \sum_k A_{ik}B_{kj}entry ijij of the product, row i of A times column j of B
(AB)T=BTAT(AB)^T = B^TA^Ttranspose of a product (order is reversed)

Symbols

ATA^Ttranspose of A (rows and columns swapped)

Example

A=(−3−23−3)A=\begin{pmatrix}-3&-2\\3&-3\end{pmatrix}, B=(−2−2−10)B=\begin{pmatrix}-2&-2\\-1&0\end{pmatrix}: (AB)11=(−3)(−2)+(−2)(−1)=8(AB)_{11}=(-3)(-2)+(-2)(-1)=8.

AB≠BAAB\neq BA in general - the order of the matrices matters, just like the order of rotations.
Practise matrices for free →

← Determinant (2×2) · Inverse matrix →

Part of Linear Algebra and Differential Equations: Matrices.