Linear algebra in thirty problems

There are no explanations on this page. Solve the problems in order and you'll have rebuilt the core of a first course in linear algebra yourself, from "what is a dependence" to the spectral theorem.

This is how R. L. Moore taught at Texas: hand out the theorems, forbid the textbook, and make the students prove everything. It's slow, and it's the only way I know to make the ideas really yours. Each problem has hints you can reveal one at a time, and a solution sketch for when you're properly stuck. Try to hold out for it. The shaded boxes define every term before the problems use it. The lines on the left show which earlier problems each one leans on. Once you've solved a problem, mark it and you'll find out what you just proved.

Vectors are columns in $\mathbb R^n$ unless a problem says otherwise. You're allowed to use anything from an earlier problem, even one you skipped.

New to proofs? The start-here page has a quick check and a free book to warm up with.

Spaces

When is a vector one you already had?

Let $v_1 = (1,2,3)$, $v_2 = (4,5,6)$ and $v_3 = (7,8,9)$. Find numbers $a, b, c$, not all zero, with $av_1 + bv_2 + cv_3 = 0$. Then find a vector in $\mathbb R^3$ that can't be written as $av_1 + bv_2 + cv_3$ for any $a, b, c$.

Suppose $v_1, \dots, v_k$ are dependent: some combination $c_1v_1 + \dots + c_kv_k$ with not all $c_i = 0$ equals $0$. Show that some $v_j$ is a combination of $v_1, \dots, v_{j-1}$, the ones before it.

Show that each of these operations on a system of linear equations leaves the set of solutions unchanged: swapping two equations, multiplying an equation by a non-zero number, and adding a multiple of one equation to another.

A homogeneous system has every right-hand side equal to $0$. Show that a homogeneous system with more unknowns than equations has a solution that isn't all zeros.

Show that any $n + 1$ vectors in $\mathbb R^n$ are dependent.

Suppose $u_1, \dots, u_m$ are independent and every $u_j$ lies in the span of $w_1, \dots, w_n$. Show that $m \le n$. Deduce that any two bases of the same subspace have the same number of vectors.

Let $V$ be a subspace of $\mathbb R^n$. Show that any independent list in $V$ can be extended to a basis of $V$, and that any list spanning $V$ can be cut down to a basis of $V$.

Maps

Matrices are what linear functions look like once you pick coordinates.

Call $T : \mathbb R^n \to \mathbb R^m$ linear if $T(x + y) = T(x) + T(y)$ and $T(cx) = cT(x)$. Let $e_1, \dots, e_n$ be the standard basis. Show that $T$ is completely determined by $T(e_1), \dots, T(e_n)$, and that $T(x) = Ax$ where $A$ is the matrix whose columns are $T(e_1), \dots, T(e_n)$.

Let $S : \mathbb R^p \to \mathbb R^n$ have matrix $B$ and $T : \mathbb R^n \to \mathbb R^m$ have matrix $A$. Find the matrix of $T \circ S$, meaning "do $S$, then $T$". Explain why its $(i, j)$ entry is row $i$ of $A$ dotted with column $j$ of $B$.

Find $2 \times 2$ matrices $A$ and $B$ with $AB \neq BA$. Find a non-zero $A$ with $A^2 = 0$. Find $A \neq \pm I$ with $A^2 = I$. For the first, can you pick $A$ to be a rotation and $B$ a reflection, and see the answer without multiplying?

For a linear map $T$, the kernel $\ker T$ is the set of $x$ with $T(x) = 0$, and the image $\operatorname{im} T$ is the set of all outputs $T(x)$. Show that both are subspaces. Then show that $T$ is one-to-one exactly when $\ker T = \{0\}$.

Let $T : \mathbb R^n \to \mathbb R^m$ be linear. Show that $$\dim \ker T + \dim \operatorname{im} T = n.$$

Show that a linear map $\mathbb R^n \to \mathbb R^n$ is one-to-one exactly when it's onto. Use this to prove that if $A$ and $B$ are $n \times n$ with $AB = I$, then $BA = I$.

The row rank of a matrix is the dimension of the span of its rows, and the column rank is the dimension of the span of its columns. Show that they're equal.

Volume

Build the determinant from three rules instead of memorising a formula.

Suppose $D$ takes $n \times n$ matrices to numbers and obeys three rules:

(a) $D$ is linear in each column when the others are held fixed. (b) $D(A) = 0$ whenever two columns of $A$ are equal. (c) $D(I) = 1$.

Show that swapping two columns multiplies $D$ by $-1$, and that adding a multiple of one column to another doesn't change $D$.

For $2 \times 2$ matrices, show that the three rules force $$D\begin{pmatrix}a&b\\c&d\end{pmatrix} = ad - bc.$$

Show that $D(A) = 0$ if the columns of $A$ are dependent, and $D(A) \neq 0$ if they're independent. Explain why this means there's at most one function satisfying the three rules.

Show that $\det(BA) = \det B \det A$.

Show that $|ad - bc|$ is the area of the parallelogram whose sides are the columns $(a, c)$ and $(b, d)$.

Eigenvectors

The directions a matrix doesn't turn.

Let $A = \begin{pmatrix}2&1\\1&2\end{pmatrix}$. Find every non-zero $v$ such that $Av$ is a multiple of $v$. Use what you find to compute $A^{10}$ without multiplying ten matrices.

The Fibonacci numbers satisfy $F_0 = 0$, $F_1 = 1$ and $F_{n+1} = F_n + F_{n-1}$. Show that $$\begin{pmatrix}F_{n+1}\\F_n\end{pmatrix} = \begin{pmatrix}1&1\\1&0\end{pmatrix}^n\begin{pmatrix}1\\0\end{pmatrix},$$ and use eigenvectors to find a closed formula for $F_n$.

Show that eigenvectors of $A$ with different eigenvalues are independent.

Show that the rotation $R = \begin{pmatrix}0&-1\\1&0\end{pmatrix}$ has no real eigenvectors, but has two if you allow complex numbers. Show that the shear $S = \begin{pmatrix}1&1\\0&1\end{pmatrix}$ has only one eigenvector direction, even over the complex numbers.

Show that $\lambda$ is an eigenvalue of $A$ exactly when $\det(A - \lambda I) = 0$. For $A = \begin{pmatrix}a&b\\c&d\end{pmatrix}$, show the two eigenvalues (counted with repeats, possibly complex) add to $a + d$ and multiply to $ad - bc$.

Let $A$ and $B$ be $n \times n$. Show that $AB$ and $BA$ have the same eigenvalues.

Perpendicular

Add a way to measure angles and the best theorem in the subject arrives.

Show that non-zero vectors $u_1, \dots, u_k$ that are pairwise perpendicular ($u_i \cdot u_j = 0$ for $i \neq j$) are independent.

Given independent $v_1, v_2, v_3$, construct $u_1, u_2, u_3$ of length $1$ and pairwise perpendicular, such that $u_1, \dots, u_k$ spans the same subspace as $v_1, \dots, v_k$ for each $k$.

Let $A$ be $m \times n$ and $b \in \mathbb R^m$. Show that $x$ makes $\|Ax - b\|$ as small as possible exactly when $A^T(Ax - b) = 0$.

Let $A$ be a real symmetric matrix, $A^T = A$. Show that its eigenvalues are all real, and that eigenvectors with different eigenvalues are perpendicular.

Show that every real symmetric matrix has an orthonormal basis of eigenvectors. In other words, $A = QDQ^T$ with $Q$ orthogonal and $D$ diagonal.