MathIsimple
Linear Algebra

Online Eigenvalue Calculator

Compute eigenvalues of square matrices with step-by-step explanations.

100% Free2×2, 3×3, largerWith Steps
Matrix Configuration
Set the matrix size (square matrices only for eigenvalues)
3×3
Matrix Input
Enter matrix elements (decimals and fractions allowed)
The Characteristic Polynomial Approach
How eigenvalues are derived analytically from the characteristic equation

For a 2×2 matrix

Setting det(AλI)=0\det(A - \lambda I) = 0 expands to a quadratic:

det(AλI)=(aλ)(dλ)bc=0\det(A - \lambda I) = (a-\lambda)(d-\lambda) - bc = 0λ2(a+d)λ+(adbc)=0\lambda^2 - (a+d)\lambda + (ad - bc) = 0

Solved with the quadratic formula. The discriminant Δ=(a+d)24(adbc)\Delta = (a+d)^2 - 4(ad-bc) determines whether eigenvalues are real (Δ0\Delta \geq 0) or complex (Δ<0\Delta < 0).

For a 3×3 matrix

The characteristic polynomial is a degree-3 (cubic) equation:

λ3+tr(A)λ212[(trA)2tr(A2)]λ+det(A)=0-\lambda^3 + \text{tr}(A)\,\lambda^2 - \frac{1}{2}\left[(\text{tr}\,A)^2 - \text{tr}(A^2)\right]\lambda + \det(A) = 0

This calculator solves it using Cardano's method (depressed cubic). Three cases arise: one real root (positive discriminant), a repeated real root (zero discriminant), or three distinct real roots (negative discriminant — the casus irreducibilis requiring trigonometric solution).

For n > 3 matrices

No closed-form formula exists (Abel–Ruffini theorem). This calculator uses the QR algorithm: iteratively decomposing A=QRA = QR and updating ARQA \leftarrow RQ until the matrix converges to (quasi-)triangular form, reading eigenvalues from the diagonal.

Real-World Applications
Where eigenvalues appear across science and engineering

Principal Component Analysis (PCA)

Eigenvalues of the covariance matrix rank the importance of each principal component. The largest eigenvalue corresponds to the direction of greatest variance in the data.

Google PageRank

PageRank is the dominant eigenvector of the web's link-transition matrix, corresponding to eigenvalue 1. The power method iteratively finds this eigenvector.

Quantum Mechanics

Observable quantities (energy, momentum, spin) are eigenvalues of Hermitian operators. Schrödinger's equation Hψ=EψH\psi = E\psi is an eigenvalue problem where E is the energy eigenvalue.

Structural Engineering

Natural frequencies of vibration of a structure are square roots of eigenvalues of M1KM^{-1}K (mass-stiffness system). Engineers must ensure these don't match external forcing frequencies to avoid resonance.

Matrix Types and Their Eigenvalue Properties
Quick reference for common matrix classes
Matrix TypeDefinitionEigenvalue Property
SymmetricA=ATA = A^TAll eigenvalues are real
OrthogonalATA=IA^T A = Iλ=1|\lambda| = 1 (on unit circle)
Positive DefinitexTAx>0x^T A x > 0All eigenvalues λ>0\lambda > 0
Skew-SymmetricA=ATA = -A^TPurely imaginary or zero
DiagonalOff-diagonal entries = 0Eigenvalues are the diagonal entries
IdempotentA2=AA^2 = AEach eigenvalue is 0 or 1
NilpotentAk=0A^k = 0All eigenvalues are 0
Example Matrices
Click on any example to load it into the calculator
2×2 Basic Example
Simple 2×2 matrix with real eigenvalues
[2, 1]
[1, 3]
3×3 Example
3×3 matrix with mixed eigenvalues
[1, 2, 3]
[3, 2, 1]
[2, 1, 3]
Identity Matrix
3×3 identity matrix (eigenvalues = 1)
[1, 0, 0]
[0, 1, 0]
[0, 0, 1]
Symmetric Matrix
Symmetric matrix with real eigenvalues
[4, 1, 2]
[1, 3, 0]
[2, 0, 5]

Google Beat Every Other Search Engine With This Equation

In 1998, most search engines ranked pages by counting how many times a keyword appeared. Type "best pizza" and the page mentioning pizza the most floated to the top. Predictably, people gamed it — stuffing invisible text into pages to fake relevance. The results were awful, and everyone in the industry knew it.

Larry Page framed the problem differently: which pages does the web itself consider important, based on which other trusted pages link to them? A link from a respected site should count for more than a hundred links from spam. Authority propagates through the network. So the question became: what does the link structure of the entire web say about each page's importance?

