Linear Algebra — Practice Problems
These practice questions accompany the Linear Algebra lecture and will be discussed in the review session.
Question 1
Compute the following matrix and vector products:
- \(\begin{bmatrix}3 & 1\\ 2 & 4 \end{bmatrix} \begin{bmatrix}2 & 1 & 0 \\ 1 & 5 & 2 \end{bmatrix}\)
- \(\begin{bmatrix}0 & 0 & 1 \\ 3 & 1 & 1 \\ -2 & 3 & 0 \end{bmatrix}\begin{bmatrix}2 & 0 & 5 \\ 1 & 3 & 1 \\ 4 & 1 & 2 \end{bmatrix}\)
- \(\begin{bmatrix}5 & 3 & 2 \end{bmatrix}\begin{bmatrix}2 & 7 & 1 \\ 0 & 4 & 5 \\ 2 & 3 & 4 \end{bmatrix}\)
- \(\begin{bmatrix}2 & 3 \\ 1 & -2 \end{bmatrix}\begin{bmatrix}2 \\ -1 \end{bmatrix}\)
Question 2
Being formal and explicit in the rules of matrix algebra (e.g. when things are commutative, distributive, when you require invertibility, etc.) solve the following equations for \(x \in \mathbb{R}^N\), with constants: vector \(b,c \in \mathbb{R}^N\), matrices \(A,D,Q,R\) all \(\mathbb{R}^{N\times N}\), and scalar \(m \in \mathbb{R}\),
- \(x A = b + c\)
- \(Ax + \left(x^{\top} D\right)^{\top} = b\)
- \(Q^{-1} \left( A\, x\, m + m b\right) = Rx\)
Question 3
Write the following as a system of equations in matrix form:
- \(\left\{\begin{matrix}2x + 3y = 2 \\ x - 2y = -1\end{matrix}\right.\) where \(\{x,y\}\) are variables
- \(\left\{\begin{matrix}2x - 3y = 1 \\ 3x + my = -2\end{matrix}\right.\) where \(\{x,y\}\) are variables
- \(\left\{\begin{matrix}2a + b - 1 = 0 \\ 3b + 4c = 2 \\ -2a + c = 0\end{matrix}\right.\) where \(\{a,b,c\}\) are variables
- \(\left\{\begin{matrix}a + b = -3 \\ c - y - 4 b = 0\end{matrix}\right.\) where \(\{a,b,c \}\) are variables
Question 4
- Find \(G \in \mathbb{R}^2\) such that \(G \cdot \begin{bmatrix}a & b\end{bmatrix}\) returns the second element, \(b\).
- Find \(H \in \mathbb{R}^{1 \times 2}\) such that \(H \begin{bmatrix}x & y\end{bmatrix}^\top\) returns the sum \(x + y\).
- Find a \(2 \times 2\) matrix \(M\) such that \(M \begin{bmatrix}p & q\end{bmatrix}^\top = \begin{bmatrix}q & p\end{bmatrix}^\top\) (i.e., swaps the two elements).
- Let \(T\) be a linear transformation from \(\mathbb{R}^2\) to \(\mathbb{R}^2\) that doubles the first coordinate and leaves the second unchanged. Write a matrix representation of \(T\).
Question 5
- Find a vector \(x \in \mathbb{R}^2\) such that \(x \cdot \begin{bmatrix}1 & 2\end{bmatrix} = 0\)
- Find a vector \(x \in \mathbb{R}^2\) such that \(x \cdot \begin{bmatrix}0 & 1\end{bmatrix} = 1\)
- Find 3 vectors of unit length in \(\mathbb{R}^3\) which are mutually orthogonal
- Given vectors \(x^1\) and \(x^2\) which may have a different norm (i.e., length), how can I use the norm and inner product to test if they are orthogonal? collinear?
Question 6
- What is the span of the vectors \(\begin{bmatrix}1 & 0\end{bmatrix}\) and \(\begin{bmatrix}0 & 1\end{bmatrix}\)?
- What is the span of the vectors \(\begin{bmatrix}1 & 0\end{bmatrix}\) and \(\begin{bmatrix}1 & 1\end{bmatrix}\)?
- What is the span of the vectors \(\begin{bmatrix}1 & 0 & 2\end{bmatrix}\), \(\begin{bmatrix}0 & 1 & 2\end{bmatrix}\)?
- For a set of vectors \(x^1, \ldots, x^k \in \mathbb{R}^n\), what is the highest dimension the span could be? The lowest?
Question 7
Let \(A = \begin{bmatrix} 1 & 4 \\ 2 & 5 \\ 3 & 6 \end{bmatrix}\) and \(b = \begin{bmatrix} b_1 \\ b_2 \end{bmatrix}\).
Write the matrix-vector product \(A b\) as a linear combination of the columns of the matrix.
Question 8
Let \(A = \begin{bmatrix} 1 & 0 & 1 \\ 0 & 1 & 1 \\ 0 & 0 & 0 \end{bmatrix} \equiv \begin{bmatrix} \mathbf{a}_1 & \mathbf{a}_2 & \mathbf{a}_3 \end{bmatrix}\) and \(b = \begin{bmatrix} b_1 \\ b_2 \\ b_3 \end{bmatrix}\).
- Write the matrix-vector product \(A b\) as a linear combination of the columns of \(A\).
- What is the span of the columns of \(A\)?
- Come up with 3 different variations on \(\begin{bmatrix} b_1 & b_2 & b_3 \end{bmatrix}^\top\) that solve \(A b = \begin{bmatrix} 2 & 3 & 0 \end{bmatrix}^\top\), or explain why it is not possible.
- Come up with 3 different variations on \(\begin{bmatrix} b_1 & b_2 & b_3 \end{bmatrix}^\top\) that solve \(A b = \begin{bmatrix} 2 & 3 & 1 \end{bmatrix}^\top\), or explain why it is not possible.
Question 9
Let \(A\) and \(B\) be invertible \(n \times n\) matrices. Show that \(B^{-1}A^{-1}\) is the inverse of \(AB\) — that is, \((AB)^{-1} = B^{-1}A^{-1}\). (Note the order reversal.)
PhD Track
Building on the PhD-track sections of the Linear Algebra lecture: projection onto the column space, the structure of \(X'X\), and quadratic forms and definiteness.