Eigenvalue Calculator

Instantly calculate the eigenvalues, trace, and determinant of a 2x2 matrix.

Enter Matrix A

Trace (Tr)
5
a + d
Determinant (Det)
-2
ad - bc
Eigenvalues (λ)
λ₁ = 5.372, λ₂ = -0.372
λ² - 5λ - 2 = 0

How to Calculate Eigenvalues

Linear algebra forms the foundation of modern computer science, physics, and machine learning. One of the most critical concepts in linear algebra is the eigenvalue. Geometrically, when a linear transformation (represented by a matrix) is applied to a vector, most vectors change direction. However, certain special vectors—known as eigenvectors—only change in scale, not direction. The scaling factor is the eigenvalue.

This calculator specifically solves for the eigenvalues of a 2x2 matrix. For a 2x2 matrix, the calculation boils down to finding the roots of a characteristic quadratic equation.

The Characteristic Equation

To find the eigenvalues (denoted by the Greek letter Lambda, λ) of a square matrix A, you must solve the characteristic equation:

det(A - λI) = 0

Where I is the identity matrix. For a standard 2x2 matrix composed of variables a, b, c, d, this expands into the following quadratic equation:

λ² - (a + d)λ + (ad - bc) = 0

Step-by-Step Methodology

Our calculator follows a specific three-step methodology to instantly evaluate your inputs:

1. Calculate the Trace

The trace of a matrix is simply the sum of the elements on its main diagonal. In our 2x2 matrix, the trace is a + d. A fascinating property of matrices is that the sum of the eigenvalues will always exactly equal the trace of the matrix.

2. Calculate the Determinant

The determinant of a 2x2 matrix is calculated using the formula (a × d) - (b × c). Geometrically, the determinant represents the scaling factor of the area (in 2D space) during the linear transformation. Just as the sum of eigenvalues equals the trace, the product of the eigenvalues will always exactly equal the determinant.

3. Solve the Quadratic Formula

By substituting the Trace and Determinant back into the characteristic equation, we get:

λ² - Tr(A)λ + Det(A) = 0

To solve for λ, we apply the standard quadratic formula:

λ = [Tr(A) ± √(Tr(A)² - 4×Det(A))] / 2

Real vs. Complex Eigenvalues

The term inside the square root—Tr(A)² - 4×Det(A)—is known as the discriminant. Depending on the value of the discriminant, a 2x2 matrix will have different types of eigenvalues:

  • Discriminant > 0: Two distinct real eigenvalues. The matrix stretches or squashes space in two distinct directions.
  • Discriminant = 0: One repeated real eigenvalue.
  • Discriminant < 0: Two complex (imaginary) conjugate eigenvalues. Geometrically, this indicates that the linear transformation includes a rotation, meaning no real vectors maintain their original direction.

Frequently Asked Questions

What is an eigenvalue?

An eigenvalue is a scalar that indicates how much an eigenvector is stretched or shrunk during a linear transformation. If a matrix represents a transformation, the eigenvectors are the directions that remain unchanged, and the eigenvalues are the scale factors in those directions.

How do you calculate the eigenvalues of a 2x2 matrix?

To find the eigenvalues of a 2x2 matrix, you set up the characteristic equation: det(A - λI) = 0. This expands into the quadratic equation λ² - Tr(A)λ + det(A) = 0, where Tr(A) is the trace and det(A) is the determinant. You then solve for λ using the quadratic formula.

What is the trace of a matrix?

The trace of a square matrix is the sum of the elements on its main diagonal (from top-left to bottom-right). For a 2x2 matrix [[a, b], [c, d]], the trace is simply a + d. Interestingly, the sum of a matrix's eigenvalues always equals its trace.

Can eigenvalues be complex numbers?

Yes. If the discriminant in the characteristic quadratic equation (Trace² - 4 × Determinant) is negative, the matrix will have complex (or imaginary) eigenvalues. This often geometrically corresponds to a rotation transformation rather than a simple scaling.

What does a zero eigenvalue mean?

If a matrix has an eigenvalue of zero, it means the matrix is singular (non-invertible) and its determinant is zero. Geometrically, it implies that the linear transformation squashes at least one dimension of space down to the origin.