Matrices and Linear Equations: Exercises with Worked Solutions

Ten matrices and linear equations exercises with full worked solutions, covering vectors, dot products, matrix multiplication, determinants, inverses, and solving systems with Cramer’s rule. Try them, then check your work.

These ten exercises follow the companion guide on matrices and linear equations. They run from vector equality and the dot product through matrix multiplication, determinants, cofactors, and the inverse, finishing with all three methods for solving a linear system. Work each one fully before turning to the solutions, which explain the reasoning step by step rather than just stating an answer.

Exercises

Exercise 1. Decide whether each pair of vectors is equal, and justify your answer.

(a)(2 −1 5) and (2 −1 5)(b)(14) and (41)\text{(a)}\quad \begin{pmatrix} 2 \ -1 \ 5 \end{pmatrix} \text{ and } \begin{pmatrix} 2 \ -1 \ 5 \end{pmatrix} \qquad \text{(b)}\quad \begin{pmatrix} 1 & 4 \end{pmatrix} \text{ and } \begin{pmatrix} 4 & 1 \end{pmatrix}

Exercise 2. Given the two row vectors below, compute the transpose of the first, the scalar multiple two times the first, their sum, and their difference.

𝐱=(3−24)𝐲=(15−2)\mathbf{x} = \begin{pmatrix} 3 & -2 & 4 \end{pmatrix} \qquad \mathbf{y} = \begin{pmatrix} 1 & 5 & -2 \end{pmatrix}

Exercise 3. A market stall sells three items at prices of 60, 45, and 80 pence. In one hour it sells 4, 6, and 2 of them respectively. Using a dot product, find the total revenue and state it in pounds.

Exercise 4. Consider the matrix below. State its dimension, say whether it is square, and write down the entries in row 2 column 4 and in row 3 column 1.

𝖬=(7251 3946 8025)\mathsf{M} = \begin{pmatrix} 7 & 2 & 5 & 1 \ 3 & 9 & 4 & 6 \ 8 & 0 & 2 & 5 \end{pmatrix}

Exercise 5. For the two matrices below, find the transpose of the first, then compute the linear combination three times the first minus two times the second.

𝖠=(2−13 041)𝖡=(12−1 302) \mathsf{A} = \begin{pmatrix} 2 & -1 & 3 \ 0 & 4 & 1 \end{pmatrix} \qquad \mathsf{B} = \begin{pmatrix} 1 & 2 & -1 \ 3 & 0 & 2 \end{pmatrix}

Exercise 6. For the matrices below, compute the product of the first times the second, and explain whether the product in the opposite order exists.

𝖠=(21 −13)𝖡=(405 2−31) \mathsf{A} = \begin{pmatrix} 2 & 1 \ -1 & 3 \end{pmatrix} \qquad \mathsf{B} = \begin{pmatrix} 4 & 0 & 5 \ 2 & -3 & 1 \end{pmatrix}

Exercise 7. Compute the determinant of the matrix below using cofactor expansion along the first row.

𝖠=(210 131 402)\mathsf{A} = \begin{pmatrix} 2 & 1 & 0 \ 1 & 3 & 1 \ 4 & 0 & 2 \end{pmatrix}

Exercise 8. For the same matrix as Exercise 7, find the minor and the cofactor of the entry in row 2 column 3.

Exercise 9. Find the inverse of the matrix below, then use it to solve the system where the right-hand side is the vector with entries 4 and 9.

𝖠=(21 53)\mathsf{A} = \begin{pmatrix} 2 & 1 \ 5 & 3 \end{pmatrix}

Exercise 10. Solve the following system using Cramer’s rule.

x+2y+z=4x + 2y + z = 4
2x−y+3z=42x – y + 3z = 4
3x+y−z=33x + y – z = 3

Solutions

Solution 1. Two vectors are equal only when they share a dimension and agree in every component. In part (a) the dimensions match and every corresponding entry is identical, so the vectors are equal. In part (b) the dimensions match but the first entries already disagree, three is not one, so the vectors are not equal. Order matters.

Solution 2. Transposing turns the row into a column.

𝐱T=(3 −2 4) \mathbf{x}^{T} = \begin{pmatrix} 3 \ -2 \ 4 \end{pmatrix}

Scalar multiplication scales every entry.

2𝐱=(6−48)2\mathbf{x} = \begin{pmatrix} 6 & -4 & 8 \end{pmatrix}

Addition and subtraction work entry by entry.

𝐱+𝐲=(432)𝐱−𝐲=(2−76)\mathbf{x} + \mathbf{y} = \begin{pmatrix} 4 & 3 & 2 \end{pmatrix} \qquad \mathbf{x} – \mathbf{y} = \begin{pmatrix} 2 & -7 & 6 \end{pmatrix}

Solution 3. The dot product of the price vector with the quantity vector multiplies corresponding entries and sums them.

(60)(4)+(45)(6)+(80)(2)=240+270+160=670(60)(4) + (45)(6) + (80)(2) = 240 + 270 + 160 = 670

The total revenue is 670 pence, which is six pounds seventy.

Solution 4. The matrix has three rows and four columns, so its dimension is three by four. Since the number of rows differs from the number of columns it is not square. The entry in row 2 column 4 is 6, and the entry in row 3 column 1 is 8.

Solution 5. The transpose turns each row into a column.

𝖠T=(20 −14 31)\mathsf{A}^{T} = \begin{pmatrix} 2 & 0 \ -1 & 4 \ 3 & 1 \end{pmatrix}

