Algebra • Linear Transformations

Eigenvalue & Eigenvector Calculator

The complete linear transformation calculator for computing eigenvalues (λ), eigenvectors (v), characteristic polynomials, trace-determinant invariants, and 2D transformation ellipses.

|
Last Updated: September 2026
|
Verified Accurate: Spectral Theory & Vector Spaces
Input Matrix A (2×2)
Preset Examples:
Calculated Eigenvalues (λ) Real Distinct Roots
Eigenvalues (λ) & Eigenvectors (v)
Characteristic Eq: λ² − 7λ + 10 = 0
Trace ∑λ 7
Det ∏λ 10
Discriminant > 0 (Real)
Diagonalizable Yes

2D Linear Transformation & Invariant Eigen-Axes

Av = λv
v₁ (λ₁)
v₂ (λ₂)

Step-by-Step Characteristic Polynomial Derivation Formula: det(A − λI) = 0

Direct Answer & Overview
Verified Educational Guide

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)).

Primary Mathematical Formula The Characteristic Equation and Eigenvector Definition
Standard Equation
ƒ(x)
Q.E.D.
Av=λv⟺det⁡(A−λI)=0⟺λ2−tr(A)λ+det⁡(A)=0A\mathbf{v} = \lambda \mathbf{v} \quad \Longleftrightarrow \quad \det(A - \lambda I) = 0 \quad \Longleftrightarrow \quad \lambda^2 - \text{tr}(A)\lambda + \det(A) = 0
By definition, eigenvectors must be non-zero (v ≠ 0), though an eigenvalue itself can equal zero.
Exact Formula
Input Parameters
Required
1
Square matrix dimensions: 2×2 or 3×3 real matrix entries.
2
Coefficients: Main diagonal entries (trace) and off-diagonal cross elements.
Expected Outputs
Calculated
Eigenvalues (λ₁, λ₂, λ₃): Real roots or complex conjugate pairs α ± βi.
Eigenvectors (v₁, v₂, v₃): Non-zero direction vectors spanning the eigenspace.
Invariant Checks: Trace check (∑λ = tr(A)) and Determinant check (∏λ = det(A)).
Worked Numerical Example
Instant Verification
Find eigenvalues and eigenvectors of A = [[4, 1], [2, 3]]
→ tr(A) = 4 + 3 = 7, det(A) = (4)(3) - (1)(2) = 10. Characteristic equation: λ² - 7λ + 10 = (λ - 5)(λ - 2) = 0.
λ₁ = 5 with v₁ = [1, 1]ᵀ | λ₂ = 2 with v₂ = [-1, 2]ᵀ.

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 λ.

A · v = λ · v   (where v ≠ 0)

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:

1. Subtract λv: Av - λv = 0
2. Factor out vector v using the identity matrix I: (A - λI)v = 0
3. A homogeneous linear system has non-zero solutions for v if and only if the coefficient matrix is singular (non-invertible):
det(A - λI) = 0 ← The Characteristic Equation

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:

λ² - tr(A)λ + det(A) = 0

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):

λ = [ tr(A) ± √( tr(A)² - 4×det(A) ) ] / 2

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):

Δ > 0: Real & Distinct

Two unequal real eigenvalues. The matrix has two distinct invariant axes and is always diagonalizable.

Δ = 0: Repeated Root

One real eigenvalue with algebraic multiplicity 2. May be defective if only one linearly independent eigenvector exists.

Δ < 0: Complex Conjugate

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:

λ³ - tr(A)λ² + Mλ - det(A) = 0

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:

det(A - λI) = (a₁₁ - λ)(a₂₂ - λ) … (a_nn - λ) = 0

Consequently, the eigenvalues of any triangular or diagonal matrix are precisely the entries situated on its main diagonal:

λ₁ = a₁₁,   λ₂ = a₂₂,   …,   λ_n = a_nn

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:

1. Construct matrix: (A - λI) = [[a - λ, b], [c, d - λ]]
2. Set up matrix equation: [[a - λ, b], [c, d - λ]] [[x], [y]] = [[0], [0]]
3. Take the first equation: (a - λ)x + by = 0 ⇒ y = -[(a - λ) / b] x
4. Set free variable x = 1 (or any convenient non-zero scalar) to write the basis vector:
v = [1, -(a - λ) / b]ᵀ

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:

A^k = P · D^k · P⁻¹

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:

p(A) = A² - tr(A)A + det(A)I = 0

This provides an extraordinarily fast algebraic method to compute matrix inverses without cofactor expansion or row reduction:

1. Rearrange: det(A)I = tr(A)A - A²
2. Multiply both sides by A⁻¹: det(A)A⁻¹ = tr(A)I - A
3. Closed-Form Inverse: A⁻¹ = (1 / det(A)) [ tr(A)I - A ]

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:

Real(λ) < 0: Asymptotically Stable

Trajectories decay exponentially to equilibrium. The system naturally dampens oscillations.

Real(λ) = 0: Marginally Stable

Produces sustained, non-decaying sinusoidal oscillations (e.g. ideal LC electrical circuits).

Real(λ) > 0: Unstable

Perturbations grow without bound, leading to physical resonance collapse or thermal runaway.

Step-by-Step Worked Examples (Symmetric, Rotation, 3x3)

Example 1: 2×2 Symmetric Matrix Decomposition Difficulty: Fundamental

Find the eigenvalues and orthonormal eigenvectors of A = [[2, 1], [1, 2]].

