Solution:
Concept: The product AB exists only when the number of columns of A equals the number of rows of B. The element in row i, column j of AB is found by multiplying the elements of row i of A by the matching elements of column j of B and adding the results. If A is m×n and B is n×p, then AB is m×p. To multiply a matrix by a number k, multiply every element of the matrix by k. After that, matrices of the same order are added or subtracted element by element.
Given: A and B are both 2 × 2, so every product below is possible.
Step 1 — Work out A2.
We multiply each row of the first matrix by each column of the second: multiply the matching elements and add. The working below first writes each element as a sum of products, then works out the products, then adds them.
A2=[3501][3501]=[3×3+0×55×3+1×53×0+0×15×0+1×1]=[9+015+50+00+1]=[92001]
Step 2 — Work out AB.
We multiply each row of A by each column of B.
AB=[3501][−4120]=[3×(−4)+0×15×(−4)+1×13×2+0×05×2+1×0]=[−12+0−20+16+010+0]=[−12−19610]
Step 3 — Work out B2.
We multiply each row of B by each column of B, keeping −4 in brackets.
B2=[−4120][−4120]=[(−4)×(−4)+2×11×(−4)+0×1(−4)×2+2×01×2+0×0]=[16+2−4+0−8+02+0]=[18−4−82]
Step 4 — Combine.
We multiply every element of AB by 2, then subtract it and add B2 element by element.
A2−2AB+B2=[92001]−2[−12−19610]+[18−4−82]=[92001]−[−24−381220]+[18−4−82]=[9−(−24)+1820−(−38)+(−4)0−12+(−8)1−20+2]=[5154−20−17]
Watch out: Do not replace the expression by (A−B)2. For matrices (A−B)2=A2−AB−BA+B2, and AB=BA in general, so the shortcut gives a different (wrong) matrix here.
Therefore, A2−2AB+B2=[5154−20−17].