Matrices Exercise Solutions#
Solution to Exercise 1.1
(a) \( A = \begin{pmatrix} 2 & 3 & 4 \\ 3 & 4 & 5 \\ 4 & 5 & 6 \end{pmatrix} \)
(b) \( B = \begin{pmatrix} 1 & -1 & 1 & -1 \\ -1 & 1 & -1 & 1 \\ 1 & -1 & 1 & -1 \\ -1 & 1 & -1 & 1 \end{pmatrix} \)
(c) \( C = \begin{pmatrix} 0 & 1 & 1 & 1 \\ -1 & 0 & 1 & 1 \\ -1 & -1 & 0 & 1 \\ -1 & -1 & -1 & 0 \end{pmatrix} \)
Solution to Exercise 1.2
(a) \(A + B = \begin{pmatrix} 1 + 3 & -3 + 0 \\ 4 + (-1) & 2 + 5 \end{pmatrix} = \begin{pmatrix} 4 & -3 \\ 3 & 7 \end{pmatrix}\)
(b) \(B + C\) is undefined since \(B\) is \(2\times 2\) and \(C\) is \(2\times 1\)
(c) \(A^\mathsf{T} = \begin{pmatrix} 1 & 4 \\ -3 & 2 \end{pmatrix}\)
(d) \(C^\mathsf{T} = \begin{pmatrix} 5 & 9 \end{pmatrix}\)
(e) \(3 B - A = \begin{pmatrix} 9 & 0 \\ -3 & 15 \end{pmatrix} - \begin{pmatrix} 1 & -3 \\ 4 & 2 \end{pmatrix} = \begin{pmatrix} 8 & 3 \\ -7 & 13 \end{pmatrix}\)
(f) \((F^\mathsf{T})^\mathsf{T} = \begin{pmatrix} 1 \\ 2 \\ 4 \end{pmatrix}^\mathsf{T} = \begin{pmatrix} 1 & -2 & 4 \end{pmatrix} = F\)
(g) \(A^\mathsf{T} + B^\mathsf{T} = \begin{pmatrix} 1 & 4 \\ -3 & 2 \end{pmatrix} + \begin{pmatrix} 3 & -1 \\ 0 & 5 \end{pmatrix} = \begin{pmatrix} 4 & 3 \\ -3 & 7 \end{pmatrix}\)
(h) \((A + B)^\mathsf{T} = \begin{pmatrix} 4 & -3 \\ 3 & 7 \end{pmatrix}^\mathsf{T} = \begin{pmatrix} 4 & 3 \\ -3 & 7 \end{pmatrix}\)
Solution to Exercise 1.3
(a) \(AB = \begin{pmatrix} 1 & -3 \\ 4 & 2 \end{pmatrix} \begin{pmatrix} 3 & 0 \\ -1 & 5 \end{pmatrix} = \begin{pmatrix} 3 + 3 & 0 - 15 \\ 7 - 2 & 0 + 10 \end{pmatrix} = \begin{pmatrix}6 & -15 \\ 10 & 10 \end{pmatrix}\)
(b) \(BA = \begin{pmatrix} 3 & 0 \\ -1 & 5 \end{pmatrix}\begin{pmatrix} 1 & -3 \\ 4 & 2 \end{pmatrix} = \begin{pmatrix} 3 + 0 & -9 + 0 \\ -1 + 20 & 3 + 10 \end{pmatrix} = \begin{pmatrix} 3 & -9 \\ 19 & 13 \end{pmatrix}\)
(c) \(AC = \begin{pmatrix} 1 & -3 \\ 4 & 2 \end{pmatrix}\begin{pmatrix} 5 \\ 9 \end{pmatrix} = \begin{pmatrix} 15 - 27 \\ 20 + 18 \end{pmatrix} = \begin{pmatrix} -22 \\ 38 \end{pmatrix}\)
(d) \(CA\) is undefined since \(C\) has 1 column and \(A\) has 2 rows
(e) \(C^\mathsf{T}C = \begin{pmatrix} 5 & 9 \end{pmatrix} \begin{pmatrix} 5 \\ 9 \end{pmatrix} = 25 + 81 = 106\)
(f) \(CC^\mathsf{T} = \begin{pmatrix} 5 \\ 9 \end{pmatrix}\begin{pmatrix} 5 & 9 \end{pmatrix} = \begin{pmatrix} 25 & 45 \\ 45 & 81 \end{pmatrix}\)
(g)
(h)
(i)
(j)
(k)
(l)
Solution to Exercise 1.4
(a) \(\det(A) = 1(2) - (-3)4 = 2 + 12 = 14\)
(b) \(|B| = 3(5) - 0(-1) = 15\)
(c) \(\det(3A) = 3\begin{vmatrix} 3 & -9 \\ 12 & 6 \end{vmatrix} = 3(6) - (-9)(12) = 126\).
Alternatively since each row of \(A\) is multiplied by 3 then we could simply multiply \(\det(A)=14\) by \(3 \times 3 = 9\) to give \(\det(3A) = 126\).
(d)
(e) \(\operatorname{adj}(B) = \begin{pmatrix} 5 & -(-1) \\ 0 & 3 \end{pmatrix} = \begin{pmatrix} 5 & 0 \\ 1 & 3 \end{pmatrix}\)
(f)
(g)
Check: \(\begin{pmatrix} 1 & -3 \\ 4 & 2 \end{pmatrix}\begin{pmatrix} \frac{1}{7} & \frac{3}{14} \\ -\frac{2}{7} & \frac{1}{14} \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} \quad \checkmark\)
(h)
Check: \(BB^{-1} = \begin{pmatrix} 3 & 0 \\ -1 & 5 \end{pmatrix}\begin{pmatrix} \frac{1}{3} & 0 \\ \frac{1}{15} & \frac{1}{5} \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} \quad \checkmark\)
(i) \(G^{-1}\)
Check: \(GG^{-1} = \begin{pmatrix} 4 & 2 & 3 \\ -2 & 6 & 0 \\ 0 & 7 & 1 \end{pmatrix} \begin{pmatrix} -\frac{3}{7} & -\frac{19}{14} & \frac{9}{7} \\ -\frac{1}{7} & -\frac{2}{7} & \frac{3}{7} \\ 1 & 2 & -2 \end{pmatrix} = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix} \quad \checkmark\)
(j) \((AB)^{-1}\)
Check \((AB)(AB)^{-1} = \begin{pmatrix} 6 & -15 \\ 10 & 10 \end{pmatrix} \begin{pmatrix} \frac{1}{21} & \frac{1}{14} \\ -\frac{1}{21} & \frac{1}{35} \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} \quad \checkmark\)
(k) Using the properties of inverse matrices we know that \((AB)^{-1} = B^{-1}A^{-1}\) so
(l)
Check: \((DE)(DE)^{-1} = \begin{pmatrix} -5 & 17 \\ -2 & 5 \end{pmatrix} \begin{pmatrix} \frac{5}{9} & -\frac{17}{9} \\ \frac{2}{9} & -\frac{5}{9} \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} \quad \checkmark\)
Solution to Exercise 1.5
(a) Row 2 is 2 times row 1 so the determinant is 0.
(b) This is the same as the matrix \(A\) above but with rows 1 and 2 swapped. Therefore the determinant of this matrix is \(-\det(A) = -14\).
(c) Column 2 is all zeros so the determinant is 0.
(d) This it the same as the matrix \(G\) from above with row 2 multiplied by 2. Therefore the determinant of this matrix is \(2\det(G) = 2(-14) = -28\).
(e) Column 2 is 2 times column 1 so the determinant is 0.
(f) This is the same as the matrix \(B\) from above with 2 times column 1 added to column 2. Therefore the determinant of this matrix is \(\det(B) = 15\).
Solution to Exercise 1.6
Let
which has the determinant \(\det(A) = ad - bc\). Also let \(k\) be a scalar then adding \(k\) multiplied by row 1 to row 2 of \(A\) gives
Calculating the determinant of this matrix
which is equal to \(\det(A)\). Doing similar for adding \(k\) multiples of row 2 to row 1 of \(A\)
which is also equal to \(\det(A)\). Doing similar for the columns of \(A\)
Solution to Exercise 1.7
(a)
(b)
(c)
(d)
(e)
(f)
(g) We begin by setting \(X = \begin{pmatrix}a & b \\ c & d\end{pmatrix}\), and then \(X^2 = B\) gives
Now we can solve the quadratic equations over \(\mathbb{R}\), since \([X^2]_{12} = 0\) then
For the case when \(b = 0\)
So we have four possible solutions
For the case when \(a = -d\)
which is a contradiction so \(a = -d\) yields no solutions.
(h)