The answer is an eigenvector. Not as a metaphor — PageRank literally computes the principal eigenvector of a matrix representing the web's link graph. Eigenvalues aren't abstract linear algebra. They're the reason a Stanford PhD project became the most valuable company in the world.

What Ax = λx Actually Says

Most matrix transformations rotate vectors — they change both magnitude and direction. But for some special vectors, applied to some matrices, the direction stays the same. The transformation only stretches or shrinks them. Those vectors are eigenvectors. The stretch factor is the eigenvalue:

Ax=λxA\mathbf{x} = \lambda\mathbf{x}

A is the matrix. x is the eigenvector. λ (lambda) is the eigenvalue — the scalar factor. If λ = 3, the transformation triples the vector's length while keeping its direction. If λ = −1, it reverses direction. If λ = 0, the vector collapses to zero entirely, meaning that direction gets annihilated — which, as it turns out, connects directly to why singular matrices have zero determinants.

Clearest physical analogy: a rubber band stretched along its axis. Pull it lengthwise and it gets longer — same direction, different magnitude. That's the eigenvector direction. Pull it at an angle and everything rotates. Eigenvectors are the axes where rotation doesn't happen.

Finding Eigenvalues: The Characteristic Polynomial

Rearranging the eigenvalue equation gives (AλI)x=0(A - \lambda I)\mathbf{x} = \mathbf{0}. For a non-trivial solution (anything other than x = 0), the matrix (AλI)(A - \lambda I) must be singular. A matrix is singular when its determinant is zero:

det(AλI)=0\det(A - \lambda I) = 0

This is the characteristic equation. Its roots are the eigenvalues. Work through a concrete 2×2 example:

A=(3102)A = \begin{pmatrix} 3 & 1 \\ 0 & 2 \end{pmatrix}
det(3λ102λ)=(3λ)(2λ)0=0\det\begin{pmatrix} 3-\lambda & 1 \\ 0 & 2-\lambda \end{pmatrix} = (3-\lambda)(2-\lambda) - 0 = 0
λ25λ+6=(λ3)(λ2)=0\lambda^2 - 5\lambda + 6 = (\lambda - 3)(\lambda - 2) = 0

Eigenvalues: λ = 3 and λ = 2. Substituting each back to find eigenvectors:

EigenvalueEigenvectorGeometric meaning
λ=3\lambda = 3x=[1, 0]\mathbf{x} = [1,\ 0]x-axis triples in length under A
λ=2\lambda = 2x=[1, 1]\mathbf{x} = [1,\ {-1}]diagonal direction doubles in length

Both eigenvectors survive the transformation pointing in the same direction. Every other input vector rotates. These two directions are the "natural axes" of this particular transformation.

Three Real Systems Running on Eigenvalues Right Now

PageRank: Represent each web page as a node and each link as a directed edge. Build a matrix M where entry MijM_{ij} is the fraction of page j's authority passed to page i. The importance vector v we're looking for must satisfy Mv=vMv = v — the eigenvector equation with λ = 1. Brin and Page's original 1998 paper is explicit: PageRank is the stationary distribution of a random walk on the web graph, which is the principal eigenvector of M. The algorithm that computes it — power iteration, multiplying M by an estimate repeatedly until it converges — is the same method used in numerical linear algebra courses today.

Bridge resonance: Every physical structure has natural frequencies — eigenvalues of its stiffness-to-mass ratio matrix. When an external force matches a natural frequency, energy accumulates instead of dissipating. The Tacoma Narrows Bridge collapsed in November 1940, four months after opening, because wind vortices excited one of its natural frequencies. Modern civil engineers compute structural eigenvalues before construction to ensure no expected load — traffic, wind, earthquake — can excite a resonant mode. A bridge that passes eigenvalue analysis doesn't get built with a dangerous frequency sitting in the middle of the wind spectrum.

Principal Component Analysis: Machine learning models often work with thousands of features — pixel values, sensor readings, gene expression levels. PCA reduces this to the most informative dimensions by computing eigenvectors of the data's covariance matrix. The eigenvector with the largest eigenvalue points in the direction of greatest variance. The second-largest points in the next most informative direction, perpendicular to the first. In face recognition, these eigenvectors are literally called "eigenfaces" — the abstract features that distinguish one face from another, compressed into a handful of numbers per image.

The common thread: all three systems ask "what are the stable, natural directions in this transformation?" Eigenvalues answer that question — in web graphs, physical structures, and high-dimensional data alike.