Scaling each matrix first gives the two pieces of the combination.

3𝖠=(6−39 0123)2𝖡=(24−2 604)3\mathsf{A} = \begin{pmatrix} 6 & -3 & 9 \ 0 & 12 & 3 \end{pmatrix} \qquad 2\mathsf{B} = \begin{pmatrix} 2 & 4 & -2 \ 6 & 0 & 4 \end{pmatrix}

Subtracting entry by entry gives the result.

3𝖠−2𝖡=(4−711 −612−1)3\mathsf{A} – 2\mathsf{B} = \begin{pmatrix} 4 & -7 & 11 \ -6 & 12 & -1 \end{pmatrix}

Solution 6. The first matrix is two by two and the second is two by three. The inner dimensions agree, both two, so the product exists and is two by three. Each entry is the dot product of a row of the first with a column of the second.

𝖠𝖡=(10−311 2−9−2) \mathsf{A}\mathsf{B} = \begin{pmatrix} 10 & -3 & 11 \ 2 & -9 & -2 \end{pmatrix}

The product in the opposite order does not exist, because the second matrix has three columns while the first has only two rows, and multiplication requires those two counts to match.

Solution 7. Expanding along the first row, the third term vanishes because its coefficient is zero, leaving two two-by-two determinants to evaluate.

|𝖠|=2|31 02|−1|11 42|+0|\mathsf{A}| = 2\begin{vmatrix} 3 & 1 \ 0 & 2 \end{vmatrix} – 1\begin{vmatrix} 1 & 1 \ 4 & 2 \end{vmatrix} + 0

Evaluating the two minors gives six and minus two.

|𝖠|=2(6)−1(−2)=12+2=14|\mathsf{A}| = 2(6) – 1(-2) = 12 + 2 = 14

Solution 8. Deleting row 2 and column 3 leaves the two-by-two block formed by rows 1 and 3 and columns 1 and 2.

(21 40) \begin{pmatrix} 2 & 1 \ 4 & 0 \end{pmatrix}

Its determinant is the minor.

M2,3=(2)(0)−(1)(4)=−4M_{2,3} = (2)(0) – (1)(4) = -4

Applying the sign factor, where two plus three is odd, flips the sign.

C2,3=(−1)2+3M2,3=(−1)(−4)=4C_{2,3} = (-1)^{2+3} M_{2,3} = (-1)(-4) = 4

Solution 9. For a two by two matrix, the determinant is the product of the diagonal minus the product of the off-diagonal.

|𝖠|=(2)(3)−(1)(5)=1 |\mathsf{A}| = (2)(3) – (1)(5) = 1

Because the determinant is nonzero the inverse exists. Swap the diagonal entries, negate the off-diagonal ones, and divide by the determinant.

𝖠−1=11(3−1 −52)=(3−1 −52)\mathsf{A}^{-1} = \frac{1}{1}\begin{pmatrix} 3 & -1 \ -5 & 2 \end{pmatrix} = \begin{pmatrix} 3 & -1 \ -5 & 2 \end{pmatrix}

The solution is the inverse times the right-hand side.

𝐱=(3−1 −52)(4 9)=(3 −2)\mathbf{x} = \begin{pmatrix} 3 & -1 \ -5 & 2 \end{pmatrix}\begin{pmatrix} 4 \ 9 \end{pmatrix} = \begin{pmatrix} 3 \ -2 \end{pmatrix}

So the solution is x equals 3 and y equals minus 2, which you can confirm by substituting back into the original two equations.

Solution 10. Write the coefficient matrix and the right-hand side.

𝖠=(121 2−13 31−1)𝐛=(4 4 3) \mathsf{A} = \begin{pmatrix} 1 & 2 & 1 \ 2 & -1 & 3 \ 3 & 1 & -1 \end{pmatrix} \qquad \mathbf{b} = \begin{pmatrix} 4 \ 4 \ 3 \end{pmatrix}

Cofactor expansion along the first row gives the determinant of the coefficient matrix.

|𝖠|=1(−2)−2(−11)+1(5)=25|\mathsf{A}| = 1(-2) – 2(-11) + 1(5) = 25

Replacing the first column with the right-hand side and taking the determinant gives the numerator for the first unknown.

|𝖠1|=|421 4−13 31−1|=25|\mathsf{A}_1| = \begin{vmatrix} 4 & 2 & 1 \ 4 & -1 & 3 \ 3 & 1 & -1 \end{vmatrix} = 25

Replacing the second column with the right-hand side gives the numerator for the second unknown.

|𝖠2|=|141 243 33−1|=25|\mathsf{A}_2| = \begin{vmatrix} 1 & 4 & 1 \ 2 & 4 & 3 \ 3 & 3 & -1 \end{vmatrix} = 25

Replacing the third column gives the numerator for the third unknown.

|𝖠3|=|124 2−14 313|=25 |\mathsf{A}_3| = \begin{vmatrix} 1 & 2 & 4 \ 2 & -1 & 4 \ 3 & 1 & 3 \end{vmatrix} = 25

Each unknown is its numerator divided by the determinant of the coefficient matrix.

x=2525=1y=2525=1z=2525=1 x = \frac{25}{25} = 1 \qquad y = \frac{25}{25} = 1 \qquad z = \frac{25}{25} = 1

The solution is x equals 1, y equals 1, and z equals 1, which checks against all three original equations.

See you soon.

View Comments (2)

Leave a Reply

Subscribe to My Newsletter

Subscribe to my email newsletter to get the latest posts delivered right to your email. Pure inspiration, zero spam.