📊 Section 1 — Interactive Simulation
Choose a 2×2 matrix $A$. Watch any vector $\mathbf{v}$ transform to $A\mathbf{v}$. The eigenvectors are the special directions where $A\mathbf{v}=\lambda\mathbf{v}$ — only stretched, never rotated. Drag the input vector with your mouse/finger.
Animation
Matrix Preset
Matrix Entries
Input Vector v
Display Options
Tips
• Eigenvectors stay on their span — only $A\mathbf{v}$ direction unchanged is the test.
• Power Iteration: rotating any starting $\mathbf{v}$ converges to the dominant eigenvector.
• Complex eigenvalues mean rotation; the simulation shows them as DNE in the real plane and lists complex values.
💡 Section 2 — The Idea, Step by Step
One gentle climb from a playground picture to the characteristic equation — no prior linear algebra needed to start.
📐 Section 3 — Definition & Diagonalization Theorem
From eigen-equation to diagonalization, with full derivation.
Let $A \in \R^{n\times n}$. A scalar $\lambda \in \C$ is an eigenvalue of $A$ iff there is a nonzero vector $\mathbf{v}\in\C^n$ with $$A\mathbf{v} = \lambda \mathbf{v}.$$ Such $\mathbf{v}$ is an eigenvector for $\lambda$. The set $E_\lambda = \ker(A-\lambda I)$ is the eigenspace of $\lambda$.
$A \in \R^{n\times n}$ is diagonalizable iff there is an invertible matrix $P$ and a diagonal matrix $D$ with $A = P D P^{-1}$. Equivalently, iff $A$ has $n$ linearly independent eigenvectors. The columns of $P$ are eigenvectors; the diagonal of $D$ is the corresponding eigenvalues.
When diagonalizable: $A^k = P D^k P^{-1}$ — matrix powers reduce to scalar powers on the diagonal. This is why eigenvalues control long-term behaviour.
Symbol Table
| Symbol | Meaning | Type |
|---|---|---|
| $A$ | Square matrix under study | $n\times n$, real (or complex) |
| $\lambda$ | Eigenvalue | Scalar in $\C$ |
| $\mathbf{v}$ | Eigenvector | Nonzero in $\C^n$ |
| $p_A(\lambda)$ | Characteristic polynomial $\det(A-\lambda I)$ | Degree-$n$ polynomial in $\lambda$ |
| $E_\lambda$ | Eigenspace $\ker(A-\lambda I)$ | Subspace of $\C^n$ |
| $\tr(A)$ | Trace = sum of diagonal entries = $\lambda_1+\cdots+\lambda_n$ | Scalar |
| $\det(A)$ | Determinant = $\lambda_1\lambda_2\cdots\lambda_n$ | Scalar |
| $P, D$ | Eigenvector matrix, eigenvalue diagonal | $A = PDP^{-1}$ |
Derivation — How to Find Eigenvalues and Diagonalize
Simulation ↔ Symbol Mapping
matrix entries a₁₁..a₂₂ | entries of $A$, the matrix being analyzed |
readout tr(A), det(A) | $\tr(A) = a+d$, $\det(A) = ad - bc$ |
readout discriminant Δ | $\Delta = \tr(A)^2 - 4\det(A)$. $\Delta>0$: real distinct; $\Delta=0$: repeated; $\Delta<0$: complex conjugate pair |
readout λ₁, λ₂ | roots of $p_A(\lambda)$ from the quadratic formula in Step 3 |
readout v₁, v₂ | basis vectors from $\ker(A - \lambda_i I)$, normalized |
vector v on canvas | input vector — drag with mouse/touch, or use $v_x, v_y$ sliders / angle $\theta$ |
slider k (iter count) | shows $A^k\mathbf{v}$ — for power iteration, this converges to dominant eigenvector direction |
graph characteristic polynomial | plots $p_A(\lambda)$ in $\lambda$; zero crossings are eigenvalues |
Worked Example — $A = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}$
Step 1 — Characteristic polynomial: $\tr(A) = 7$, $\det(A) = 4\cdot 3 - 1\cdot 2 = 10$. So $p_A(\lambda) = \lambda^2 - 7\lambda + 10 = (\lambda-5)(\lambda-2)$.
Step 2 — Eigenvalues: $\lambda_1 = 5,\ \lambda_2 = 2$.
Step 3 — Eigenvector for $\lambda_1=5$: $(A-5I)\mathbf{v}=\mathbf{0}$ gives $\begin{pmatrix}-1 & 1 \\ 2 & -2\end{pmatrix}\mathbf{v}=\mathbf{0}$, i.e.\ $-v_x + v_y = 0$. So $\mathbf{v}_1 = (1, 1)^\top$.
Step 4 — Eigenvector for $\lambda_2=2$: $(A-2I)\mathbf{v}=\mathbf{0}$ gives $\begin{pmatrix}2 & 1 \\ 2 & 1\end{pmatrix}\mathbf{v}=\mathbf{0}$, i.e.\ $2v_x + v_y = 0$. So $\mathbf{v}_2 = (1, -2)^\top$.
Step 5 — Diagonalize: $P = \begin{pmatrix}1 & 1\\ 1 & -2\end{pmatrix}$, $D = \begin{pmatrix}5 & 0\\ 0 & 2\end{pmatrix}$, $P^{-1} = \dfrac{1}{-3}\begin{pmatrix}-2 & -1\\ -1 & 1\end{pmatrix} = \begin{pmatrix}2/3 & 1/3 \\ 1/3 & -1/3\end{pmatrix}$.
Verify: $PDP^{-1} = \begin{pmatrix}1 & 1\\ 1 & -2\end{pmatrix}\begin{pmatrix}5 & 0\\ 0 & 2\end{pmatrix}\begin{pmatrix}2/3 & 1/3\\ 1/3 & -1/3\end{pmatrix} = \begin{pmatrix}4 & 1\\ 2 & 3\end{pmatrix} = A$. $\boxed{A = PDP^{-1}.}$
❓ Section 4 — Frequently Asked Questions
It's a direction the matrix doesn't rotate — only stretches (or compresses, or flips). Most vectors $\mathbf{v}$, when multiplied by $A$, get sent to a totally different direction. Eigenvectors are the few special directions where $A\mathbf{v}$ stays on the same line through the origin as $\mathbf{v}$. The eigenvalue $\lambda$ tells you the stretch factor: $\lambda > 1$ stretches, $0 < \lambda < 1$ compresses, $\lambda < 0$ also flips. So the eigen-equation $A\mathbf{v} = \lambda\mathbf{v}$ is a geometric statement: "this vector's direction is preserved (up to sign) by $A$".
Key takeaway: eigenvectors are the directions $A$ doesn't rotate; eigenvalues are the stretch factors along those directions.For your 2×2 matrix $A$, it computes $\tr(A) = a_{11}+a_{22}$ and $\det(A) = a_{11}a_{22}-a_{12}a_{21}$ exactly, then solves $\lambda^2 - \tr(A)\lambda + \det(A) = 0$ via the quadratic formula. If the discriminant $\Delta = \tr^2 - 4\det$ is non-negative, you get real eigenvalues; otherwise complex conjugates (shown in red — they correspond to rotation, no real eigen-direction). For each real eigenvalue, it solves $(A-\lambda I)\mathbf{v}=0$ by null-space computation. In Power Iteration mode, it repeatedly multiplies and normalizes: $\mathbf{v}_{k+1} = A\mathbf{v}_k / \norm{A\mathbf{v}_k}$, which converges to the dominant eigenvector.
Key takeaway: tr and det give you the eigenvalues directly via the 2×2 quadratic — no iteration needed for small matrices.Everywhere there's a linear operation iterated over time. Google's PageRank is the dominant eigenvector of the web's link matrix. Principal Component Analysis (PCA) in ML uses eigenvectors of the covariance matrix to find the directions of maximum variance. Quantum mechanics: observables are Hermitian operators, measurements yield eigenvalues, states collapse to eigenvectors. Vibration analysis: natural frequencies of a building/bridge are square roots of eigenvalues of the stiffness matrix — engineers compute them to avoid resonance disasters. Stability of equilibria in dynamical systems: the equilibrium is stable iff all eigenvalues of the Jacobian have negative real part.
Key takeaway: PageRank, PCA, quantum measurement, vibration, control theory — all are eigenvalue problems.Because rotation has no fixed direction in $\R^2$. Take the 90° rotation $A = \begin{pmatrix} 0 & -1\\ 1 & 0\end{pmatrix}$. There's no real $\mathbf{v}\neq\mathbf{0}$ with $A\mathbf{v}=\lambda\mathbf{v}$ — every real vector gets rotated. The characteristic polynomial $\lambda^2 + 1$ has roots $\pm i$, so the eigenvalues live in $\C$. The complex eigenvectors live in $\C^2$ and encode the rotation as multiplication by a complex number on the unit circle ($e^{i\theta}$ has modulus 1, angle $\theta$). Whenever a real matrix has $\det>0$ and $\tr^2 < 4\det$, it acts as a (scaled) rotation and has complex conjugate eigenvalues.
Key takeaway: complex eigenvalues mean the matrix rotates — there's no fixed real direction to be an eigenvector.Suppose $\abs{\lambda_1} > \abs{\lambda_2} \geq \cdots$, and $\mathbf{v}_0 = c_1\mathbf{e}_1 + c_2\mathbf{e}_2 + \cdots$ in the eigenbasis with $c_1\neq 0$. Then $A^k\mathbf{v}_0 = \lambda_1^k(c_1\mathbf{e}_1 + c_2(\lambda_2/\lambda_1)^k\mathbf{e}_2 + \cdots)$. Since $\abs{\lambda_2/\lambda_1} < 1$, all the non-dominant terms decay geometrically with rate $\abs{\lambda_2/\lambda_1}^k$. So Power Iteration converges to the direction of $\mathbf{e}_1$ at rate $\abs{\lambda_2/\lambda_1}$. If the gap is $\abs{\lambda_2/\lambda_1}=0.5$, you halve error per step — about 20 steps for $10^{-6}$ accuracy. If the gap is $0.99$, you need 1000 steps. Convergence fails entirely for $\abs{\lambda_1}=\abs{\lambda_2}$ (e.g.\ a rotation matrix).
Key takeaway: Power Iteration's convergence rate is the spectral gap $\abs{\lambda_2/\lambda_1}$ — small gap, slow convergence.$A$ is diagonalizable iff for every eigenvalue, its geometric multiplicity (dimension of $E_\lambda = \ker(A-\lambda I)$) equals its algebraic multiplicity (multiplicity as a root of $p_A$). A "defective" example: $A=\begin{pmatrix}2 & 1\\ 0 & 2\end{pmatrix}$ has $\lambda=2$ with algebraic multiplicity 2, but $\ker(A-2I)$ is only 1-dimensional. So $A$ has only one eigenvector direction, can't form a $P$. For these, the right framework is Jordan canonical form: $A = PJP^{-1}$ where $J$ has eigenvalues on the diagonal and possibly 1's on the superdiagonal in "Jordan blocks". For applications, defective cases are unstable under perturbation — generic matrices are diagonalizable, defective ones live on a measure-zero set.
Key takeaway: not all matrices are diagonalizable, but those are non-generic. Jordan form covers the rest.The characteristic polynomial of an $n\times n$ matrix is $p_A(\lambda) = (-1)^n(\lambda-\lambda_1)(\lambda-\lambda_2)\cdots(\lambda-\lambda_n)$. Expanding, the coefficient of $\lambda^{n-1}$ is $(-1)^n \cdot (-1)\sum\lambda_i = (-1)^{n-1}\sum\lambda_i$. But computing $\det(A-\lambda I)$ directly, the coefficient of $\lambda^{n-1}$ is $(-1)^{n-1}\tr(A)$. So $\tr(A) = \sum\lambda_i$. The constant term of $p_A(\lambda)$ is $p_A(0) = \det(A) = (-1)^n\prod(-\lambda_i) = \prod\lambda_i$. So tr and det are elementary symmetric polynomials in the eigenvalues. For 2×2, those are the only two; for larger matrices, more invariants appear.
Key takeaway: tr and det are elementary symmetric functions of the eigenvalues — the characteristic polynomial encodes them all.