Lesson 4: Order matters: the rules of matrix algebra

Why (A+B)2≠A2+2AB+B2(\bm{A} + \bm{B})^2 \neq \bm{A}^2 + 2\bm{AB} + \bm{B}^2

SkillsOrder matters: AB and BAMatrix algebra properties

Worked example

  • Complex familiar
  • Technology free

(a) Show that (A+B)2=A2+AB+BA+B2(\bm{A} + \bm{B})^2 = \bm{A}^2 + \bm{AB} + \bm{BA} + \bm{B}^2 for any 2×22 \times 2 matrices A\bm{A} and B\bm{B}.

(b) For A=[1201]\bm{A} = \begin{bmatrix} 1 & 2 \\ 0 & 1 \end{bmatrix} and B=[1031]\bm{B} = \begin{bmatrix} 1 & 0 \\ 3 & 1 \end{bmatrix}, show that (A+B)2≠A2+2AB+B2(\bm{A} + \bm{B})^2 \neq \bm{A}^2 + 2\bm{AB} + \bm{B}^2.

1 of 4 steps
  1. Step 1: Expand with the distributive laws

    (A+B)2=(A+B)(A+B)=A(A+B)+B(A+B)=A2+AB+BA+B2(\bm{A} + \bm{B})^2 = (\bm{A} + \bm{B})(\bm{A} + \bm{B}) = \bm{A}(\bm{A} + \bm{B}) + \bm{B}(\bm{A} + \bm{B}) = \bm{A}^2 + \bm{AB} + \bm{BA} + \bm{B}^2

Try a similar one

A fresh question of the same kind, checked as you answer, with hints and a full solution.

Method

  1. Expand brackets with the distributive laws, keeping every product in order.

  2. Combine AB\bm{AB} and BA\bm{BA} only if you know the matrices commute.

  3. A single counterexample is enough to show that a general statement is false.

Watch out for

  • Writing 2AB2\bm{AB} for AB+BA\bm{AB} + \bm{BA}.

Save your progress with a free account