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. Matrices of the same order are added or subtracted element by element: each element of the answer comes from the elements in the same position of the given matrices. Matrices of different orders cannot be added or subtracted.
Given: A and B are both 2 × 2, so every product and sum below is possible.
Step 1 — Work out A2.
A2 means A×A. 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=[1201][1201]=[1×1+0×22×1+1×21×0+0×12×0+1×1]=[1+02+20+00+1]=[1401]
Step 2 — Work out AB.
We multiply the rows of A by the columns of B.
AB=[1201][2−130]=[1×2+0×(−1)2×2+1×(−1)1×3+0×02×3+1×0]=[2+04−13+06+0]=[2336]
Step 3 — Work out B2.
B2 means B×B.
B2=[2−130][2−130]=[2×2+3×(−1)(−1)×2+0×(−1)2×3+3×0(−1)×3+0×0]=[4−3−2+06+0−3+0]=[1−26−3]
Step 4 — Add the three matrices.
We add the elements in the same positions.
A2+AB+B2=[1401]+[2336]+[1−26−3]=[1+2+14+3+(−2)0+3+61+6+(−3)]=[4594]
Watch out: A2 and B2 are found by multiplying the matrices, not by squaring each element.
Therefore, A2+AB+B2=[4594].