Complex Eigenvalues — and What They Signal

A 2×2 matrix with real entries can produce complex eigenvalues. That's not a calculation error — it means something specific: the transformation involves rotation, not just scaling. The imaginary part gives the rotation frequency; the real part tells you whether the rotation spirals inward (stable), outward (unstable), or stays circular (neutral).

In control systems and dynamics, this matters enormously. Complex eigenvalues with negative real parts mean oscillations die out — the system stabilizes. Positive real parts mean instability grows over time. The Tacoma Narrows Bridge, mathematically, had eigenvalues with a real part that the wind shifted from slightly negative to slightly positive. That transition from stable to unstable took under an hour to destroy the bridge.

There's a clean connection to the matrix determinant: the determinant equals the product of all eigenvalues. If any eigenvalue is zero, the determinant is zero — the matrix is singular. The matrix multiplication article shows how transformations compose; eigenvalues tell you what survives that composition unchanged.

The Part Nobody Explains

Why do eigenvalues only work for square matrices?

The equation Ax=λxA\mathbf{x} = \lambda\mathbf{x} requires both sides to be the same type of vector. If A is m×n with m ≠ n, the input is an n-vector but the output is an m-vector — they can't be equal. Square matrices map a space to itself, which is the prerequisite for a vector to emerge from the transformation still pointing the same way. Non-square matrices have singular value decompositions (SVD) instead, which is a related but different concept.

Are eigenvectors unique?

No — any scalar multiple of an eigenvector is also an eigenvector. If x is an eigenvector, so is 2x, −x, or 0.001x. What's unique is the direction. In PCA and most applications, eigenvectors are normalized to unit length to remove the ambiguity. An n×n matrix has exactly n eigenvalues counting multiplicity (though some may be complex or repeated), and each eigenvalue has at least one associated eigenvector direction.

What does it mean when all eigenvalues are positive?

A symmetric matrix with all positive eigenvalues is called positive definite. In optimization, the Hessian matrix (second derivatives of a loss function) at a critical point is positive definite if and only if the point is a local minimum. All-negative eigenvalues mean a local maximum; mixed signs mean a saddle point. This is exactly how gradient descent methods check whether they've found a genuine minimum — and why deep learning loss landscapes, with their many saddle points, are harder to optimize than convex problems.

How does software find eigenvalues for large matrices?

For 2×2 and 3×3 matrices, the characteristic polynomial is solvable by hand. Larger matrices use numerical methods: the QR algorithm repeatedly factors the matrix into Q and R components until eigenvalues appear on the diagonal, typically in dozens of iterations. Power iteration (repeatedly multiplying a random vector by the matrix) finds the dominant eigenvector — this is essentially what PageRank's early implementation did. For a 1,000×1,000 matrix, computing all eigenvalues symbolically is impractical; numerically it takes seconds on modern hardware.

Find Eigenvalues and Eigenvectors Instantly

Enter any 2×2, 3×3, or 4×4 matrix and get eigenvalues, eigenvectors, the characteristic polynomial, and diagonalization — with full step-by-step work.

*Also checks whether the matrix is diagonalizable and shows the diagonal form P⁻¹AP.

Frequently Asked Questions

What are eigenvalues and why are they important?
Eigenvalues are special scalars λ that satisfy Av = λv for a matrix A and a non-zero vector v (the eigenvector). They reveal intrinsic properties of linear transformations and are fundamental in physics (vibrational modes, quantum mechanics), engineering (stability analysis), and data science (PCA, ML).
How do I calculate eigenvalues by hand?
To find eigenvalues: 1) Form the characteristic equation det(A - λI) = 0. 2) Expand the determinant into a polynomial in λ. 3) Solve the polynomial. For a 2×2 matrix you get a quadratic; for 3×3, a cubic.
Can eigenvalues be complex numbers?
Yes. When the discriminant of the characteristic polynomial is negative, eigenvalues come in complex conjugate pairs (a + bi and a - bi). This is common for rotation matrices and oscillatory systems.
What is the relationship between eigenvalues and matrix properties?
Eigenvalues encode key properties: the sum equals the trace; the product equals the determinant; a matrix is invertible iff all eigenvalues are nonzero; and symmetric real matrices always have real eigenvalues.
What matrix sizes does this calculator support?
Square matrices from 2×2 up to 6×6. For 2×2 and 3×3 matrices we use exact analytical solutions (quadratic and cubic formulas). For 4×4 to 6×6 we use the numerical QR algorithm.
Advertisement