1. Trace & Det: tr(A) = 2 + 2 = 4, det(A) = (2)(2) - (1)(1) = 3.
2. Characteristic Eq: λ² - 4λ + 3 = (λ - 3)(λ - 1) = 0 → λ₁ = 3, λ₂ = 1.
3. Eigenvector for λ₁ = 3: (A - 3I)v = [[-1, 1], [1, -1]][[x], [y]] = 0 → -x + y = 0 → y = x → v₁ = [1/√2, 1/√2]ᵀ.
4. Eigenvector for λ₂ = 1: (A - 1I)v = [[1, 1], [1, 1]][[x], [y]] = 0 → x + y = 0 → y = -x → v₂ = [-1/√2, 1/√2]ᵀ.
5. Verification: λ₁ + λ₂ = 3 + 1 = 4 = tr(A), and λ₁ · λ₂ = (3)(1) = 3 = det(A). Orthogonality: v₁ · v₂ = 0.
Result: Orthogonal eigenvectors with real eigenvalues λ₁ = 3 and λ₂ = 1.
Example 2: 90° Counter-Clockwise Rotation Matrix Difficulty: Intermediate

Find the eigenvalues of the rotation matrix A = [[0, -1], [1, 0]].

1. Trace & Det: tr(A) = 0 + 0 = 0. Determinant: det(A) = (0)(0) - (-1)(1) = 1.
2. Characteristic equation: λ² - 0λ + 1 = 0 → λ² + 1 = 0.
3. Roots: λ = ±√(-1) = ±i.
Conclusion: Complex eigenvalues ±i confirm that pure planar rotation leaves no real vector unrotated!
Example 3: 3×3 Upper-Triangular Matrix Difficulty: Shortcut Theorem

Find the eigenvalues of A = [[5, 3, 1], [0, -2, 7], [0, 0, 4]].

1. Notice that all entries below the main diagonal are zero (upper-triangular matrix).
2. Characteristic equation: det(A - λI) = (5 - λ)(-2 - λ)(4 - λ) = 0.
3. The eigenvalues are read directly from the main diagonal without expanding: λ₁ = 5, λ₂ = -2, λ₃ = 4.
4. Verification: tr(A) = 5 + (-2) + 4 = 7; λ₁ + λ₂ + λ₃ = 7. det(A) = (5)(-2)(4) = -40; λ₁λ₂λ₃ = -40.
Result: Instantaneous solution via the triangular matrix eigenvalue theorem.

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.
Fact-Checked & Verified • Computational Accuracy Standards
Updated September 2026 • Editorial Policy
Authored By
Sanjay Samanta

Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.

Reviewed & Verified By
Academic Review Board

Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.

Found an error or have an improvement suggestion? Report a calculation issue

Frequently Asked Questions

What are eigenvalues and eigenvectors in linear algebra?
An eigenvector of a square matrix A is a non-zero vector v that does not change direction when multiplied by A; it is simply scaled by a scalar factor λ: Av = λv. The scalar factor λ is the eigenvalue associated with that eigenvector.
How do you find the eigenvalues of a 2x2 matrix?
Eigenvalues are the roots of the characteristic equation det(A - λI) = 0. For a 2x2 matrix, this expands to the quadratic polynomial λ² - tr(A)λ + det(A) = 0, where tr(A) is the trace (sum of diagonal entries) and det(A) is the determinant. The roots are λ = [tr(A) ± √(tr(A)² - 4det(A))] / 2.
How do you find eigenvalues of a 3x3 matrix?
For a 3x3 matrix, the characteristic equation expands to λ³ - tr(A)λ² + Mλ - det(A) = 0, where tr(A) is the sum of diagonal entries, M is the sum of the three principal 2x2 minors (M11 + M22 + M33), and det(A) is the 3x3 determinant. The roots can be solved using the rational root theorem, synthetic division, or cardano's cubic formula.
What is the relationship between eigenvalues, trace, and determinant?
For any n × n square matrix: 1) The sum of all eigenvalues equals the trace of the matrix (∑ λ_i = tr(A)); 2) The product of all eigenvalues equals the determinant (∏ λ_i = det(A)). This provides an immediate verification check for any eigenvalue calculation.
Can a real matrix have complex eigenvalues?
Yes. When the discriminant of the characteristic equation is negative (for a 2x2 matrix, tr(A)² - 4det(A) < 0), the polynomial has no real roots and yields a complex conjugate pair α ± βi. Geometrically, this signifies a planar rotation combined with scaling.
What does it mean if an eigenvalue is zero (λ = 0)?
If λ = 0 is an eigenvalue of A, then det(A) = ∏ λ_i = 0, which means the matrix A is singular (non-invertible) and has a non-trivial nullspace (Av = 0 for some non-zero v).
What is a defective matrix?
A defective matrix is a square matrix that does not have a complete basis of linearly independent eigenvectors. This occurs when the geometric multiplicity (number of linearly independent eigenvectors for a given λ) is strictly less than its algebraic multiplicity (multiplicity as a root of the characteristic polynomial).
Why are numerical methods used instead of the characteristic polynomial for large matrices?
By the Abel-Ruffini theorem, general polynomials of degree 5 or higher cannot be solved by radicals. Furthermore, polynomial root-finding algorithms are numerically unstable due to floating-point sensitivity (Wilkinson's phenomenon). Modern computational software computes eigenvalues of large matrices using iterative transformations like the QR algorithm or Arnoldi iteration.
Where are eigenvalues used in data science and engineering?
Eigenvalues are central to Principal Component Analysis (PCA) for dimensionality reduction, Google's PageRank algorithm (dominant eigenvector of the link transition matrix), quantum mechanics (energy states of operators), structural resonance analysis, and stability analysis in differential equations.