Eigenvalue Calculator
Compute the eigenvalues and eigenvectors of a 2×2 matrix instantly. Used in stability analysis, principal component analysis, and quantum mechanics.
About this calculator
Eigenvalues of a 2×2 matrix A = [[m₁₁, m₁₂], [m₂₁, m₂₂]] are the values λ satisfying det(A − λI) = 0. Expanding the determinant gives the characteristic equation λ² − (m₁₁ + m₂₂)λ + (m₁₁·m₂₂ − m₁₂·m₂₁) = 0. Using the quadratic formula, the two eigenvalues are λ = (m₁₁ + m₂₂)/2 ± √[((m₁₁ + m₂₂)/2)² − (m₁₁·m₂₂ − m₁₂·m₂₁)]. The term under the square root involves the trace T = m₁₁ + m₂₂ and determinant D = m₁₁·m₂₂ − m₁₂·m₂₁: λ = T/2 ± √((T/2)² − D). Once eigenvalues are known, eigenvectors are found by solving (A − λI)v = 0.
How to use
Take matrix A = [[4, 1], [2, 3]]. Trace T = 4 + 3 = 7, determinant D = 4·3 − 1·2 = 10. λ = 7/2 ± √((7/2)² − 10) = 3.5 ± √(12.25 − 10) = 3.5 ± √2.25 = 3.5 ± 1.5. So λ₁ = 5, λ₂ = 2. Enter m11=4, m12=1, m21=2, m22=3, precision=4. The calculator returns 5.0000 for the larger eigenvalue.
Frequently asked questions
What do the eigenvalues of a matrix represent geometrically?
Geometrically, an eigenvalue λ tells you how much a matrix stretches or compresses space along a particular direction — its corresponding eigenvector. If λ > 1, the transformation expands vectors in that direction; if 0 < λ < 1, it compresses them; if λ < 0, it flips and scales them. A zero eigenvalue means the transformation collapses space onto a lower-dimensional subspace, indicating the matrix is singular. These directions of pure scaling underpin principal component analysis, vibration modes in engineering, and Markov chain steady states.
What does it mean when a 2×2 matrix has complex eigenvalues?
Complex eigenvalues occur when the discriminant (T/2)² − D is negative, meaning the matrix has no real eigenvectors. They always appear as conjugate pairs λ = a ± bi. Geometrically, complex eigenvalues correspond to a rotation-and-scaling transformation with no invariant real direction. The magnitude |λ| = √(a² + b²) gives the scaling factor, and the argument arctan(b/a) gives the rotation angle. They appear in oscillatory and spiral behavior in differential equations.
How are eigenvalues used in principal component analysis (PCA)?
In PCA, you compute the covariance matrix of your data, then find its eigenvalues and eigenvectors. Each eigenvector defines a principal component — a direction of maximum variance — and the corresponding eigenvalue measures how much variance is captured along that direction. Sorting eigenvalues from largest to smallest lets you retain only the top components, reducing dimensionality while preserving the most information. This makes eigenvalue decomposition central to data compression, face recognition, and feature extraction in machine learning.