Eigenvalue Calculator
Eigenvalues tell you how a matrix stretches space. Enter a square matrix; the solver builds det(A − λI) = 0, solves the characteristic polynomial and gives each eigenvalue exactly.
How to use the eigenvalue calculator
- Set the matrix size and fill in the entries.
- Press Solve.
- Read the characteristic polynomial and the eigenvalues.
Examples
[[2,1],[1,2]]
Answer: λ = 1, 3
[[4,1],[2,3]]
Answer: λ = 2, 5
What eigenvalues and eigenvectors are
For a square matrix , an eigenvector is a direction that only stretches (or flips) without rotating:
The stretch factor is the eigenvalue. The calculator finds the characteristic polynomial, its roots (the eigenvalues, including complex ones) and a basis of eigenvectors for each, with every step shown.
How to find them
- Solve the characteristic equation for .
- For each , solve to get the eigenvectors.
Worked example
- .
- , so and .
- For : gives .
- For : gives .
Check: ✓
Quick checks you can always do
- The eigenvalues add up to the trace (sum of the diagonal): ✓
- They multiply to the determinant: ✓
- Triangular matrices have their eigenvalues on the diagonal.
Common mistakes
- Subtracting from every entry instead of only the diagonal.
- Accepting as an eigenvector. It never counts.
- Expecting a unique eigenvector. Any non-zero multiple works, so is just as valid as .
Where they're used
Diagonalizing makes powers easy (). Eigenvalues decide the stability of systems of differential equations, and they power principal component analysis (PCA), Google's PageRank and vibration analysis.
In real life: where a population settles
A city has two neighbourhoods. Each year, 10% of the people in A move to B and 20% of the people in B move to A. The yearly change is described by
Its eigenvalues are and . The eigenvector for is proportional to . That's the long-run state: whatever the starting numbers, the population settles at two thirds in A and one third in B. The other eigenvalue (0.7) controls how fast it gets there: the gap shrinks by 30% each year.
This "steady state as the eigenvector for eigenvalue 1" idea is exactly how Google's original PageRank ranked web pages.
Formulas
Practice problems
Try each one first, then open the answer to check your work.
1.Find the eigenvalues of .
Show answer
3 and , the diagonal entries.
2.Find the eigenvalues of .
Show answer
1 and 3. .
3.Find an eigenvector of for .
Show answer
.
4.A matrix has trace 5 and determinant 6. What are its eigenvalues?
Show answer
2 and 3. .
5.Find the eigenvalues of .
Show answer
. . This is a 90° rotation.
Key terms
- Eigenvalue
- A scalar with .
- Eigenvector
- A non-zero vector that only scales.
- Characteristic polynomial
- , whose roots are the eigenvalues.
- Trace
- The sum of the diagonal entries, equal to the sum of the eigenvalues.
- Eigenspace
- All the eigenvectors for one eigenvalue, together with the zero vector.