[motivation]
### The diagonal dream
Suppose we are given a linear map $T : V \to V$ on a finite-dimensional vector space $V$ over a field $F$, and suppose we can find a basis $\mathcal{B} = (v_1, v_2, \ldots, v_n)$ of $V$ such that $T$ acts on each basis vector by simply scaling it:
\begin{align*}
T(v_1) &= \lambda_1 v_1, \\
T(v_2) &= \lambda_2 v_2, \\
&\;\;\vdots \\
T(v_n) &= \lambda_n v_n,
\end{align*}
for scalars $\lambda_1, \lambda_2, \ldots, \lambda_n \in F$. In this situation the matrix of $T$ with respect to $\mathcal{B}$ is the diagonal matrix $D = \operatorname{diag}(\lambda_1, \ldots, \lambda_n)$. Diagonal matrices are the simplest matrices to work with: computing $D^k$ reduces to raising each diagonal entry to the $k$-th power, solving the system $Dx = b$ reduces to $n$ independent one-variable equations, and the matrix exponential $e^{tD}$ is simply $\operatorname{diag}(e^{\lambda_1 t}, \ldots, e^{\lambda_n t})$.
This makes diagonal representations indispensable in applications. For a system of linear ordinary differential equations $x'(t) = Ax(t)$ where $A$ is a real $n \times n$ matrix, if $A$ is diagonalisable with $A = PDP^{-1}$, then the substitution $y = P^{-1}x$ decouples the system into $n$ independent equations $y_i'(t) = \lambda_i y_i(t)$, each with the elementary solution $y_i(t) = y_i(0) e^{\lambda_i t}$.
### What goes wrong
Not every linear map admits such a convenient basis. Consider the matrix
\begin{align*}
A = \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix}
\end{align*}
acting on $\mathbb{R}^2$. The only eigenvalue is $\lambda = 0$, but the eigenspace is the span of $(1, 0)^T$, which is one-dimensional. There is no basis of $\mathbb{R}^2$ consisting of eigenvectors of $A$, so $A$ cannot be diagonalised. Such matrices are called **defective**. The central question of this article is: given a linear map $T$, how do we determine whether a basis of eigenvectors exists, and if it does, how do we find it?
### Eigenvectors as the building blocks
Geometrically, an eigenvector of $T$ determines an **invariant direction** -- a one-dimensional subspace $\operatorname{span}(v)$ that $T$ maps into itself. The eigenvalue $\lambda$ records whether $T$ stretches ($|\lambda| > 1$), compresses ($|\lambda| < 1$), reflects ($\lambda < 0$), or annihilates ($\lambda = 0$) vectors along that direction. Understanding all the invariant directions of $T$, together with the dimensions of the spaces they generate, is the key to deciding whether $T$ can be diagonalised.
[/motivation]