Matrix Eigenvalue Calculator
Find the eigenvalues and unit eigenvectors of a real 2×2 matrix, including the complex pair when the discriminant is negative.
The 2×2 closed form
Enter the four entries of a real matrix [[a, b], [c, d]]. The page computes the trace T = a + d and the determinant D = ad − bc, then solves λ = (T ± √(T² − 4D)) / 2. For a real eigenvalue it prints a unit eigenvector from (λ − d, c), or (b, λ − a) when that vector is zero, and it prints the trace, the determinant and the discriminant so the arithmetic can be checked.
This is the closed form for a 2×2 matrix only. A larger matrix needs an iterative decomposition the page does not implement, and a defective matrix — one eigenvalue with a single independent eigenvector — is reported by the eigenvector it can find, not by a Jordan form. When the discriminant is negative the matrix has a complex-conjugate pair, which the page states with both parts instead of pretending a real answer exists.
Everything is computed in this tab from the four entries. Nothing is uploaded, no matrix is stored, and reloading with the same entries prints the same pair.
The closed form for a real 2×2 matrix: T = a + d, D = ad − bc, and λ = (T ± √(T² − 4D)) / 2, with a unit eigenvector printed for each real eigenvalue. [[4,1],[2,3]] gives λ = 5 and 2.
The page covers 2×2 only. When the discriminant is negative it reports the complex-conjugate pair with both parts rather than inventing a real answer, and a defective matrix is not put into Jordan form.
How to use it
Type the four entries a, b, c and d of the matrix in reading order, then press Run. The eigenvalues come first, then a unit eigenvector for each, then the trace, determinant and discriminant so the arithmetic can be checked.
The arithmetic
The trace and determinant are computed once. A non-negative discriminant gives two real roots of the quadratic; each root then yields the null vector (λ − d, c), normalised to unit length, with (b, λ − a) as the fallback when that vector collapses to zero.
Where it stops
A 3×3 or larger matrix needs an iterative decomposition the page does not implement, and a defective matrix has fewer independent eigenvectors than its multiplicity, which the printed pair does not reveal. A complex pair is stated as complex and gets no eigenvector, because a real matrix has none for it.
What to Expect
Best for
- Checking a 2×2 eigen-decomposition by hand.
- Seeing the discriminant that decides real or complex.
What this tool keeps
- The four entries are computed in the browser and never posted, so the page works offline and retains nothing.
Sample input
[[4, 1], [2, 3]]
Sample output
λ₁ = 5, λ₂ = 2 v₁ = (0.707107, 0.707107) v₂ = (-0.447214, 0.894427) T = 7, D = 10, T² − 4D = 9
Frequently asked questions
How do I use it?
Type the four entries of the matrix, then press Run. The eigenvalues, a unit eigenvector for each real one, and the trace, determinant and discriminant are printed.
Is anything uploaded?
No. The arithmetic runs in this tab with JavaScript: no request is made, no account is needed, nothing is stored, and the page keeps working offline once loaded.
What are its limits?
Only a real 2×2 matrix is handled; a negative discriminant must be read as a complex-conjugate pair, and the page never claims a real eigenvector for it.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.