Linear Algebra
4.59 min read

Algebraic Properties of Matrix Multiplication

Matrix multiplication satisfies several familiar algebraic properties, but with important differences from scalar multiplication.

Works: Associativity: (AB)C=A(BC)(AB)C = A(BC). Distributivity: A(B+C)=AB+ACA(B+C) = AB + AC and (B+C)A=BA+CA(B+C)A = BA + CA. Identity: ImA=A=AInI_mA = A = AI_n. Scalar: r(AB)=(rA)B=A(rB)r(AB) = (rA)B = A(rB).

Does NOT work in general: Commutativity (ABBAAB \neq BA in general), cancellation (AB=ACAB = AC does not imply B=CB = C), zero products (AB=0AB = 0 does not imply A=0A = 0 or B=0B = 0).

Formal View

Theorem 4.5 — Properties of Matrix Multiplication
Let A,B,CA, B, C be matrices of compatible dimensions and rRr \in \mathbb{R}: \begin{enumerate} \item (AB)C=A(BC)(AB)C = A(BC) (associativity) \item A(B+C)=AB+ACA(B + C) = AB + AC (left distributivity) \item (B+C)A=BA+CA(B + C)A = BA + CA (right distributivity) \item ImA=AI_m A = A and AIn=AA I_n = A (identity) \item r(AB)=(rA)B=A(rB)r(AB) = (rA)B = A(rB) (scalar compatibility) \end{enumerate}

Why This Matters

These properties justify algebraic manipulation of matrix expressions.

  • Associativity allows us to evaluate (AB)C(AB)C or A(BC)A(BC) — whichever is cheaper
  • Distributivity enables expanding matrix polynomials like (A+B)2=A2+AB+BA+B2(A+B)^2 = A^2 + AB + BA + B^2 (note: ABBAAB \neq BA!)

Quiz

Question 1

For all matrices AA and BB, (A+B)2=A2+2AB+B2(A+B)^2 = A^2 + 2AB + B^2.

Common Mistakes

  • Treating matrix algebra like scalar algebra — especially the commutativity assumption.
  • Thinking (AB)T=ATBT(AB)^T = A^T B^T — the correct formula is (AB)T=BTAT(AB)^T = B^T A^T (order reverses).