About the Eigenvalue Calculator
Eigenvalues and eigenvectors describe the directions a matrix leaves unchanged and how much it stretches them. They are behind Google's original PageRank algorithm, the vibration modes of bridges and molecules, principal component analysis in statistics, the stability of differential equations and the energy levels in quantum mechanics. In a linear algebra course they are usually the topic where everything learned so far — determinants, row reduction and null spaces — comes together.
This calculator follows the textbook method. It forms the characteristic polynomial , finds its roots exactly using the rational root theorem, the quadratic formula and polynomial division, and then solves for each eigenvalue to produce eigenvectors with simple integer entries wherever possible.
Irrational eigenvalues are kept in exact radical form, complex eigenvalues are reported as conjugate pairs, and repeated eigenvalues come with both their algebraic and geometric multiplicities, so you can tell at a glance whether the matrix is diagonalisable. Matrices from 2×2 to 4×4 are supported, which covers essentially every homework and exam problem.
What are eigenvalues and eigenvectors?
A nonzero vector is an eigenvector of a square matrix if multiplying by only scales it: for some number . That number is the eigenvalue belonging to . Most vectors change direction when multiplied by a matrix; eigenvectors are the special ones that stay on their own line through the origin.
Rewriting the definition as shows how to find them. A nonzero solution exists only when is singular, which means its determinant is zero. The equation is called the characteristic equation; for an matrix it is a polynomial of degree , so there are exactly eigenvalues counted with multiplicity, some of which may be complex.
Every eigenvalue has infinitely many eigenvectors, because any nonzero multiple of an eigenvector is another one. Answers are therefore given as a representative vector, or a basis when there are several independent directions, and your textbook may show a different multiple of the same vector.
How to use the Eigenvalue Calculator
- Type the matrix one row per line, separating entries with spaces, for example 4 1 on the first line and 2 3 on the second.
- You can also put a whole matrix on one line with semicolons between rows, such as 4 1; 2 3.
- Entries can be integers, decimals, fractions or negative numbers. The matrix must be square, from 2×2 to 4×4.
- Press Find eigenvalues to see the characteristic polynomial, its roots and the eigenvector calculation for each eigenvalue.
- Check the multiplicities reported for repeated eigenvalues if you need to know whether the matrix is diagonalisable.
Formulas
Eigenvalue equation
Characteristic equation
2×2 shortcut
Trace and determinant
Diagonalisation
Worked example: 2×2, rational
The worked example below is computed live for . The trace is 7 and the determinant is , so the characteristic polynomial is and the eigenvalues are 5 and 2.
For , the matrix has rows and , whose null space is spanned by . For , has rows and , giving . Checking one is quick: , exactly five times the vector.
The solution below is generated by the same engine that powers the calculator above.
Final answer
How we read your problem
Find the eigenvalues and eigenvectors of a 2×2 matrix.
Step-by-step solution
Set up the characteristic equation
For a 2×2 matrix it is λ² − (trace)λ + det
Characteristic polynomial
Rational roots found with the rational root theorem
Eigenvectors for λ = 5: solve (A − λI)v = 0
Eigenvectors for λ = 2: solve (A − λI)v = 0
Formulas used
Characteristic equation
Eigenvector equation
The eigenvalues are the roots of the characteristic polynomial. Eigenvectors: λ = 5: ⟨1, 1⟩; λ = 2: ⟨-1, 2⟩.
Verification
- Sum of eigenvalues ≈ 7 equals the trace 7.
- Product of eigenvalues equals the determinant 10.
Detailed explanation
Step 1: the characteristic polynomial
For a 2×2 matrix the polynomial can be written down immediately as . For larger matrices the calculator expands by cofactors. The 3×3 symmetric matrix with rows , and gives .
Two quick checks catch most arithmetic errors. The coefficient of is minus the trace, here , and the constant term is , here because the determinant is 22.
Step 2: finding the roots
With integer entries, any rational eigenvalue must divide the constant term, so the calculator tests the divisors of 22 and finds , then divides the polynomial by and factors the quadratic that remains. The eigenvalues are 11, 2 and 1, and their sum, 14, matches the trace as it must.
When the remaining quadratic does not factor over the rationals, the quadratic formula gives exact radicals. For , the polynomial has roots , approximately 5.372 and . If the discriminant is negative the roots are complex conjugates; the rotation matrix has , so , reflecting the fact that a 90° rotation leaves no real direction unchanged.
Step 3: eigenvectors from the null space
For each eigenvalue, substitute it into and solve the homogeneous system by row reduction. Because the matrix is singular, at least one row reduces to zeros, leaving a free variable. Setting the free variable to a convenient value and back-substituting gives the eigenvector, which the calculator scales to small integers.
For in the 3×3 example, has rows , and . The first row forces and the others both say , so . Symmetric matrices like this one always have real eigenvalues and mutually perpendicular eigenvectors, which you can confirm with the dot product.
Repeated eigenvalues and diagonalisation
An eigenvalue that appears times as a root has algebraic multiplicity . The number of independent eigenvectors it has is its geometric multiplicity, which can be smaller. Both and have the double eigenvalue 2, but the first has only one eigenvector direction, , while the second has two, and .
A matrix can be written as , with the eigenvalues on the diagonal of and the eigenvectors as the columns of , exactly when every eigenvalue's geometric multiplicity equals its algebraic multiplicity. Diagonalisation makes powers easy, since , and that is how eigenvalues predict long-term behaviour in population models and Markov chains.
Shortcuts worth knowing
The eigenvalues of a triangular matrix are its diagonal entries, so the matrix with rows , and has eigenvalues 6, 4 and 1 without any calculation. A matrix is invertible exactly when 0 is not an eigenvalue, and the eigenvalues of are the reciprocals of those of , with the same eigenvectors.
Simple changes to a matrix move its eigenvalues in predictable ways. Adding times the identity adds to every eigenvalue, multiplying the matrix by a scalar multiplies every eigenvalue by that scalar, and raising it to the power raises every eigenvalue to the power , all without changing the eigenvectors. A matrix and its transpose share the same eigenvalues, though usually not the same eigenvectors. These facts let you check answers and predict results before computing anything.
Common mistakes
- Computing instead of ; must be subtracted from every diagonal entry.
- Accepting the zero vector as an eigenvector; eigenvectors must be nonzero by definition.
- Making an arithmetic slip in the polynomial and then finding a null space containing only the zero vector.
- Assuming every matrix has real eigenvalues; rotations and many non-symmetric matrices have complex ones.
- Thinking an eigenvector is wrong because it differs from the textbook by a constant multiple.
- Concluding a matrix is diagonalisable without checking the geometric multiplicity of repeated eigenvalues.
Tips
- Check that the eigenvalues add up to the trace and multiply to the determinant.
- Verify each eigenvector by computing and comparing it with .
- Read eigenvalues straight off the diagonal of triangular matrices.
- For 3×3 matrices, expand the determinant along a row or column with the most zeros.
- Use the determinant calculator to confirm that is singular for each eigenvalue.
- Expect real eigenvalues and perpendicular eigenvectors whenever the matrix is symmetric.
- Factor out common numbers from a matrix first; the eigenvalues simply scale by that factor.
Frequently asked questions
How do I enter a matrix into the eigenvalue calculator?
Type one row per line with spaces between entries, or put all rows on one line separated by semicolons, such as 4 1; 2 3. Fractions, decimals and negative numbers are accepted.
What size matrices are supported?
Square matrices from 2×2 up to 4×4. Eigenvalues are only defined for square matrices, so a 3×2 matrix, for example, is rejected with an explanation.
Can the calculator find complex eigenvalues?
Yes. When the characteristic polynomial has a negative discriminant, the eigenvalues are reported as a complex-conjugate pair, such as λ = i and −i for a 90° rotation matrix.
Why is my eigenvector different from the one in my textbook?
Any nonzero multiple of an eigenvector is also an eigenvector. ⟨1, 1⟩ and ⟨3, 3⟩ describe the same direction. Check that one vector is a multiple of the other.
What do algebraic and geometric multiplicity mean?
Algebraic multiplicity is how many times an eigenvalue repeats as a root of the characteristic polynomial. Geometric multiplicity is how many independent eigenvectors it has. The calculator reports both for repeated eigenvalues.
Does the calculator give exact or decimal eigenvalues?
Exact whenever possible: integers, fractions and radicals such as 5/2 ± √33/2. Only when the roots of a cubic or quartic cannot be found exactly does it fall back to accurate decimal values.
How are eigenvalues related to the determinant and trace?
The product of all eigenvalues equals the determinant and their sum equals the trace. For the matrix with rows (4, 1) and (2, 3), 5 × 2 = 10 is the determinant and 5 + 2 = 7 is the trace.
What does an eigenvalue of zero mean?
The matrix is singular: it has no inverse and its determinant is zero. The eigenvectors for λ = 0 span the null space of the matrix.
Where are eigenvalues used outside the classroom?
In vibration analysis, stability of control systems, principal component analysis, quantum mechanics, Markov chains and search-engine ranking, wherever repeated application of a linear transformation needs to be understood.
Find your matrix's eigenvalues
Enter a square matrix above to get the characteristic polynomial, exact eigenvalues and an eigenvector for each one, with every step shown.