Skip to content

Linear Algebra: Eigenvalues

An eigenvalue λ\lambda of a matrix AA is a scalar such that

Av=λvA\mathbf{v} = \lambda \mathbf{v}

for some nonzero vector v\mathbf{v}, called the eigenvector.

We solve the characteristic equation:

det(AλI)=0\det(A - \lambda I) = 0

Let A=(4123)A = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}.

det(4λ123λ)=(4λ)(3λ)2=λ27λ+10=0\det\begin{pmatrix} 4 - \lambda & 1 \\ 2 & 3 - \lambda \end{pmatrix} = (4-\lambda)(3-\lambda) - 2 = \lambda^2 - 7\lambda + 10 = 0

So λ1=5\lambda_1 = 5, λ2=2\lambda_2 = 2.

import numpy as np
A = np.array([[4, 1],
[2, 3]])
eigenvalues, eigenvectors = np.linalg.eig(A)
print(f"Eigenvalues: {eigenvalues}")
print(f"Eigenvectors:\n{eigenvectors}")
Eigenvalues: [5. 2.]
Eigenvectors:
[[ 0.70710678 -0.4472136 ]
[ 0.70710678 0.89442719]]
  • The trace of AA equals the sum of eigenvalues: tr(A)=λi\text{tr}(A) = \sum \lambda_i
  • The determinant equals the product: det(A)=λi\det(A) = \prod \lambda_i
  • A matrix is invertible iff no eigenvalue is zero
  • Symmetric matrices have real eigenvalues and orthogonal eigenvectors
What is the characteristic equation of a matrix AA?
det(AλI)=0\det(A - \lambda I) = 0
1 / 5
Test Your Knowledge
Question 1 of 4
What are the eigenvalues of InI_n (the n×nn \times n identity matrix)?