Eigenvalue Calculator
Compute eigenvalues (and numeric eigenvectors) for small square matrices. Choose matrix size using the toggles, enter matrix entries (decimals or simple fractions like 3/4), set precision, and optionally view step-by-step calculations: determinant, characteristic polynomial coefficients and numeric iteration trace.
Eigenvalues and Eigenvectors: What they are and why they matter
Eigenvalues and eigenvectors are fundamental concepts in linear algebra with far-reaching applications across science, engineering, data analysis, and beyond. Informally, an eigenvector of a square matrix is a non-zero vector that is only scaled (not rotated) by that matrix; the scale factor is the corresponding eigenvalue. Algebraically, given a square matrix A and a vector v, if A v = λ v for some scalar λ, then v is an eigenvector and λ is its eigenvalue.
Intuition and examples
Consider a transformation of the plane represented by a 2×2 matrix: most vectors change direction when the transformation is applied. However, a few special vectors — the eigenvectors — lie on invariant lines: after transformation, they are stretched or compressed but keep their direction. The corresponding factors of stretching/compression are the eigenvalues. For instance, reflections, stretches, shears and rotations have characteristic eigen-structures: pure rotations have complex eigenvalues (no real invariant directions), while scalings have real eigenvalues equal to the scale factors.
Why eigenvalues matter
Eigenvalues reveal intrinsic properties of linear operators. In mechanical systems, eigenvalues correspond to natural frequencies of vibration; in Markov chains they indicate mixing rates; in data science principal component analysis (PCA) uses eigenvalues of the covariance matrix to rank directions by explained variance; in control theory they indicate system stability (eigenvalues with positive real parts mean unstable dynamics for continuous-time systems).
Characteristic polynomial and determinant
Eigenvalues are roots of the characteristic polynomial p(λ) = det(A − λI). The polynomial’s degree equals the matrix size, so an n×n matrix has n eigenvalues counting multiplicity (possibly complex). The constant term of the characteristic polynomial (up to sign) is det(A). For 2×2 matrices the characteristic polynomial is λ² − tr(A)λ + det(A), which yields closed-form solutions for the eigenvalues using the quadratic formula. For larger matrices analytic closed-form expressions quickly become impractical, so numeric methods are used to approximate roots.
Computing numerically: QR algorithm
For 3×3 and 4×4 matrices, practical calculators use numeric iterative methods. A widely used approach is the QR algorithm — it repeatedly factors a matrix into Q (orthogonal) and R (upper triangular) factors and forms RQ. With shifts and deflations this method converges rapidly to an upper triangular matrix whose diagonal entries approximate eigenvalues. For small matrices (≤4×4) the basic QR iteration (with a few tweaks) is sufficient for accurate results; this page uses a robust numeric QR-based solver for the 3×3 and 4×4 cases and an exact closed-form approach for 2×2.
Complex eigenvalues
Non-symmetric real matrices can have complex eigenvalues, typically appearing as conjugate pairs. The numeric solver on this page will show complex eigenvalues when they arise. Complex eigenvectors can be computed numerically too; the calculator focuses on eigenvalues and provides numeric eigenvectors where they are stable and meaningful.
Stability, conditioning and repeated eigenvalues
Eigenvalue computations may be ill-conditioned: small perturbations in the matrix can cause large changes in eigenvalues when the matrix is nearly defective (lack of a complete eigenbasis) or has repeated eigenvalues. For critical engineering applications use high-quality linear algebra libraries (LAPACK, Eigen, etc.) and cross-check results with multiple methods. This tool is intended for learning and quick checks.
How to use this calculator
- Select matrix size using the toggles (2×2, 3×3, 4×4).
- Enter matrix entries row-wise. You can use decimals or simple fractions like
3/4. - Set desired output precision and enable 'Show Steps' to view intermediate results such as determinant and characteristic polynomial coefficients.
- Click 'Calculate' to compute eigenvalues. Use 'Copy Result' or 'Download CSV' to export.
Examples
2×2 example: A = [[2,1],[1,2]] has trace 4 and determinant 3, so the characteristic polynomial λ² − 4λ + 3 = 0 gives eigenvalues 1 and 3. This corresponds to invariant directions along eigenvectors and scaling by 1 and 3 respectively.
3×3 example: For a 3×3 matrix numerical iteration is convenient. The QR solver will iterate until convergence and list eigenvalues (real or complex). The characteristic polynomial coefficients computed by the Faddeev–LeVerrier algorithm help verify the numeric roots.
When to use analytic vs numeric methods
Use analytic formulas (exact) for 2×2 matrices and small symbolic cases. For 3×3 and larger matrices numeric methods are standard. This calculator combines exact steps for small sizes with a numeric QR solver for robustness on 3×3 and 4×4 matrices.
Limitations and tips
- Matrix entries should be plain numbers (no units).
- Watch out for near-identical or large-magnitude entries that may lead to loss of precision in JavaScript’s floating-point arithmetic.
- For production numeric needs use well-tested linear algebra libraries — this tool is ideal for education and quick checks.
Eigenvalues provide deep insight into linear operators and are an indispensable tool across many fields. This page gives a practical, approachable interface to compute them for small matrices, along with step-by-step explanations to help you learn what's happening under the hood.
Frequently Asked Questions
Enter numeric values (decimals or fractions) for every matrix entry. The matrix must be square (2×2, 3×3 or 4×4).
Yes — simple fractions like 3/4 are parsed and used in calculations.
It returns numeric eigenvectors where stable. For repeated or defective eigenvalues the vectors may be numerically unstable.
Results use JavaScript double-precision arithmetic. For small matrices accuracy is typically good; set precision accordingly. For critical tasks use specialist libraries.
Yes — the solver will return complex eigenvalues and show them in a+bi format.
It shows determinant, characteristic polynomial coefficients (via Faddeev–LeVerrier), and iterative solver trace (QR iterations) for 3×3 and 4×4 when enabled.
Yes — use 'Download CSV' or 'Copy Result' to export answers and steps.
No — inputs must be numeric values without physical unit text.
For 3×3 and 4×4 the QR iterations converge quickly (milliseconds) in modern browsers. Very ill-conditioned matrices may take more iterations but are still fast for these sizes.
Yes — free on AkCalculators.