Eigenvalue & Eigenvector Calculator
The complete linear transformation calculator for computing eigenvalues (λ), eigenvectors (v), characteristic polynomials, trace-determinant invariants, and 2D transformation ellipses.
2D Linear Transformation & Invariant Eigen-Axes
Av = λvStep-by-Step Characteristic Polynomial Derivation Formula: det(A − λI) = 0
How to Calculate Eigenvalues and Eigenvectors of a Matrix
To find the eigenvalues of a square matrix A, set up and solve the characteristic equation det(A - λI) = 0. For a 2x2 matrix, this expands to the quadratic polynomial λ² - tr(A)λ + det(A) = 0. Solve for the roots λ₁ and λ₂. For each eigenvalue λ, find its corresponding eigenvector v by solving the homogeneous linear system (A - λI)v = 0 using Gaussian elimination or nullspace substitution. Always verify using the trace check (∑λ = tr(A)) and determinant check (∏λ = det(A)).
Anatomy of Eigenvalues & The Characteristic Equation
The German prefix eigen translates roughly to "own," "inherent," "characteristic," or "peculiar." In linear algebra and matrix theory, an eigenvector v of a square matrix A represents an invariant directional axis in vector space: when the linear transformation A acts upon v, the vector is not rotated, but simply stretched, compressed, or flipped by a scalar factor λ.
The fundamental defining relationship: matrix multiplication collapses to scalar multiplication along eigenvector directions.
To solve this equation for unknown values of λ and v, rearrange terms into a homogeneous linear system:
For a non-trivial solution v ≠ 0 to exist, the matrix operator (A - λI) must have a non-trivial kernel (nullspace). By matrix inversion theory and Cramer's rule, a matrix has a non-trivial nullspace if and only if its determinant equals zero. Evaluating this determinant yields an n-th degree polynomial in λ whose roots are precisely the eigenvalues of matrix A. Once eigenvalues are computed, finding the corresponding directional nullspace vectors is carried out using our dedicated Eigenvector Calculator.
Computing 2x2 Matrix Eigenvalues & Trace-Determinant Formula
For any general 2×2 matrix A = [[a, b], [c, d]], expanding the determinant yields a streamlined quadratic polynomial:
where tr(A) = a + d (sum of main diagonal entries) and det(A) = ad - bc.
Applying the quadratic formula yields the direct closed-form expression for both eigenvalues (solve any second-degree polynomial directly with our Quadratic Formula Calculator):
The determinant det(A) dictates area scaling and invertibility (calculate arbitrary determinants with our Matrix Determinant Calculator). The discriminant of this quadratic is Δ = tr(A)² - 4det(A). By testing this discriminant using our Discriminant Calculator, you can immediately determine whether eigenvalues are real and distinct (Δ > 0), repeated (Δ = 0), or complex conjugate pairs (Δ < 0):
Two unequal real eigenvalues. The matrix has two distinct invariant axes and is always diagonalizable.
One real eigenvalue with algebraic multiplicity 2. May be defective if only one linearly independent eigenvector exists.
A pair of complex eigenvalues α ± βi. Represents a planar rotation combined with uniform or elliptical scaling.
Computing 3x3 Matrix Eigenvalues & Invariant Expansion
For any 3×3 square matrix, the characteristic equation expands into a cubic polynomial:
The standard monic cubic characteristic equation for 3×3 matrices.
The coefficients of this cubic polynomial represent fundamental geometric invariants that remain unchanged under any similarity transformation P⁻¹AP:
- Trace tr(A): The sum of the diagonal entries: tr(A) = a₁₁ + a₂₂ + a₃₃. This matches the sum of the three eigenvalues: λ₁ + λ₂ + λ₃.
- Sum of Principal Minors (M): The sum of the three 2×2 principal diagonal sub-determinants:
M = M₁₁ + M₂₂ + M₃₃ = (a₂₂a₃₃ - a₂₃a₃₂) + (a₁₁a₃₃ - a₁₃a₃₁) + (a₁₁a₂₂ - a₁₂a₂₁) This equals the sum of pairwise products of eigenvalues: λ₁λ₂ + λ₂λ₃ + λ₁λ₃. - Determinant det(A): The full 3×3 determinant evaluated via cofactor expansion. This equals the product of the three eigenvalues: λ₁ · λ₂ · λ₃.
Once these coefficients are determined, the roots of the cubic characteristic polynomial can be resolved through the rational root theorem, synthetic division, or our automated Cubic Equation Solver.
Shortcut Theorem for Triangular & Diagonal Matrices
When a matrix is diagonal, upper-triangular, or lower-triangular, calculating eigenvalues requires no polynomial solving or matrix inversion whatsoever. Because all entries either above or below the main diagonal are zero, the determinant of (A - λI) is simply the product of its diagonal entries:
Consequently, the eigenvalues of any triangular or diagonal matrix are precisely the entries situated on its main diagonal:
This fundamental theorem is the primary reason why advanced numerical linear algebra libraries (such as LAPACK and SciPy) utilize orthogonal similarity transformations (the QR algorithm) to reduce dense matrices to Schur triangular form.
Finding Eigenvectors via the Nullspace Kernel (A - λI)v = 0
Once an eigenvalue λ is known, its associated eigenvectors belong to the nullspace (kernel) of the matrix (A - λI).
Because det(A - λI) = 0, the rows of (A - λI) are linearly dependent, creating at least one free variable:
For larger matrices, determining the nullspace kernel requires Gaussian row-reduction of the homogeneous system; you can automate these steps with our Row Echelon Form Calculator and System of Equations Calculator.
Algebraic vs Geometric Multiplicity & Defective Matrices
When dealing with matrices that possess repeated eigenvalues, linear algebra distinguishes between two fundamental types of multiplicity:
Algebraic Multiplicity (AM)
The number of times an eigenvalue appears as a root of the characteristic polynomial. For instance, in (λ - 3)² = 0, the eigenvalue λ = 3 has an algebraic multiplicity of 2.
Geometric Multiplicity (GM)
The number of linearly independent eigenvectors associated with that eigenvalue (the dimension of its eigenspace, dim(null(A - λI))).
It is a universal mathematical theorem that 1 ≤ GM ≤ AM. When GM < AM, the matrix fails to produce enough eigenvectors to span the space and is termed a defective matrix. Defective matrices cannot be diagonalized and require generalized eigenvectors and Jordan Canonical Form.
The Spectral Theorem for Symmetric Matrices
One of the crown jewels of linear algebra is the Spectral Theorem for real symmetric matrices (Aᵀ = A). It guarantees three remarkable properties:
- All Real Eigenvalues: Every eigenvalue of a real symmetric matrix is guaranteed to be a real number; complex conjugate eigenvalues are impossible.
- Orthogonal Eigenvectors: Eigenvectors corresponding to distinct eigenvalues are mutually perpendicular (orthogonal): v_i · v_j = 0, easily verified using our Dot Product Calculator.
- Orthogonal Diagonalizability: The matrix can always be factored as A = Q D Qᵀ, where Q is an orthonormal rotation/reflection matrix and D is a pure diagonal matrix of eigenvalues.
Matrix Diagonalization and Power Computation (A^k = P D^k P⁻¹)
Multiplying a large matrix by itself dozens or thousands of times (e.g., computing A¹⁰⁰ in Markov chains or economic simulations) is computationally brutal. Eigenvalue decomposition makes this virtually instantaneous:
where D is a diagonal matrix of eigenvalues. Raising D to the power k simply requires raising each individual eigenvalue on the diagonal to the power k!
To invert the eigenvector modal matrix P and perform automated matrix multiplications, use our Matrix Inverse Calculator and Matrix Multiplication Calculator.
The Cayley-Hamilton Theorem & Matrix Inverses
The Cayley-Hamilton Theorem asserts that every square matrix satisfies its own characteristic polynomial equation. That is, if the characteristic equation of A is p(λ) = det(A - λI) = 0, then substituting the matrix A for λ yields the zero matrix:
This provides an extraordinarily fast algebraic method to compute matrix inverses without cofactor expansion or row reduction:
High-Dimensional Numerical Methods (QR Algorithm & Power Iteration)
In industrial engineering, machine learning, and quantum mechanics, matrices commonly possess dimensions from 100 × 100 to millions of entries (such as Google's PageRank transition matrix or quantum mechanical Hamiltonians). Computing characteristic polynomials for such systems is impossible because:
- Abel-Ruffini Theorem: No algebraic formula with radicals exists for general polynomials of degree 5 or higher.
- Wilkinson's Condition Problem: The roots of high-degree polynomials are notoriously ill-conditioned; infinitesimal floating-point perturbations in matrix entries can cause catastrophic errors in polynomial root calculations.
Consequently, modern computational linear algebra libraries employ robust iterative algorithms:
1. The QR Algorithm
Iteratively decomposes the matrix into orthogonal (Q) and upper-triangular (R) factors via Householder reflections: A_k = Q_k · R_k, followed by reverse multiplication: A_(k+1) = R_k · Q_k. As iterations proceed, the off-diagonal entries vanish, converging directly to the eigenvalues on the diagonal.
2. Power Iteration & Rayleigh Quotient
Computes the dominant eigenvalue (the eigenvalue with the largest absolute magnitude) by repeatedly multiplying a random vector by A: v_(k+1) = (A · v_k) / ||A · v_k||. The corresponding eigenvalue is estimated via the Rayleigh quotient: λ ≈ (vᵀ · A · v) / (vᵀ · v).
Dynamical Systems Stability & S-Plane State-Space
In control systems, electrical circuit analysis, and aerospace flight stability, linear systems of differential equations are represented as dx/dt = Ax. The eigenvalues of A dictate the physical behavior of the system:
Trajectories decay exponentially to equilibrium. The system naturally dampens oscillations.
Produces sustained, non-decaying sinusoidal oscillations (e.g. ideal LC electrical circuits).
Perturbations grow without bound, leading to physical resonance collapse or thermal runaway.
Step-by-Step Worked Examples (Symmetric, Rotation, 3x3)
Find the eigenvalues and orthonormal eigenvectors of A = [[2, 1], [1, 2]].
Find the eigenvalues of the rotation matrix A = [[0, -1], [1, 0]].
Find the eigenvalues of A = [[5, 3, 1], [0, -2, 7], [0, 0, 4]].
Common Operational Errors & Diagnostic Pitfalls Matrix
| Common Mistake | Erroneous Assumption | Correct Mathematical Rule |
|---|---|---|
| Sign Error in Trace | Writing λ² + tr(A)λ + det(A) = 0 | The linear term must have a MINUS sign: λ² - tr(A)λ + det(A) = 0. |
| Row Operations Warning | Row-reducing A before finding eigenvalues | Row operations change eigenvalues! You must row-reduce (A - λI), never matrix A directly. |
| Zero Vector Confusion | Considering v = 0 as an eigenvector | By definition, eigenvectors must be non-zero (v ≠ 0), though an eigenvalue itself can equal 0. |
| Eigenvalues of Invertible Matrices | Assuming eigenvalues cannot equal zero | λ = 0 is a valid eigenvalue. Matrix A is singular (det=0) if and only if at least one λ = 0. |
| Disregarding Complex Roots | Concluding "No eigenvalues exist" when Δ < 0 | Every real matrix has exactly n complex eigenvalues when counted with algebraic multiplicity. |
| Skipping Invariant Checks | Assuming polynomial roots are automatically error-free | Always verify: ∑ λ_i = tr(A) and ∏ λ_i = det(A). This catches 99% of calculation errors. |
Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.
Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.