The method for symbolic computation of eigenvectors and eigenvalues involves first finding the eigenvalues from the characteristic polynomial:
det(M - λ I) = 0
where, in this case for two dimensional matrix M =
| m00 | m01 |
| m10 | m11 |
which gives the characteristic equation:
(m00 - λ)(m11 - λ) - m01 m10 = 0
expanding out gives:
λ² - (m00 + m11)λ + (m00 m11 - m01 m10) = 0
where:
- (m00 + m11) = trace
- (m00 m11 - m01 m10) = determinant
solving the quadratic equation gives:
λ = (m00 + m11)/2 ± (√(4*m01*m10 + (m00 - m11)²))/2
We can then substitute these into
|
= |
|
which is equivalent to solving 2 simultaneous equations.
Special Cases
If the matrix is symmetrical around the leading diagonal:
m01=m10
then:
λ = (m00 + m11)/2 ± (√(2*m01)² + (m00 - m11)²))/2
Code
Here is a Java function to return the eigenvalues:







