Open Calculator

Eigenvector Calculator

Eigenvalues, eigenvectors, and the characteristic polynomial.

How the eigenvector calculator works

This eigenvector calculator (and eigenvalue calculator) follows the textbook route, but with exact arithmetic. First it builds the characteristic polynomial det(λI - A). Then it finds the polynomial's roots, which are the eigenvalues: rational roots are located exactly with the rational root theorem, and anything left over is solved numerically. Finally, for each eigenvalue λ it row reduces A - λI and reads the null space, whose basis vectors are the eigenvectors. Multiplicities are reported so you can tell at a glance whether the matrix is diagonalizable.

Worked example: the default 3x3 matrix

The default matrix has rows (2, 1, 0), (1, 2, 0), (0, 0, 3). Its characteristic polynomial is λ^3 - 7λ^2 + 15λ - 9, which factors as (λ - 1)(λ - 3)^2. So λ = 1 has algebraic multiplicity 1 and λ = 3 has algebraic multiplicity 2. For λ = 1, A - I has rows (1, 1, 0), (1, 1, 0), (0, 0, 2); row reduction gives x + y = 0 and z = 0, so the eigenvector is (-1, 1, 0). For λ = 3, A - 3I has rows (-1, 1, 0), (1, -1, 0), (0, 0, 0), which reduces to the single equation x = y with y and z free, giving two independent eigenvectors (1, 1, 0) and (0, 0, 1). The geometric multiplicity equals the algebraic multiplicity for every eigenvalue, so this matrix is diagonalizable.

The characteristic polynomial for small matrices

SizeCharacteristic polynomialShortcut
2 x 2λ^2 - (trace) λ + detTrace is a + d, determinant is ad - bc
3 x 3λ^3 - (trace) λ^2 + (sum of principal 2x2 minors) λ - detSum of roots is the trace, product is the determinant
n x ndet(λI - A), degree nComputed here by the Faddeev-LeVerrier recurrence

Checks you can do by hand

CheckWhy it holds
Eigenvalues add up to the traceBoth equal the coefficient of λ^(n-1) up to sign
Eigenvalues multiply to the determinantBoth equal the constant term up to sign
A v = λ v for each listed pairDefinition of an eigenvector
Triangular matrices have their diagonal as eigenvaluesThe characteristic determinant is the product of the diagonal differences

Rational, irrational, and complex eigenvalues

Whether the eigenvalues are nice depends only on the characteristic polynomial. A polynomial with integer coefficients has rational roots only among a finite list of candidates (divisors of the constant term over divisors of the leading coefficient), which the calculator tests exactly. What remains after removing rational roots is solved with the quadratic formula when it is quadratic, and otherwise with QR iteration on the companion matrix. Real roots found this way are labelled irrational and shown to eight digits; complex conjugate pairs are labelled as such. The Fibonacci matrix [[1, 1], [1, 0]] is a good test: its eigenvalues are the golden ratio and its conjugate.

Diagonalization

If an n x n matrix has n independent eigenvectors, placing them as the columns of P and the matching eigenvalues on the diagonal of D gives A = P D P^-1. That decomposition makes powers of A trivial (A^k = P D^k P^-1) and underlies everything from solving linear differential equations to principal component analysis. The calculator's multiplicity report tells you immediately whether such a P exists: it does exactly when every eigenvalue's geometric multiplicity matches its algebraic multiplicity.

Frequently asked questions

What are eigenvalues and eigenvectors?

An eigenvector of a square matrix A is a nonzero vector v that A only stretches: A v = λ v. The stretch factor λ is the eigenvalue. Together they describe the directions along which the matrix acts like simple scaling.

How is the characteristic polynomial found?

It is det(λI - A), computed here exactly with rational arithmetic. Its roots are the eigenvalues, and the multiplicity of each root is the algebraic multiplicity of that eigenvalue.

Why does an eigenvalue sometimes have fewer eigenvectors than its multiplicity?

The number of independent eigenvectors (geometric multiplicity) can be smaller than the algebraic multiplicity. Such a matrix is called defective and cannot be diagonalized; [[1, 1], [0, 1]] is the classic example.

What if the eigenvalues are complex?

Real matrices can have complex eigenvalues in conjugate pairs, for example rotation matrices. The calculator reports them as a + bi and flags them; their eigenvectors are complex and are not listed.

Are the results exact?

Whenever the characteristic polynomial has rational roots, the eigenvalues and eigenvectors are exact fractions. Irrational eigenvalues are found numerically and shown to eight significant digits with numerically computed eigenvectors.

How are the eigenvectors normalized?

Exact eigenvectors come from the null space of A - λI with each free variable set to 1, which gives small integer or fractional entries. Any nonzero multiple is also an eigenvector, so scale them however you like.

Related calculators