Computing Eigenvalues
Eigenvalues are special scalars that represent the factors by which eigenvectors are scaled during a linear transformation. Understanding how to compute them is fundamental to analyzing the behavior of matrices in various applications, from principal component analysis to quantum mechanics. This lesson focuses on the algebraic method: deriving and solving the characteristic equation for a given matrix.
The Characteristic Equation
The core idea behind finding eigenvalues stems from the definition , where is a matrix, is an eigenvector, and is an eigenvalue. Rearranging this equation gives . To combine and , we introduce the identity matrix , allowing us to write , which simplifies to . For this homogeneous system to have non-trivial solutions (i.e., ), the matrix must be singular, meaning its determinant must be zero.
The characteristic equation for a square matrix is given by:
Here, denotes the determinant, is the matrix, is the eigenvalue (a scalar variable), and is the identity matrix of the same dimension as . Solving this polynomial equation for yields the eigenvalues.
Finding Eigenvalues for 2x2 Matrices
For a 2x2 matrix, the characteristic equation simplifies to a quadratic polynomial, which is straightforward to solve. We first construct the matrix , then compute its determinant. Setting this determinant to zero gives us a quadratic equation in terms of . The roots of this quadratic equation are the eigenvalues of the matrix.
Real and Distinct Eigenvalues
The simplest case occurs when the characteristic polynomial yields distinct real roots. Each unique real root corresponds to a unique eigenvalue, and for each eigenvalue, there will be at least one corresponding eigenvector. These eigenvalues represent distinct scaling factors along different directions in the vector space, making the transformation behavior clear.
Repeated Eigenvalues (Algebraic Multiplicity)
Sometimes, the characteristic polynomial has repeated roots. If an eigenvalue appears times as a root of the characteristic polynomial, it has an algebraic multiplicity of . This means the matrix scales along certain directions by the same factor multiple times. While the algebraic multiplicity tells us how many times an eigenvalue is a root, it does not directly tell us how many linearly independent eigenvectors correspond to it (that's the geometric multiplicity, a separate concept).
Complex Eigenvalues
Not all matrices have real eigenvalues. For real matrices, if complex eigenvalues exist, they always appear in conjugate pairs. This means if is an eigenvalue, then its conjugate must also be an eigenvalue. Complex eigenvalues often arise in transformations that involve rotation, where vectors are rotated rather than simply scaled along their original direction.
Generalizing to Larger Matrices
The process of computing eigenvalues by solving extends to matrices. For a matrix, the characteristic equation will be a cubic polynomial. For larger matrices, the characteristic polynomial will be of degree . While theoretically the same, finding the roots of high-degree polynomials analytically becomes increasingly complex and often impossible for using general formulas.
For matrices larger than , solving the characteristic polynomial by hand is impractical. In numerical linear algebra, specialized iterative algorithms (like the QR algorithm) are used to approximate eigenvalues efficiently. These methods avoid direct polynomial root-finding altogether.
H below so that it has a repeated eigenvalue of 3. You should only change the values in the matrix, not the np.linalg.eigvals call.| Type | Characteristic Polynomial Roots | Geometric Interpretation | Example Matrix |
|---|---|---|---|
| Real and Distinct | Unique real roots | Clear, distinct scaling along specific directions | |
| Repeated (Real) | Real roots with algebraic multiplicity > 1 | Multiple scaling factors are identical; can lead to fewer independent eigenvectors | |
| Complex (Conjugate Pairs) | Complex conjugate roots | Involves rotation and scaling; no real eigenvectors |
Eigenvalues are found by solving the characteristic equation: .
For an matrix, the characteristic equation is an -th degree polynomial in .
Real and distinct eigenvalues indicate unique scaling factors along different eigenvector directions.
Repeated eigenvalues have an algebraic multiplicity greater than one, meaning the same scaling factor applies multiple times.
Complex eigenvalues for real matrices always appear in conjugate pairs and often signify rotational components in the transformation.
While manual computation is feasible for and matrices, numerical methods are essential for larger matrices.