Math & Scientific
Calculate Eigenvalues of a Two-by-Two Matrix
Build the characteristic equation from trace and determinant, solve a worked two-by-two example, and verify eigenvectors without claiming the local matrix tool is an eigensolver.
Define an eigenvalue through its action
An eigenvalue λ of a square matrix A is a number for which A times some nonzero vector v equals λ times that same vector. The vector's direction is preserved or reversed while its scale changes. The zero vector is excluded because it would satisfy the equation for every λ and provide no useful information. A list of matrix entries is therefore not itself a list of eigenvalues. The calculation depends on the matrix as a linear transformation and must preserve the order of its rows and columns.
Build the two-by-two characteristic equation
For A with rows a,b and c,d, subtract λ from the two diagonal entries and set the determinant to zero. Expanding gives (a−λ)(d−λ)−bc=0, or λ²−(a+d)λ+(ad−bc)=0. The quantity a+d is the trace, and ad−bc is the determinant. This produces a quadratic equation for a two-by-two matrix. The local general Matrix Calculator can calculate a determinant, but it does not directly calculate eigenvalues or eigenvectors. Use the derived coefficients in the Quadratic Formula Calculator for this particular matrix size.
Work through a symmetric example
Let A have rows 2,1 and 1,2. Its trace is 4 and determinant is 2×2−1×1=3. The characteristic equation is λ²−4λ+3=0. Factoring gives (λ−3)(λ−1)=0, so the eigenvalues are 3 and 1. Enter coefficients 1, −4 and 3 in the quadratic calculator to check those roots. Keep the coefficient of the middle term negative: using +4 would solve a different polynomial and produce −3 and −1 instead.
Verify a nonzero vector for each root
For λ=3, choose v as the column 1,1. The product Av has entries 2×1+1×1=3 and 1×1+2×1=3, which equals 3v. For λ=1, use the column 1,−1. The product is the column 1,−1, exactly 1v. Any nonzero scalar multiple of either vector is also an eigenvector for its corresponding eigenvalue. For example, 2,2 works for λ=3. These explicit products verify the interpretation of the roots rather than relying only on a polynomial calculation.
Use trace and determinant as checks
The two roots in this example sum to 4, matching the trace, and multiply to 3, matching the determinant. These relations follow from the coefficients of the quadratic. They are useful error checks but should not be used to invent roots without solving the equation. Repeated roots are possible: the identity matrix has trace 2, determinant 1 and characteristic polynomial (λ−1)². It has the repeated eigenvalue 1. Repetition alone does not tell you the number of independent eigenvectors for every matrix; that requires examining the corresponding equations.
Recognize when real roots are unavailable
For rows 0,−1 and 1,0, the trace is 0 and determinant is 1, giving λ²+1=0. There are no real roots; over complex numbers the eigenvalues are i and −i. A real-only answer of zero would be incorrect. This example represents a quarter-turn in the plane, which preserves no nonzero real direction as a scalar multiple. The matrix tools on this site accept real numeric entries and do not provide a complete complex eigenvector workflow. Keep that limitation separate from the valid complex roots of the characteristic polynomial.
Do not extend the shortcut beyond its scope
For a three-by-three matrix, the characteristic polynomial has degree three, so the two-by-two quadratic formula is no longer a complete method. Larger numerical eigenvalue problems generally require an appropriate eigensolver with suitable precision and stability. The local quadratic tool checks the roots after you have correctly derived a two-by-two characteristic equation; it does not accept a matrix and perform that derivation for you. Save the original matrix, trace, determinant, polynomial and at least one eigenvector check with the answer so each step can be reviewed independently.