RS Aggarwal Class 12 Maths Solutions Exercise 5C — Matrices
RS Aggarwal, Class 12 Mathematics — Matrices, Exercise 5C. All 36 questions solved.
Independent solutions by Shiwam’s Classes. Not affiliated with or endorsed by the author or publisher of the book.
Exercise 5C is about multiplying matrices. Questions 1 to 11 ask you to multiply, to check when a product exists, and to verify laws such as $A(BC)=(AB)C$. Questions 12 to 18, 21, 22, 31 and 35 evaluate polynomials in a matrix. Questions 19, 20, 23, 24 and 28 to 30 turn a matrix equation into ordinary equations. The rest are proofs and counter-examples.
Key insight. To get the $(i,j)$ entry of $AB$, multiply row $i$ of $A$ by column $j$ of $B$ and add; this needs the number of columns of $A$ to equal the number of rows of $B$. Matrix multiplication is associative and distributive but not commutative, and $AB=O$ does not force $A=O$ or $B=O$.
Question 1
Work out $AB$ and $BA$ in each case, whichever of them is defined, for the matrices given in the five parts below.
(i) $A = \begin{bmatrix} 2 & -1 \\ 3 & 0 \\ -1 & 4 \end{bmatrix}$, $B = \begin{bmatrix} -2 & 3 \\ 0 & 4 \end{bmatrix}$.
(ii) $A = \begin{bmatrix} -1 & 1 \\ -2 & 2 \\ -3 & 3 \end{bmatrix}$, $B = \begin{bmatrix} 3 & -2 & 1 \\ 0 & 1 & 2 \\ -3 & 4 & -5 \end{bmatrix}$.
(iii) $A = \begin{bmatrix} 0 & 1 & -5 \\ 2 & 4 & 0 \end{bmatrix}$, $B = \begin{bmatrix} 1 & 3 \\ -1 & 0 \\ 0 & 5 \end{bmatrix}$.
(iv) $A = [1\ 2\ 3\ 4]$, $B = \begin{bmatrix} 1 \\ 2 \\ 3 \\ 4 \end{bmatrix}$.
(v) $A = \begin{bmatrix} 2 & 1 \\ 3 & 2 \\ -1 & 1 \end{bmatrix}$, $B = \begin{bmatrix} 1 & 0 & 1 \\ -1 & 2 & 1 \end{bmatrix}$.
Solution. (i) Here $A$ is $3\times2$ and $B$ is $2\times2$. The product $AB$ needs the columns of $A$ (2) to equal the rows of $B$ (2), so it exists and is $3\times2$. The product $BA$ would need the columns of $B$ (2) to equal the rows of $A$ (3), which fails, so $BA$ does not exist.
$$AB = \begin{bmatrix}2&-1\\3&0\\-1&4\end{bmatrix}\begin{bmatrix}-2&3\\0&4\end{bmatrix} = \begin{bmatrix}2\cdot(-2)+(-1)\cdot0&2\cdot3+(-1)\cdot4\\3\cdot(-2)+0\cdot0&3\cdot3+0\cdot4\\(-1)\cdot(-2)+4\cdot0&(-1)\cdot3+4\cdot4\end{bmatrix} = \begin{bmatrix}-4&2\\-6&9\\2&13\end{bmatrix}.$$
(ii) $A$ is $3\times2$ and $B$ is $3\times3$. For $AB$ the columns of $A$ (2) would have to match the rows of $B$ (3), so $AB$ does not exist. For $BA$ the columns of $B$ (3) match the rows of $A$ (3), so $BA$ exists and is $3\times2$.
$$BA = \begin{bmatrix}3&-2&1\\0&1&2\\-3&4&-5\end{bmatrix}\begin{bmatrix}-1&1\\-2&2\\-3&3\end{bmatrix} = \begin{bmatrix}3\cdot(-1)+(-2)\cdot(-2)+1\cdot(-3)&3\cdot1+(-2)\cdot2+1\cdot3\\0\cdot(-1)+1\cdot(-2)+2\cdot(-3)&0\cdot1+1\cdot2+2\cdot3\\(-3)\cdot(-1)+4\cdot(-2)+(-5)\cdot(-3)&(-3)\cdot1+4\cdot2+(-5)\cdot3\end{bmatrix} = \begin{bmatrix}-2&2\\-8&8\\10&-10\end{bmatrix}.$$
(iii) $A$ is $2\times3$ and $B$ is $3\times2$, so both products exist: $AB$ is $2\times2$ and $BA$ is $3\times3$.
$$AB = \begin{bmatrix}0&1&-5\\2&4&0\end{bmatrix}\begin{bmatrix}1&3\\-1&0\\0&5\end{bmatrix} = \begin{bmatrix}0\cdot1+1\cdot(-1)+(-5)\cdot0&0\cdot3+1\cdot0+(-5)\cdot5\\2\cdot1+4\cdot(-1)+0\cdot0&2\cdot3+4\cdot0+0\cdot5\end{bmatrix} = \begin{bmatrix}-1&-25\\-2&6\end{bmatrix}.$$
$$BA = \begin{bmatrix}1&3\\-1&0\\0&5\end{bmatrix}\begin{bmatrix}0&1&-5\\2&4&0\end{bmatrix} = \begin{bmatrix}1\cdot0+3\cdot2&1\cdot1+3\cdot4&1\cdot(-5)+3\cdot0\\(-1)\cdot0+0\cdot2&(-1)\cdot1+0\cdot4&(-1)\cdot(-5)+0\cdot0\\0\cdot0+5\cdot2&0\cdot1+5\cdot4&0\cdot(-5)+5\cdot0\end{bmatrix} = \begin{bmatrix}6&13&-5\\0&-1&5\\10&20&0\end{bmatrix}.$$
(iv) $A$ is $1\times4$ and $B$ is $4\times1$. Both products exist, but $AB$ is $1\times1$ while $BA$ is $4\times4$.
$$AB = \begin{bmatrix}1&2&3&4\end{bmatrix}\begin{bmatrix}1\\2\\3\\4\end{bmatrix} = \begin{bmatrix}1\cdot1+2\cdot2+3\cdot3+4\cdot4\end{bmatrix} = \begin{bmatrix}30\end{bmatrix}.$$
$$BA = \begin{bmatrix}1\\2\\3\\4\end{bmatrix}\begin{bmatrix}1&2&3&4\end{bmatrix} = \begin{bmatrix}1&2&3&4\\2&4&6&8\\3&6&9&12\\4&8&12&16\end{bmatrix}.$$
(v) $A$ is $3\times2$ and $B$ is $2\times3$, so $AB$ is $3\times3$ and $BA$ is $2\times2$.
$$AB = \begin{bmatrix}2&1\\3&2\\-1&1\end{bmatrix}\begin{bmatrix}1&0&1\\-1&2&1\end{bmatrix} = \begin{bmatrix}2\cdot1+1\cdot(-1)&2\cdot0+1\cdot2&2\cdot1+1\cdot1\\3\cdot1+2\cdot(-1)&3\cdot0+2\cdot2&3\cdot1+2\cdot1\\(-1)\cdot1+1\cdot(-1)&(-1)\cdot0+1\cdot2&(-1)\cdot1+1\cdot1\end{bmatrix} = \begin{bmatrix}1&2&3\\1&4&5\\-2&2&0\end{bmatrix}.$$
$$BA = \begin{bmatrix}1&0&1\\-1&2&1\end{bmatrix}\begin{bmatrix}2&1\\3&2\\-1&1\end{bmatrix} = \begin{bmatrix}1\cdot2+0\cdot3+1\cdot(-1)&1\cdot1+0\cdot2+1\cdot1\\(-1)\cdot2+2\cdot3+1\cdot(-1)&(-1)\cdot1+2\cdot2+1\cdot1\end{bmatrix} = \begin{bmatrix}1&2\\3&4\end{bmatrix}.$$
(i) $AB=\begin{bmatrix}-4&2\\-6&9\\2&13\end{bmatrix}$, $BA$ does not exist. (ii) $BA=\begin{bmatrix}-2&2\\-8&8\\10&-10\end{bmatrix}$, $AB$ does not exist. (iii) $AB=\begin{bmatrix}-1&-25\\-2&6\end{bmatrix}$, $BA=\begin{bmatrix}6&13&-5\\0&-1&5\\10&20&0\end{bmatrix}$. (iv) $AB=[30]$, $BA=\begin{bmatrix}1&2&3&4\\2&4&6&8\\3&6&9&12\\4&8&12&16\end{bmatrix}$. (v) $AB=\begin{bmatrix}1&2&3\\1&4&5\\-2&2&0\end{bmatrix}$, $BA=\begin{bmatrix}1&2\\3&4\end{bmatrix}$.
Question 2
In each part below, verify by direct multiplication that the two products $AB$ and $BA$ are different matrices.
(i) $A = \begin{bmatrix} 5 & -1 \\ 6 & 7 \end{bmatrix}$, $B = \begin{bmatrix} 2 & 1 \\ 3 & 4 \end{bmatrix}$.
(ii) $A = \begin{bmatrix} 1 & 2 & 3 \\ 0 & 1 & 0 \\ 1 & 1 & 0 \end{bmatrix}$, $B = \begin{bmatrix} -1 & 1 & 0 \\ 0 & -1 & 1 \\ 2 & 3 & 4 \end{bmatrix}$.
Solution. (i) Compute both products and compare them.
$$AB = \begin{bmatrix}5&-1\\6&7\end{bmatrix}\begin{bmatrix}2&1\\3&4\end{bmatrix} = \begin{bmatrix}5\cdot2+(-1)\cdot3&5\cdot1+(-1)\cdot4\\6\cdot2+7\cdot3&6\cdot1+7\cdot4\end{bmatrix} = \begin{bmatrix}7&1\\33&34\end{bmatrix}.$$
$$BA = \begin{bmatrix}2&1\\3&4\end{bmatrix}\begin{bmatrix}5&-1\\6&7\end{bmatrix} = \begin{bmatrix}2\cdot5+1\cdot6&2\cdot(-1)+1\cdot7\\3\cdot5+4\cdot6&3\cdot(-1)+4\cdot7\end{bmatrix} = \begin{bmatrix}16&5\\39&25\end{bmatrix}.$$
Since $AB = \begin{bmatrix}7&1\\33&34\end{bmatrix}$ and $BA = \begin{bmatrix}16&5\\39&25\end{bmatrix}$ differ (for instance the $(1,1)$ entries are $7$ and $16$), $AB \neq BA$.
(ii) Again compute both products.
$$AB = \begin{bmatrix}1&2&3\\0&1&0\\1&1&0\end{bmatrix}\begin{bmatrix}-1&1&0\\0&-1&1\\2&3&4\end{bmatrix} = \begin{bmatrix}1\cdot(-1)+2\cdot0+3\cdot2&1\cdot1+2\cdot(-1)+3\cdot3&1\cdot0+2\cdot1+3\cdot4\\0\cdot(-1)+1\cdot0+0\cdot2&0\cdot1+1\cdot(-1)+0\cdot3&0\cdot0+1\cdot1+0\cdot4\\1\cdot(-1)+1\cdot0+0\cdot2&1\cdot1+1\cdot(-1)+0\cdot3&1\cdot0+1\cdot1+0\cdot4\end{bmatrix} = \begin{bmatrix}5&8&14\\0&-1&1\\-1&0&1\end{bmatrix}.$$
$$BA = \begin{bmatrix}-1&1&0\\0&-1&1\\2&3&4\end{bmatrix}\begin{bmatrix}1&2&3\\0&1&0\\1&1&0\end{bmatrix} = \begin{bmatrix}(-1)\cdot1+1\cdot0+0\cdot1&(-1)\cdot2+1\cdot1+0\cdot1&(-1)\cdot3+1\cdot0+0\cdot0\\0\cdot1+(-1)\cdot0+1\cdot1&0\cdot2+(-1)\cdot1+1\cdot1&0\cdot3+(-1)\cdot0+1\cdot0\\2\cdot1+3\cdot0+4\cdot1&2\cdot2+3\cdot1+4\cdot1&2\cdot3+3\cdot0+4\cdot0\end{bmatrix} = \begin{bmatrix}-1&-1&-3\\1&0&0\\6&11&6\end{bmatrix}.$$
The $(1,1)$ entries are $5$ and $-1$, so $AB \neq BA$.
Shown: in both parts $AB \neq BA$.
Question 3
Verify in each part that the two products $AB$ and $BA$ come out equal.
(i) $A = \begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix}$, $B = \begin{bmatrix} \cos\phi & -\sin\phi \\ \sin\phi & \cos\phi \end{bmatrix}$.
(ii) $A = \begin{bmatrix} 1 & 2 & 1 \\ 3 & 4 & 2 \\ 1 & 3 & 2 \end{bmatrix}$, $B = \begin{bmatrix} 10 & -4 & -1 \\ -11 & 5 & 0 \\ 9 & -5 & 1 \end{bmatrix}$.
(iii) $A = \begin{bmatrix} 1 & 3 & -1 \\ 2 & 2 & -1 \\ 3 & 0 & -1 \end{bmatrix}$, $B = \begin{bmatrix} -2 & 3 & -1 \\ -1 & 2 & -1 \\ -6 & 9 & -4 \end{bmatrix}$.
Solution. (i) Multiply, using $\cos\theta\cos\phi-\sin\theta\sin\phi=\cos(\theta+\phi)$ and $\sin\theta\cos\phi+\cos\theta\sin\phi=\sin(\theta+\phi)$:
$$AB=\begin{bmatrix}\cos\theta\cos\phi-\sin\theta\sin\phi & -\cos\theta\sin\phi-\sin\theta\cos\phi\\ \sin\theta\cos\phi+\cos\theta\sin\phi & -\sin\theta\sin\phi+\cos\theta\cos\phi\end{bmatrix}=\begin{bmatrix}\cos(\theta+\phi)&-\sin(\theta+\phi)\\ \sin(\theta+\phi)&\cos(\theta+\phi)\end{bmatrix}.$$
Interchanging the roles of $\theta$ and $\phi$ gives $BA$, which is the same matrix because $\theta+\phi=\phi+\theta$. Hence $AB=BA$.
(ii) Compute both products.
$$AB = \begin{bmatrix}1&2&1\\3&4&2\\1&3&2\end{bmatrix}\begin{bmatrix}10&-4&-1\\-11&5&0\\9&-5&1\end{bmatrix} = \begin{bmatrix}1\cdot10+2\cdot(-11)+1\cdot9&1\cdot(-4)+2\cdot5+1\cdot(-5)&1\cdot(-1)+2\cdot0+1\cdot1\\3\cdot10+4\cdot(-11)+2\cdot9&3\cdot(-4)+4\cdot5+2\cdot(-5)&3\cdot(-1)+4\cdot0+2\cdot1\\1\cdot10+3\cdot(-11)+2\cdot9&1\cdot(-4)+3\cdot5+2\cdot(-5)&1\cdot(-1)+3\cdot0+2\cdot1\end{bmatrix} = \begin{bmatrix}-3&1&0\\4&-2&-1\\-5&1&1\end{bmatrix}.$$
$$BA = \begin{bmatrix}10&-4&-1\\-11&5&0\\9&-5&1\end{bmatrix}\begin{bmatrix}1&2&1\\3&4&2\\1&3&2\end{bmatrix} = \begin{bmatrix}10\cdot1+(-4)\cdot3+(-1)\cdot1&10\cdot2+(-4)\cdot4+(-1)\cdot3&10\cdot1+(-4)\cdot2+(-1)\cdot2\\(-11)\cdot1+5\cdot3+0\cdot1&(-11)\cdot2+5\cdot4+0\cdot3&(-11)\cdot1+5\cdot2+0\cdot2\\9\cdot1+(-5)\cdot3+1\cdot1&9\cdot2+(-5)\cdot4+1\cdot3&9\cdot1+(-5)\cdot2+1\cdot2\end{bmatrix} = \begin{bmatrix}-3&1&0\\4&-2&-1\\-5&1&1\end{bmatrix}.$$
Both equal $\begin{bmatrix}-3&1&0\\4&-2&-1\\-5&1&1\end{bmatrix}$, so $AB=BA$.
(iii) Compute both products.
$$AB = \begin{bmatrix}1&3&-1\\2&2&-1\\3&0&-1\end{bmatrix}\begin{bmatrix}-2&3&-1\\-1&2&-1\\-6&9&-4\end{bmatrix} = \begin{bmatrix}1\cdot(-2)+3\cdot(-1)+(-1)\cdot(-6)&1\cdot3+3\cdot2+(-1)\cdot9&1\cdot(-1)+3\cdot(-1)+(-1)\cdot(-4)\\2\cdot(-2)+2\cdot(-1)+(-1)\cdot(-6)&2\cdot3+2\cdot2+(-1)\cdot9&2\cdot(-1)+2\cdot(-1)+(-1)\cdot(-4)\\3\cdot(-2)+0\cdot(-1)+(-1)\cdot(-6)&3\cdot3+0\cdot2+(-1)\cdot9&3\cdot(-1)+0\cdot(-1)+(-1)\cdot(-4)\end{bmatrix} = \begin{bmatrix}1&0&0\\0&1&0\\0&0&1\end{bmatrix}.$$
$$BA = \begin{bmatrix}-2&3&-1\\-1&2&-1\\-6&9&-4\end{bmatrix}\begin{bmatrix}1&3&-1\\2&2&-1\\3&0&-1\end{bmatrix} = \begin{bmatrix}(-2)\cdot1+3\cdot2+(-1)\cdot3&(-2)\cdot3+3\cdot2+(-1)\cdot0&(-2)\cdot(-1)+3\cdot(-1)+(-1)\cdot(-1)\\(-1)\cdot1+2\cdot2+(-1)\cdot3&(-1)\cdot3+2\cdot2+(-1)\cdot0&(-1)\cdot(-1)+2\cdot(-1)+(-1)\cdot(-1)\\(-6)\cdot1+9\cdot2+(-4)\cdot3&(-6)\cdot3+9\cdot2+(-4)\cdot0&(-6)\cdot(-1)+9\cdot(-1)+(-4)\cdot(-1)\end{bmatrix} = \begin{bmatrix}1&0&0\\0&1&0\\0&0&1\end{bmatrix}.$$
Both equal the identity matrix $I_3$, so $AB=BA=I$ (the two matrices are inverses of each other).
Shown: $AB=BA$ in all three parts.
Question 4
The matrices are $A = \begin{bmatrix} 2 & -3 & -5 \\ -1 & 4 & 5 \\ 1 & -3 & -4 \end{bmatrix}$ and $B = \begin{bmatrix} 2 & -2 & -4 \\ -1 & 3 & 4 \\ 1 & -2 & -3 \end{bmatrix}$. Prove that multiplying them gives $AB = A$ and $BA = B$.
Solution. Multiply entry by entry.
$$AB = \begin{bmatrix}2&-3&-5\\-1&4&5\\1&-3&-4\end{bmatrix}\begin{bmatrix}2&-2&-4\\-1&3&4\\1&-2&-3\end{bmatrix} = \begin{bmatrix}2\cdot2+(-3)\cdot(-1)+(-5)\cdot1&2\cdot(-2)+(-3)\cdot3+(-5)\cdot(-2)&2\cdot(-4)+(-3)\cdot4+(-5)\cdot(-3)\\(-1)\cdot2+4\cdot(-1)+5\cdot1&(-1)\cdot(-2)+4\cdot3+5\cdot(-2)&(-1)\cdot(-4)+4\cdot4+5\cdot(-3)\\1\cdot2+(-3)\cdot(-1)+(-4)\cdot1&1\cdot(-2)+(-3)\cdot3+(-4)\cdot(-2)&1\cdot(-4)+(-3)\cdot4+(-4)\cdot(-3)\end{bmatrix} = \begin{bmatrix}2&-3&-5\\-1&4&5\\1&-3&-4\end{bmatrix}.$$
This is $A$, so $AB=A$.
$$BA = \begin{bmatrix}2&-2&-4\\-1&3&4\\1&-2&-3\end{bmatrix}\begin{bmatrix}2&-3&-5\\-1&4&5\\1&-3&-4\end{bmatrix} = \begin{bmatrix}2\cdot2+(-2)\cdot(-1)+(-4)\cdot1&2\cdot(-3)+(-2)\cdot4+(-4)\cdot(-3)&2\cdot(-5)+(-2)\cdot5+(-4)\cdot(-4)\\(-1)\cdot2+3\cdot(-1)+4\cdot1&(-1)\cdot(-3)+3\cdot4+4\cdot(-3)&(-1)\cdot(-5)+3\cdot5+4\cdot(-4)\\1\cdot2+(-2)\cdot(-1)+(-3)\cdot1&1\cdot(-3)+(-2)\cdot4+(-3)\cdot(-3)&1\cdot(-5)+(-2)\cdot5+(-3)\cdot(-4)\end{bmatrix} = \begin{bmatrix}2&-2&-4\\-1&3&4\\1&-2&-3\end{bmatrix}.$$
This is $B$, so $BA=B$.
Shown: $AB=A$ and $BA=B$.
Question 5
Take $A = \begin{bmatrix} 0 & c & -b \\ -c & 0 & a \\ b & -a & 0 \end{bmatrix}$ and $B = \begin{bmatrix} a^2 & ab & ac \\ ab & b^2 & bc \\ ac & bc & c^2 \end{bmatrix}$. Prove that their product $AB$ is the zero matrix.
Solution. Find each entry of $AB$ as (row of $A$) times (column of $B$). Row 1 of $A$ is $(0,\ c,\ -b)$, so $$(AB)_{11}=0\cdot a^2+c\cdot ab-b\cdot ac=abc-abc=0,\quad (AB)_{12}=c\,b^2-b\cdot bc=0,\quad (AB)_{13}=c\cdot bc-b\,c^2=0.$$ Row 2 of $A$ is $(-c,\ 0,\ a)$, so $$(AB)_{21}=-c\,a^2+a\cdot ac=0,\quad (AB)_{22}=-c\cdot ab+0\cdot b^2+a\cdot bc=-abc+abc=0,\quad (AB)_{23}=-c\cdot ac+a\,c^2=0.$$ Row 3 of $A$ is $(b,\ -a,\ 0)$, so $$(AB)_{31}=b\,a^2-a\cdot ab=0,\quad (AB)_{32}=b\cdot ab-a\,b^2=0,\quad (AB)_{33}=b\cdot ac-a\cdot bc=0.$$ Every entry vanishes, so $AB=O$. (The reason: each column of $B$ is a multiple of $(a,b,c)^T$, and each row of $A$ is perpendicular to $(a,b,c)$.)
Shown: $AB = O$ (the $3\times3$ zero matrix).
Question 6
For the matrices given in each part, check by actual multiplication that $A(BC)=(AB)C$.
(i) $A = \begin{bmatrix}1&2&5\\0&1&3\end{bmatrix}$, $B = \begin{bmatrix}2&3&0\\1&0&4\\1&-1&2\end{bmatrix}$, $C = \begin{bmatrix}1\\4\\5\end{bmatrix}$.
(ii) $A = \begin{bmatrix}2&3&-1\\3&0&2\end{bmatrix}$, $B = \begin{bmatrix}1\\1\\2\end{bmatrix}$, $C = [1\ \ -2]$.
Solution. (i) Compute $BC$ first, then $A(BC)$; separately compute $AB$ and then $(AB)C$.
$$BC = \begin{bmatrix}2&3&0\\1&0&4\\1&-1&2\end{bmatrix}\begin{bmatrix}1\\4\\5\end{bmatrix} = \begin{bmatrix}2\cdot1+3\cdot4+0\cdot5\\1\cdot1+0\cdot4+4\cdot5\\1\cdot1+(-1)\cdot4+2\cdot5\end{bmatrix} = \begin{bmatrix}14\\21\\7\end{bmatrix}.$$
$$A(BC) = \begin{bmatrix}1&2&5\\0&1&3\end{bmatrix}\begin{bmatrix}14\\21\\7\end{bmatrix} = \begin{bmatrix}1\cdot14+2\cdot21+5\cdot7\\0\cdot14+1\cdot21+3\cdot7\end{bmatrix} = \begin{bmatrix}91\\42\end{bmatrix}.$$
$$AB = \begin{bmatrix}1&2&5\\0&1&3\end{bmatrix}\begin{bmatrix}2&3&0\\1&0&4\\1&-1&2\end{bmatrix} = \begin{bmatrix}1\cdot2+2\cdot1+5\cdot1&1\cdot3+2\cdot0+5\cdot(-1)&1\cdot0+2\cdot4+5\cdot2\\0\cdot2+1\cdot1+3\cdot1&0\cdot3+1\cdot0+3\cdot(-1)&0\cdot0+1\cdot4+3\cdot2\end{bmatrix} = \begin{bmatrix}9&-2&18\\4&-3&10\end{bmatrix}.$$
$$(AB)C = \begin{bmatrix}9&-2&18\\4&-3&10\end{bmatrix}\begin{bmatrix}1\\4\\5\end{bmatrix} = \begin{bmatrix}9\cdot1+(-2)\cdot4+18\cdot5\\4\cdot1+(-3)\cdot4+10\cdot5\end{bmatrix} = \begin{bmatrix}91\\42\end{bmatrix}.$$
Both results equal $\begin{bmatrix}91\\42\end{bmatrix}$.
(ii) Here $B$ is $3\times1$ and $C$ is $1\times2$.
$$BC = \begin{bmatrix}1\\1\\2\end{bmatrix}\begin{bmatrix}1&-2\end{bmatrix} = \begin{bmatrix}1\cdot1&1\cdot(-2)\\1\cdot1&1\cdot(-2)\\2\cdot1&2\cdot(-2)\end{bmatrix} = \begin{bmatrix}1&-2\\1&-2\\2&-4\end{bmatrix}.$$
$$A(BC) = \begin{bmatrix}2&3&-1\\3&0&2\end{bmatrix}\begin{bmatrix}1&-2\\1&-2\\2&-4\end{bmatrix} = \begin{bmatrix}2\cdot1+3\cdot1+(-1)\cdot2&2\cdot(-2)+3\cdot(-2)+(-1)\cdot(-4)\\3\cdot1+0\cdot1+2\cdot2&3\cdot(-2)+0\cdot(-2)+2\cdot(-4)\end{bmatrix} = \begin{bmatrix}3&-6\\7&-14\end{bmatrix}.$$
$$AB = \begin{bmatrix}2&3&-1\\3&0&2\end{bmatrix}\begin{bmatrix}1\\1\\2\end{bmatrix} = \begin{bmatrix}2\cdot1+3\cdot1+(-1)\cdot2\\3\cdot1+0\cdot1+2\cdot2\end{bmatrix} = \begin{bmatrix}3\\7\end{bmatrix}.$$
$$(AB)C = \begin{bmatrix}3\\7\end{bmatrix}\begin{bmatrix}1&-2\end{bmatrix} = \begin{bmatrix}3\cdot1&3\cdot(-2)\\7\cdot1&7\cdot(-2)\end{bmatrix} = \begin{bmatrix}3&-6\\7&-14\end{bmatrix}.$$
Both results equal $\begin{bmatrix}3&-6\\7&-14\end{bmatrix}$.
Verified: $A(BC)=(AB)C$ in both parts.
Question 7
For the matrices in each part, check that $A(B+C)=AB+AC$.
(i) $A = \begin{bmatrix}1&2\\3&4\end{bmatrix}$, $B = \begin{bmatrix}2&0\\1&-3\end{bmatrix}$, $C = \begin{bmatrix}1&-1\\0&1\end{bmatrix}$.
(ii) $A = \begin{bmatrix}2&3\\-1&4\\0&1\end{bmatrix}$, $B = \begin{bmatrix}5&-3\\2&1\end{bmatrix}$, $C = \begin{bmatrix}-1&2\\3&4\end{bmatrix}$.
Solution. (i) $$B+C=\begin{bmatrix}3&-1\\1&-2\end{bmatrix},$$
$$A(B+C) = \begin{bmatrix}1&2\\3&4\end{bmatrix}\begin{bmatrix}3&-1\\1&-2\end{bmatrix} = \begin{bmatrix}1\cdot3+2\cdot1&1\cdot(-1)+2\cdot(-2)\\3\cdot3+4\cdot1&3\cdot(-1)+4\cdot(-2)\end{bmatrix} = \begin{bmatrix}5&-5\\13&-11\end{bmatrix}.$$
$$AB = \begin{bmatrix}1&2\\3&4\end{bmatrix}\begin{bmatrix}2&0\\1&-3\end{bmatrix} = \begin{bmatrix}1\cdot2+2\cdot1&1\cdot0+2\cdot(-3)\\3\cdot2+4\cdot1&3\cdot0+4\cdot(-3)\end{bmatrix} = \begin{bmatrix}4&-6\\10&-12\end{bmatrix}.$$
$$AC = \begin{bmatrix}1&2\\3&4\end{bmatrix}\begin{bmatrix}1&-1\\0&1\end{bmatrix} = \begin{bmatrix}1\cdot1+2\cdot0&1\cdot(-1)+2\cdot1\\3\cdot1+4\cdot0&3\cdot(-1)+4\cdot1\end{bmatrix} = \begin{bmatrix}1&1\\3&1\end{bmatrix}.$$
$$AB+AC=\begin{bmatrix}4&-6\\10&-12\end{bmatrix}+\begin{bmatrix}1&1\\3&1\end{bmatrix}=\begin{bmatrix}5&-5\\13&-11\end{bmatrix}.$$
The two sides agree.
(ii) $$B+C=\begin{bmatrix}4&-1\\5&5\end{bmatrix},$$
$$A(B+C) = \begin{bmatrix}2&3\\-1&4\\0&1\end{bmatrix}\begin{bmatrix}4&-1\\5&5\end{bmatrix} = \begin{bmatrix}2\cdot4+3\cdot5&2\cdot(-1)+3\cdot5\\(-1)\cdot4+4\cdot5&(-1)\cdot(-1)+4\cdot5\\0\cdot4+1\cdot5&0\cdot(-1)+1\cdot5\end{bmatrix} = \begin{bmatrix}23&13\\16&21\\5&5\end{bmatrix}.$$
$$AB = \begin{bmatrix}2&3\\-1&4\\0&1\end{bmatrix}\begin{bmatrix}5&-3\\2&1\end{bmatrix} = \begin{bmatrix}2\cdot5+3\cdot2&2\cdot(-3)+3\cdot1\\(-1)\cdot5+4\cdot2&(-1)\cdot(-3)+4\cdot1\\0\cdot5+1\cdot2&0\cdot(-3)+1\cdot1\end{bmatrix} = \begin{bmatrix}16&-3\\3&7\\2&1\end{bmatrix}.$$
$$AC = \begin{bmatrix}2&3\\-1&4\\0&1\end{bmatrix}\begin{bmatrix}-1&2\\3&4\end{bmatrix} = \begin{bmatrix}2\cdot(-1)+3\cdot3&2\cdot2+3\cdot4\\(-1)\cdot(-1)+4\cdot3&(-1)\cdot2+4\cdot4\\0\cdot(-1)+1\cdot3&0\cdot2+1\cdot4\end{bmatrix} = \begin{bmatrix}7&16\\13&14\\3&4\end{bmatrix}.$$
$$AB+AC=\begin{bmatrix}16&-3\\3&7\\2&1\end{bmatrix}+\begin{bmatrix}7&16\\13&14\\3&4\end{bmatrix}=\begin{bmatrix}23&13\\16&21\\5&5\end{bmatrix}.$$
The two sides agree.
Verified: $A(B+C)=AB+AC$ in both parts.
Question 8
Given $A = \begin{bmatrix}1&0&-2\\3&-1&0\\-2&1&1\end{bmatrix}$, $B = \begin{bmatrix}0&5&-4\\-2&1&3\\-1&0&2\end{bmatrix}$ and $C = \begin{bmatrix}1&5&2\\-1&1&0\\0&-1&1\end{bmatrix}$, check that $A(B-C)=AB-AC$.
Solution. $$B-C=\begin{bmatrix}-1&0&-6\\-1&0&3\\-1&1&1\end{bmatrix},$$
$$A(B-C) = \begin{bmatrix}1&0&-2\\3&-1&0\\-2&1&1\end{bmatrix}\begin{bmatrix}-1&0&-6\\-1&0&3\\-1&1&1\end{bmatrix} = \begin{bmatrix}1\cdot(-1)+0\cdot(-1)+(-2)\cdot(-1)&1\cdot0+0\cdot0+(-2)\cdot1&1\cdot(-6)+0\cdot3+(-2)\cdot1\\3\cdot(-1)+(-1)\cdot(-1)+0\cdot(-1)&3\cdot0+(-1)\cdot0+0\cdot1&3\cdot(-6)+(-1)\cdot3+0\cdot1\\(-2)\cdot(-1)+1\cdot(-1)+1\cdot(-1)&(-2)\cdot0+1\cdot0+1\cdot1&(-2)\cdot(-6)+1\cdot3+1\cdot1\end{bmatrix} = \begin{bmatrix}1&-2&-8\\-2&0&-21\\0&1&16\end{bmatrix}.$$
$$AB = \begin{bmatrix}1&0&-2\\3&-1&0\\-2&1&1\end{bmatrix}\begin{bmatrix}0&5&-4\\-2&1&3\\-1&0&2\end{bmatrix} = \begin{bmatrix}1\cdot0+0\cdot(-2)+(-2)\cdot(-1)&1\cdot5+0\cdot1+(-2)\cdot0&1\cdot(-4)+0\cdot3+(-2)\cdot2\\3\cdot0+(-1)\cdot(-2)+0\cdot(-1)&3\cdot5+(-1)\cdot1+0\cdot0&3\cdot(-4)+(-1)\cdot3+0\cdot2\\(-2)\cdot0+1\cdot(-2)+1\cdot(-1)&(-2)\cdot5+1\cdot1+1\cdot0&(-2)\cdot(-4)+1\cdot3+1\cdot2\end{bmatrix} = \begin{bmatrix}2&5&-8\\2&14&-15\\-3&-9&13\end{bmatrix}.$$
$$AC = \begin{bmatrix}1&0&-2\\3&-1&0\\-2&1&1\end{bmatrix}\begin{bmatrix}1&5&2\\-1&1&0\\0&-1&1\end{bmatrix} = \begin{bmatrix}1\cdot1+0\cdot(-1)+(-2)\cdot0&1\cdot5+0\cdot1+(-2)\cdot(-1)&1\cdot2+0\cdot0+(-2)\cdot1\\3\cdot1+(-1)\cdot(-1)+0\cdot0&3\cdot5+(-1)\cdot1+0\cdot(-1)&3\cdot2+(-1)\cdot0+0\cdot1\\(-2)\cdot1+1\cdot(-1)+1\cdot0&(-2)\cdot5+1\cdot1+1\cdot(-1)&(-2)\cdot2+1\cdot0+1\cdot1\end{bmatrix} = \begin{bmatrix}1&7&0\\4&14&6\\-3&-10&-3\end{bmatrix}.$$
$$AB-AC=\begin{bmatrix}2&5&-8\\2&14&-15\\-3&-9&13\end{bmatrix}-\begin{bmatrix}1&7&0\\4&14&6\\-3&-10&-3\end{bmatrix}=\begin{bmatrix}1&-2&-8\\-2&0&-21\\0&1&16\end{bmatrix}.$$
The two sides are equal.
Verified: $A(B-C)=AB-AC$.
Question 9
For $A = \begin{bmatrix}ab&b^2\\-a^2&-ab\end{bmatrix}$, prove that $A^2$ is the zero matrix.
Solution. $$A^2=\begin{bmatrix}ab&b^2\\-a^2&-ab\end{bmatrix}\begin{bmatrix}ab&b^2\\-a^2&-ab\end{bmatrix}=\begin{bmatrix}a^2b^2-a^2b^2 & ab^3-ab^3\\ -a^3b+a^3b & -a^2b^2+a^2b^2\end{bmatrix}=\begin{bmatrix}0&0\\0&0\end{bmatrix}.$$ Each entry is a term minus the same term, so it cancels.
Shown: $A^2=O$.
Question 10
Let $A = \begin{bmatrix}2&-2&-4\\-1&3&4\\1&-2&-3\end{bmatrix}$. Prove $A^2=A$.
Solution. Square the matrix.
$$A^2 = \begin{bmatrix}2&-2&-4\\-1&3&4\\1&-2&-3\end{bmatrix}\begin{bmatrix}2&-2&-4\\-1&3&4\\1&-2&-3\end{bmatrix} = \begin{bmatrix}2\cdot2+(-2)\cdot(-1)+(-4)\cdot1&2\cdot(-2)+(-2)\cdot3+(-4)\cdot(-2)&2\cdot(-4)+(-2)\cdot4+(-4)\cdot(-3)\\(-1)\cdot2+3\cdot(-1)+4\cdot1&(-1)\cdot(-2)+3\cdot3+4\cdot(-2)&(-1)\cdot(-4)+3\cdot4+4\cdot(-3)\\1\cdot2+(-2)\cdot(-1)+(-3)\cdot1&1\cdot(-2)+(-2)\cdot3+(-3)\cdot(-2)&1\cdot(-4)+(-2)\cdot4+(-3)\cdot(-3)\end{bmatrix} = \begin{bmatrix}2&-2&-4\\-1&3&4\\1&-2&-3\end{bmatrix}.$$
This is $A$ itself, so $A$ is idempotent.
Shown: $A^2=A$.
Question 11
Let $A = \begin{bmatrix}4&-1&-4\\3&0&-4\\3&-1&-3\end{bmatrix}$. Prove that $A^2=I$, the identity matrix of order 3.
Solution. Square the matrix.
$$A^2 = \begin{bmatrix}4&-1&-4\\3&0&-4\\3&-1&-3\end{bmatrix}\begin{bmatrix}4&-1&-4\\3&0&-4\\3&-1&-3\end{bmatrix} = \begin{bmatrix}4\cdot4+(-1)\cdot3+(-4)\cdot3&4\cdot(-1)+(-1)\cdot0+(-4)\cdot(-1)&4\cdot(-4)+(-1)\cdot(-4)+(-4)\cdot(-3)\\3\cdot4+0\cdot3+(-4)\cdot3&3\cdot(-1)+0\cdot0+(-4)\cdot(-1)&3\cdot(-4)+0\cdot(-4)+(-4)\cdot(-3)\\3\cdot4+(-1)\cdot3+(-3)\cdot3&3\cdot(-1)+(-1)\cdot0+(-3)\cdot(-1)&3\cdot(-4)+(-1)\cdot(-4)+(-3)\cdot(-3)\end{bmatrix} = \begin{bmatrix}1&0&0\\0&1&0\\0&0&1\end{bmatrix}.$$
This is $I_3$, so $A^2=I$.
Shown: $A^2=I$.
Question 12
With $A = \begin{bmatrix}2&-1\\3&2\end{bmatrix}$ and $B = \begin{bmatrix}0&4\\-1&7\end{bmatrix}$, find $3A^2-2B+I$.
Solution. First $A^2$.
$$A^2 = \begin{bmatrix}2&-1\\3&2\end{bmatrix}\begin{bmatrix}2&-1\\3&2\end{bmatrix} = \begin{bmatrix}2\cdot2+(-1)\cdot3&2\cdot(-1)+(-1)\cdot2\\3\cdot2+2\cdot3&3\cdot(-1)+2\cdot2\end{bmatrix} = \begin{bmatrix}1&-4\\12&1\end{bmatrix}.$$
Then
$$3A^2-2B+I=3\begin{bmatrix}1&-4\\12&1\end{bmatrix}-2\begin{bmatrix}0&4\\-1&7\end{bmatrix}+\begin{bmatrix}1&0\\0&1\end{bmatrix}=\begin{bmatrix}3&-12\\36&3\end{bmatrix}-\begin{bmatrix}0&8\\-2&14\end{bmatrix}+\begin{bmatrix}1&0\\0&1\end{bmatrix}=\begin{bmatrix}4&-20\\38&-10\end{bmatrix}.$$
$$\begin{bmatrix}4&-20\\38&-10\end{bmatrix}$$
Question 13
For $A = \begin{bmatrix}2&-2\\-3&4\end{bmatrix}$, evaluate $-A^2+6A$.
Solution. First $A^2$.
$$A^2 = \begin{bmatrix}2&-2\\-3&4\end{bmatrix}\begin{bmatrix}2&-2\\-3&4\end{bmatrix} = \begin{bmatrix}2\cdot2+(-2)\cdot(-3)&2\cdot(-2)+(-2)\cdot4\\(-3)\cdot2+4\cdot(-3)&(-3)\cdot(-2)+4\cdot4\end{bmatrix} = \begin{bmatrix}10&-12\\-18&22\end{bmatrix}.$$
Then
$$-A^2+6A=-\begin{bmatrix}10&-12\\-18&22\end{bmatrix}+\begin{bmatrix}12&-12\\-18&24\end{bmatrix}=\begin{bmatrix}2&0\\0&2\end{bmatrix}.$$
(This is $2I$: the matrix satisfies $A^2-6A+2I=O$.)
$$\begin{bmatrix}2&0\\0&2\end{bmatrix}$$
Question 14
For $A = \begin{bmatrix}3&1\\-1&2\end{bmatrix}$, prove that $A^2-5A+7I=O$.
Solution. First $A^2$.
$$A^2 = \begin{bmatrix}3&1\\-1&2\end{bmatrix}\begin{bmatrix}3&1\\-1&2\end{bmatrix} = \begin{bmatrix}3\cdot3+1\cdot(-1)&3\cdot1+1\cdot2\\(-1)\cdot3+2\cdot(-1)&(-1)\cdot1+2\cdot2\end{bmatrix} = \begin{bmatrix}8&5\\-5&3\end{bmatrix}.$$
Then
$$A^2-5A+7I=\begin{bmatrix}8&5\\-5&3\end{bmatrix}-\begin{bmatrix}15&5\\-5&10\end{bmatrix}+\begin{bmatrix}7&0\\0&7\end{bmatrix}=\begin{bmatrix}8-15+7&5-5+0\\-5+5+0&3-10+7\end{bmatrix}=\begin{bmatrix}0&0\\0&0\end{bmatrix}.$$
Shown: $A^2-5A+7I=O$.
Question 15
Show that $A = \begin{bmatrix}2&3\\1&2\end{bmatrix}$ satisfies $A^3-4A^2+A=O$.
Solution. Find $A^2$ and then $A^3=A^2\cdot A$.
$$A^2 = \begin{bmatrix}2&3\\1&2\end{bmatrix}\begin{bmatrix}2&3\\1&2\end{bmatrix} = \begin{bmatrix}2\cdot2+3\cdot1&2\cdot3+3\cdot2\\1\cdot2+2\cdot1&1\cdot3+2\cdot2\end{bmatrix} = \begin{bmatrix}7&12\\4&7\end{bmatrix}.$$
$$A^3 = \begin{bmatrix}7&12\\4&7\end{bmatrix}\begin{bmatrix}2&3\\1&2\end{bmatrix} = \begin{bmatrix}7\cdot2+12\cdot1&7\cdot3+12\cdot2\\4\cdot2+7\cdot1&4\cdot3+7\cdot2\end{bmatrix} = \begin{bmatrix}26&45\\15&26\end{bmatrix}.$$
Now
$$A^3-4A^2+A=\begin{bmatrix}26&45\\15&26\end{bmatrix}-\begin{bmatrix}28&48\\16&28\end{bmatrix}+\begin{bmatrix}2&3\\1&2\end{bmatrix}=\begin{bmatrix}26-28+2&45-48+3\\15-16+1&26-28+2\end{bmatrix}=\begin{bmatrix}0&0\\0&0\end{bmatrix}.$$
Shown: $A^3-4A^2+A=O$.
Question 16
For $A = \begin{bmatrix}3&-2\\4&-2\end{bmatrix}$, determine the constant $k$ for which $A^2=kA-2I$.
Solution. First $A^2$.
$$A^2 = \begin{bmatrix}3&-2\\4&-2\end{bmatrix}\begin{bmatrix}3&-2\\4&-2\end{bmatrix} = \begin{bmatrix}3\cdot3+(-2)\cdot4&3\cdot(-2)+(-2)\cdot(-2)\\4\cdot3+(-2)\cdot4&4\cdot(-2)+(-2)\cdot(-2)\end{bmatrix} = \begin{bmatrix}1&-2\\4&-4\end{bmatrix}.$$
The right side is $kA-2I=\begin{bmatrix}3k-2&-2k\\4k&-2k-2\end{bmatrix}$. Equating entries with $A^2$: $-2k=-2$ gives $k=1$. Check the others: $3k-2=1$, $4k=4$, $-2k-2=-4$. All agree with $A^2=\begin{bmatrix}1&-2\\4&-4\end{bmatrix}$.
$$k=1$$
Question 17
Take $A = \begin{bmatrix}-1&2\\3&1\end{bmatrix}$ and $f(x)=x^2-2x+3$. Find $f(A)$.
Solution. Replace $x$ by $A$ and the constant $3$ by $3I$: $f(A)=A^2-2A+3I$.
$$A^2 = \begin{bmatrix}-1&2\\3&1\end{bmatrix}\begin{bmatrix}-1&2\\3&1\end{bmatrix} = \begin{bmatrix}(-1)\cdot(-1)+2\cdot3&(-1)\cdot2+2\cdot1\\3\cdot(-1)+1\cdot3&3\cdot2+1\cdot1\end{bmatrix} = \begin{bmatrix}7&0\\0&7\end{bmatrix}.$$
$$f(A)=\begin{bmatrix}7&0\\0&7\end{bmatrix}-\begin{bmatrix}-2&4\\6&2\end{bmatrix}+\begin{bmatrix}3&0\\0&3\end{bmatrix}=\begin{bmatrix}12&-4\\-6&8\end{bmatrix}.$$
$$f(A)=\begin{bmatrix}12&-4\\-6&8\end{bmatrix}$$
Question 18
Take $A = \begin{bmatrix}1&2\\4&-3\end{bmatrix}$ and $f(x)=2x^3+4x+5$. Find $f(A)$.
Solution. Here $f(A)=2A^3+4A+5I$. Find $A^2$, then $A^3=A^2A$.
$$A^2 = \begin{bmatrix}1&2\\4&-3\end{bmatrix}\begin{bmatrix}1&2\\4&-3\end{bmatrix} = \begin{bmatrix}1\cdot1+2\cdot4&1\cdot2+2\cdot(-3)\\4\cdot1+(-3)\cdot4&4\cdot2+(-3)\cdot(-3)\end{bmatrix} = \begin{bmatrix}9&-4\\-8&17\end{bmatrix}.$$
$$A^3 = \begin{bmatrix}9&-4\\-8&17\end{bmatrix}\begin{bmatrix}1&2\\4&-3\end{bmatrix} = \begin{bmatrix}9\cdot1+(-4)\cdot4&9\cdot2+(-4)\cdot(-3)\\(-8)\cdot1+17\cdot4&(-8)\cdot2+17\cdot(-3)\end{bmatrix} = \begin{bmatrix}-7&30\\60&-67\end{bmatrix}.$$
$$f(A)=2\begin{bmatrix}-7&30\\60&-67\end{bmatrix}+4\begin{bmatrix}1&2\\4&-3\end{bmatrix}+5\begin{bmatrix}1&0\\0&1\end{bmatrix}=\begin{bmatrix}-14&60\\120&-134\end{bmatrix}+\begin{bmatrix}4&8\\16&-12\end{bmatrix}+\begin{bmatrix}5&0\\0&5\end{bmatrix}=\begin{bmatrix}-5&68\\136&-141\end{bmatrix}.$$
$$f(A)=\begin{bmatrix}-5&68\\136&-141\end{bmatrix}$$
Question 19
Find $x$ and $y$ if $\begin{bmatrix}2&-3\\1&1\end{bmatrix}\begin{bmatrix}x\\y\end{bmatrix} = \begin{bmatrix}1\\3\end{bmatrix}$.
Solution. Multiplying out the left side gives two equations: $2x-3y=1$ and $x+y=3$. From the second, $x=3-y$. Substituting in the first, $2(3-y)-3y=1$, so $6-5y=1$ and $y=1$. Then $x=2$. Check: $2(2)-3(1)=1$ and $2+1=3$.
$$x=2,\ y=1$$
Question 20
Solve for $x$ and $y$: $\begin{bmatrix}3&-4\\1&2\end{bmatrix}\begin{bmatrix}x\\y\end{bmatrix} = \begin{bmatrix}3\\11\end{bmatrix}$.
Solution. The product gives $3x-4y=3$ and $x+2y=11$. Doubling the second, $2x+4y=22$; adding to the first, $5x=25$, so $x=5$. Then $2y=11-5=6$, so $y=3$. Check: $3(5)-4(3)=3$.
$$x=5,\ y=3$$
Question 21
For $A = \begin{bmatrix}3&1\\7&5\end{bmatrix}$, determine $x$ and $y$ so that $A^2+xI=yA$.
Solution. First $A^2$.
$$A^2 = \begin{bmatrix}3&1\\7&5\end{bmatrix}\begin{bmatrix}3&1\\7&5\end{bmatrix} = \begin{bmatrix}3\cdot3+1\cdot7&3\cdot1+1\cdot5\\7\cdot3+5\cdot7&7\cdot1+5\cdot5\end{bmatrix} = \begin{bmatrix}16&8\\56&32\end{bmatrix}.$$
The condition $A^2+xI=yA$ reads $$\begin{bmatrix}16+x&8\\56&32+x\end{bmatrix}=\begin{bmatrix}3y&y\\7y&5y\end{bmatrix}.$$ The $(1,2)$ entries give $y=8$. Then $16+x=3y=24$ gives $x=8$. Check: $56=7y$ and $32+x=40=5y$ both hold.
$$x=8,\ y=8$$
Question 22
For $A = \begin{bmatrix}3&2\\1&1\end{bmatrix}$, find $a$ and $b$ so that $A^2+aA+bI=O$.
Solution. First $A^2$.
$$A^2 = \begin{bmatrix}3&2\\1&1\end{bmatrix}\begin{bmatrix}3&2\\1&1\end{bmatrix} = \begin{bmatrix}3\cdot3+2\cdot1&3\cdot2+2\cdot1\\1\cdot3+1\cdot1&1\cdot2+1\cdot1\end{bmatrix} = \begin{bmatrix}11&8\\4&3\end{bmatrix}.$$
The condition is $$\begin{bmatrix}11+3a+b&8+2a\\4+a&3+a+b\end{bmatrix}=\begin{bmatrix}0&0\\0&0\end{bmatrix}.$$ From $4+a=0$, $a=-4$ (and $8+2a=0$ agrees). Then $3+a+b=0$ gives $b=1$. Check: $11-12+1=0$.
$$a=-4,\ b=1$$
Question 23
Find the matrix $A$ for which $\begin{bmatrix}5&-7\\-2&3\end{bmatrix}A = \begin{bmatrix}-16&-6\\7&2\end{bmatrix}$.
Solution. Let $P=\begin{bmatrix}5&-7\\-2&3\end{bmatrix}$. Then $|P|=15-14=1\neq0$, so $P$ is invertible and $A=P^{-1}\begin{bmatrix}-16&-6\\7&2\end{bmatrix}$. Swapping the diagonal entries and negating the others, with $|P|=1$: $$P^{-1}=\begin{bmatrix}3&7\\2&5\end{bmatrix}.$$ Hence $$A=\begin{bmatrix}3&7\\2&5\end{bmatrix}\begin{bmatrix}-16&-6\\7&2\end{bmatrix}=\begin{bmatrix}-48+49&-18+14\\-32+35&-12+10\end{bmatrix}=\begin{bmatrix}1&-4\\3&-2\end{bmatrix}.$$ Check: $5(1)-7(3)=-16$ and $-2(1)+3(3)=7$.
$$A=\begin{bmatrix}1&-4\\3&-2\end{bmatrix}$$
Question 24
Find the matrix $A$ for which $A\begin{bmatrix}2&3\\4&5\end{bmatrix} = \begin{bmatrix}0&-4\\10&3\end{bmatrix}$.
Solution. Let $P=\begin{bmatrix}2&3\\4&5\end{bmatrix}$. Then $|P|=10-12=-2\neq0$, and $$P^{-1}=\frac{1}{-2}\begin{bmatrix}5&-3\\-4&2\end{bmatrix}.$$ Since $A$ multiplies $P$ on the right, $A=\begin{bmatrix}0&-4\\10&3\end{bmatrix}P^{-1}$: $$A=-\frac12\begin{bmatrix}0&-4\\10&3\end{bmatrix}\begin{bmatrix}5&-3\\-4&2\end{bmatrix}=-\frac12\begin{bmatrix}16&-8\\38&-24\end{bmatrix}=\begin{bmatrix}-8&4\\-19&12\end{bmatrix}.$$ Check: first row of $A$ times $P$: $(-8)(2)+4(4)=0$ and $(-8)(3)+4(5)=-4$.
$$A=\begin{bmatrix}-8&4\\-19&12\end{bmatrix}$$
Question 25
Let $A = \begin{bmatrix}1&-1\\2&-1\end{bmatrix}$ and $B = \begin{bmatrix}a&-1\\b&-1\end{bmatrix}$. If $(A+B)^2=A^2+B^2$, find $a$ and $b$.
Solution. Expanding, $(A+B)^2=A^2+AB+BA+B^2$, so the condition is $AB+BA=O$. Compute $$AB=\begin{bmatrix}a-b&-1+1\\2a-b&-2+1\end{bmatrix}=\begin{bmatrix}a-b&0\\2a-b&-1\end{bmatrix},\qquad BA=\begin{bmatrix}a-2&-a+1\\b-2&-b+1\end{bmatrix}.$$ Adding (the $(2,1)$ entry is $(2a-b)+(b-2)=2a-2$), $$AB+BA=\begin{bmatrix}2a-b-2&1-a\\2a-2&-b\end{bmatrix}=O.$$ The $(1,2)$ entry gives $a=1$, the $(2,2)$ entry gives $b=0$, and then $2a-b-2=0$ and $2a-2=0$ hold as well.
$$a=1,\ b=0$$
Question 26
Let $F(x)=\begin{bmatrix}\cos x&-\sin x&0\\\sin x&\cos x&0\\0&0&1\end{bmatrix}$. Prove that $F(x)F(y)=F(x+y)$.
Solution. $$F(x)F(y)=\begin{bmatrix}\cos x\cos y-\sin x\sin y&-\cos x\sin y-\sin x\cos y&0\\ \sin x\cos y+\cos x\sin y&-\sin x\sin y+\cos x\cos y&0\\0&0&1\end{bmatrix}.$$ Using the addition formulae $\cos(x+y)=\cos x\cos y-\sin x\sin y$ and $\sin(x+y)=\sin x\cos y+\cos x\sin y$, this is $$\begin{bmatrix}\cos(x+y)&-\sin(x+y)&0\\ \sin(x+y)&\cos(x+y)&0\\0&0&1\end{bmatrix}=F(x+y).$$
Shown: $F(x)F(y)=F(x+y)$.
Question 27
Let $A = \begin{bmatrix}\cos\alpha&\sin\alpha\\-\sin\alpha&\cos\alpha\end{bmatrix}$. Prove that $A^2=\begin{bmatrix}\cos 2\alpha&\sin 2\alpha\\-\sin 2\alpha&\cos 2\alpha\end{bmatrix}$.
Solution. $$A^2=\begin{bmatrix}\cos^2\alpha-\sin^2\alpha&\cos\alpha\sin\alpha+\sin\alpha\cos\alpha\\-\sin\alpha\cos\alpha-\cos\alpha\sin\alpha&-\sin^2\alpha+\cos^2\alpha\end{bmatrix}.$$ By the double-angle formulae $\cos^2\alpha-\sin^2\alpha=\cos2\alpha$ and $2\sin\alpha\cos\alpha=\sin2\alpha$, $$A^2=\begin{bmatrix}\cos2\alpha&\sin2\alpha\\-\sin2\alpha&\cos2\alpha\end{bmatrix}.$$
Shown.
Question 28
Find $x$ if $[1\ \ x\ \ 1]\begin{bmatrix}1&2&3\\4&5&6\\3&2&5\end{bmatrix}\begin{bmatrix}1\\-2\\3\end{bmatrix} = O$.
Solution. Multiply the last two matrices first: $$\begin{bmatrix}1&2&3\\4&5&6\\3&2&5\end{bmatrix}\begin{bmatrix}1\\-2\\3\end{bmatrix}=\begin{bmatrix}1-4+9\\4-10+18\\3-4+15\end{bmatrix}=\begin{bmatrix}6\\12\\14\end{bmatrix}.$$ Then $[1\ \ x\ \ 1]\begin{bmatrix}6\\12\\14\end{bmatrix}=6+12x+14=12x+20$. Setting this to zero, $x=-\dfrac{20}{12}=-\dfrac53$.
$$x=-\frac{5}{3}$$
Question 29
Find $x$ if $[x\ \ 4\ \ 1]\begin{bmatrix}2&1&2\\1&0&2\\0&2&-4\end{bmatrix}\begin{bmatrix}x\\4\\-1\end{bmatrix} = O$.
Solution. Multiply the last two matrices: $$\begin{bmatrix}2&1&2\\1&0&2\\0&2&-4\end{bmatrix}\begin{bmatrix}x\\4\\-1\end{bmatrix}=\begin{bmatrix}2x+4-2\\x+0-2\\0+8+4\end{bmatrix}=\begin{bmatrix}2x+2\\x-2\\12\end{bmatrix}.$$ Then $[x\ \ 4\ \ 1]$ times this is $x(2x+2)+4(x-2)+12=2x^2+6x+4$. Setting it to zero: $x^2+3x+2=0$, so $(x+1)(x+2)=0$.
$$x=-1\ \text{or}\ x=-2$$
Question 30
Find $a$ and $b$ such that $\begin{bmatrix} a & b \\ -a & 2b \end{bmatrix}\begin{bmatrix} 2 \\ -1 \end{bmatrix} = \begin{bmatrix} 5 \\ 4 \end{bmatrix}$.
Solution. Multiplying gives $2a-b=5$ and $-2a-2b=4$. Adding the two, $-3b=9$, so $b=-3$. Then $2a=5+b=2$, so $a=1$. Check: $-2(1)-2(-3)=4$.
$$a=1,\ b=-3$$
Question 31
Take $A = \begin{bmatrix} 3 & 4 \\ -4 & -3 \end{bmatrix}$ and $f(x)=x^2-5x+7$. Find $f(A)$.
Solution. We need $f(A)=A^2-5A+7I$.
$$A^2 = \begin{bmatrix}3&4\\-4&-3\end{bmatrix}\begin{bmatrix}3&4\\-4&-3\end{bmatrix} = \begin{bmatrix}3\cdot3+4\cdot(-4)&3\cdot4+4\cdot(-3)\\(-4)\cdot3+(-3)\cdot(-4)&(-4)\cdot4+(-3)\cdot(-3)\end{bmatrix} = \begin{bmatrix}-7&0\\0&-7\end{bmatrix}.$$
$$f(A)=\begin{bmatrix}-7&0\\0&-7\end{bmatrix}-\begin{bmatrix}15&20\\-20&-15\end{bmatrix}+\begin{bmatrix}7&0\\0&7\end{bmatrix}=\begin{bmatrix}-15&-20\\20&15\end{bmatrix}.$$
$$f(A)=\begin{bmatrix}-15&-20\\20&15\end{bmatrix}$$
Question 32
Let $A = \begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix}$. Use induction to prove that $A^n=\begin{bmatrix} 1 & n \\ 0 & 1 \end{bmatrix}$ for every natural number $n$.
Solution. Base case. For $n=1$ the formula gives $\begin{bmatrix}1&1\\0&1\end{bmatrix}=A$, which is true.
Inductive step. Suppose $A^k=\begin{bmatrix}1&k\\0&1\end{bmatrix}$ for some $k\ge1$. Then $$A^{k+1}=A^k\cdot A=\begin{bmatrix}1&k\\0&1\end{bmatrix}\begin{bmatrix}1&1\\0&1\end{bmatrix}=\begin{bmatrix}1&1+k\\0&1\end{bmatrix}=\begin{bmatrix}1&k+1\\0&1\end{bmatrix}.$$ So the formula holds for $k+1$ whenever it holds for $k$. By the principle of mathematical induction it holds for all $n\in N$.
Proved: $A^n=\begin{bmatrix}1&n\\0&1\end{bmatrix}$ for all $n\in N$.
Question 33
Give an example of non-zero $2\times2$ matrices $A$ and $B$ for which $AB=O$ but $BA\neq O$.
Solution. We want a product that kills one way but not the other. Take $A=\begin{bmatrix}1&0\\0&0\end{bmatrix}$ and $B=\begin{bmatrix}0&0\\1&0\end{bmatrix}$, both non-zero. Then $$AB=\begin{bmatrix}1\cdot0+0\cdot1&1\cdot0+0\cdot0\\0&0\end{bmatrix}=\begin{bmatrix}0&0\\0&0\end{bmatrix},\qquad BA=\begin{bmatrix}0\cdot1+0\cdot0&0\\1\cdot1+0\cdot0&0\end{bmatrix}=\begin{bmatrix}0&0\\1&0\end{bmatrix}\neq O.$$
$$A=\begin{bmatrix}1&0\\0&0\end{bmatrix},\ B=\begin{bmatrix}0&0\\1&0\end{bmatrix}$$ is one such pair (many others work).
Question 34
Give an example of matrices $A$, $B$, $C$ with $AB=AC$ although $B\neq C$.
Solution. Cancellation fails for matrices when $A$ has no inverse. Take $A=\begin{bmatrix}1&0\\0&0\end{bmatrix}$, $B=\begin{bmatrix}0&0\\1&0\end{bmatrix}$, $C=\begin{bmatrix}0&0\\0&1\end{bmatrix}$. Then $$AB=\begin{bmatrix}0&0\\0&0\end{bmatrix},\qquad AC=\begin{bmatrix}1\cdot0&1\cdot0\\0&0\end{bmatrix}=\begin{bmatrix}0&0\\0&0\end{bmatrix}.$$ So $AB=AC$, yet $B\neq C$.
$$A=\begin{bmatrix}1&0\\0&0\end{bmatrix},\ B=\begin{bmatrix}0&0\\1&0\end{bmatrix},\ C=\begin{bmatrix}0&0\\0&1\end{bmatrix}$$ is one such triple (many others work).
Question 35
For $A = \begin{bmatrix} 1 & 0 \\ -1 & 7 \end{bmatrix}$ and $B = \begin{bmatrix} 0 & 4 \\ -1 & 7 \end{bmatrix}$, find $3A^2-2B+I$.
Solution. First $A^2$.
$$A^2 = \begin{bmatrix}1&0\\-1&7\end{bmatrix}\begin{bmatrix}1&0\\-1&7\end{bmatrix} = \begin{bmatrix}1\cdot1+0\cdot(-1)&1\cdot0+0\cdot7\\(-1)\cdot1+7\cdot(-1)&(-1)\cdot0+7\cdot7\end{bmatrix} = \begin{bmatrix}1&0\\-8&49\end{bmatrix}.$$
$$3A^2-2B+I=\begin{bmatrix}3&0\\-24&147\end{bmatrix}-\begin{bmatrix}0&8\\-2&14\end{bmatrix}+\begin{bmatrix}1&0\\0&1\end{bmatrix}=\begin{bmatrix}4&-8\\-22&134\end{bmatrix}.$$
$$\begin{bmatrix}4&-8\\-22&134\end{bmatrix}$$
Question 36
The equation $\begin{bmatrix} 2 & 3 \\ 5 & 7 \end{bmatrix}\begin{bmatrix} 1 & -3 \\ -2 & 4 \end{bmatrix} = \begin{bmatrix} -4 & 6 \\ -9 & x \end{bmatrix}$ holds. Find $x$.
Solution. The $(2,2)$ entry of the product is (row 2 of the first) times (column 2 of the second): $5(-3)+7(4)=-15+28=13$. The other entries confirm the product: $2(1)+3(-2)=-4$, $2(-3)+3(4)=6$, $5(1)+7(-2)=-9$.
$$x=13$$
Common mistakes
- Multiplying entry by entry (as in addition) instead of row by column. In Question 1(iv), $AB$ is a single number but $BA$ is a $4\times4$ matrix.
- Forgetting to check the sizes first. In Question 1(i) and 1(ii) one of the two products simply does not exist.
- Writing a constant as a plain number inside a matrix polynomial. In $A^2-5A+7I$ (Question 14), the $7$ must become $7I$ before it can be added to a matrix.
- Assuming $AB=BA$. Questions 2 and 33 exist to show that it fails, and Question 34 shows you cannot cancel $A$ from $AB=AC$.
- In Question 25, expanding $(A+B)^2$ as $A^2+2AB+B^2$. Because $AB\neq BA$ in general, the correct expansion has $AB+BA$.
- In Questions 23 and 24, multiplying by the inverse on the wrong side: $PA=C$ gives $A=P^{-1}C$, but $AP=C$ gives $A=CP^{-1}$.
Practise next
Exercise 5C is the first exercise in this chapter on multiplication; the neighbouring Exercise 5D builds on it with transposes and symmetric matrices, so carry on there.
Shiwam's Classes: IIT JEEJEE Main and Advanced, worked in full
Subscribe