1. Home
  2. Linear algebra

Linear algebra · eigenproblems

Generalized Eigenvalues and Eigenvectors: Ax = λBx

Eigenfield editorial team ·

A generalized eigenvalue problem asks for scalars λ and nonzero vectors x such that Ax = λBx, where A and B are square matrices of the same size. Each such λ is a generalized eigenvalue, and each such x is a generalized eigenvector. When B is the identity matrix this is the ordinary eigenvalue problem, so the generalized form contains the familiar one as a special case.

Where the problem comes from

Vibration is the classic source. A structure with stiffness matrix K and mass matrix M vibrates freely in modes that satisfy Kx = ω²Mx, so ω² plays the role of λ. Other sources include principal component variants with a covariance weighting, linear discriminant analysis, and the discretization of differential equations on a finite element mesh. In each case B carries weighting or inertia that cannot be folded into A without changing the meaning.

Finding them: the determinant condition

A nonzero x exists exactly when A − λB is singular, so the generalized eigenvalues are the roots of the characteristic equation det(A − λB) = 0. For n × n matrices that polynomial has degree at most n.

Example: A = [2 1; 1 3] and B = [2 0; 0 1]. Then A − λB = [2 − 2λ, 1; 1, 3 − λ], and

det = (2 − 2λ)(3 − λ) − 1 = 6 − 2λ − 6λ + 2λ² − 1 = 2λ² − 8λ + 5.

Set this to zero. The quadratic formula gives λ = (8 ± √(64 − 40))/4 = (8 ± √24)/4 = 2 ± √6/2. Numerically λ₁ ≈ 3.2247 and λ₂ ≈ 0.7753.

For the eigenvectors, the first row of (A − λB)x = 0 reads (2 − 2λ)x₁ + x₂ = 0, so x₂ = (2λ − 2)x₁. For λ₁ that is x₂ ≈ 4.4495x₁, and for λ₂ it is x₂ ≈ −0.4495x₁. Check the second row for λ₂: x₁ + (3 − 0.7753)x₂ = 1 + 2.2247 · (−0.4495) ≈ 1 − 1.000 = 0. Good.

These two vectors have a property worth noticing. They are not orthogonal in the usual sense, but they are B-orthogonal: with x = (1, 4.4495) and y = (1, −0.4495), the weighted product xᵀBy = 2·1·1 + 1·4.4495·(−0.4495) ≈ 2 − 2.000 = 0.

Symmetric-definite pairs

When A is symmetric and B is symmetric positive definite, everything behaves well: all eigenvalues are real and the eigenvectors can be chosen B-orthogonal, exactly as in the example. The standard reduction uses the Cholesky factorization B = LLᵀ. Substituting y = Lᵀx turns Ax = λBx into the ordinary symmetric problem (L⁻¹AL⁻ᵀ)y = λy. Solving that and mapping back gives the original vectors.

Reduction to a standard problem is not always wise. If B is positive definite but badly conditioned, forming L⁻¹AL⁻ᵀ amplifies errors, and a method that works on the pair (A, B) directly does better.

Singular B and infinite eigenvalues

If B is singular, some eigenvalues are infinite, and inverting B to get B⁻¹A is impossible. Take A = I (2 × 2) and B = [1 0; 0 0]. Then det(A − λB) = (1 − λ) · 1, a polynomial of degree one for a 2 × 2 pair. One finite eigenvalue, λ = 1, appears, and the missing root is reported as infinite. In practice, software returns pairs (α, β) with λ = α/β, and β = 0 flags the infinite case. If det(A − λB) is zero for every λ, the pair is singular, and the problem is ill-posed.

How it is computed

For general pairs the QZ algorithm is the standard tool. It is the generalized counterpart of the Schur factorization, triangularizing A and B at the same time with unitary matrices. Both triangular diagonals are then read off and the ratios give the eigenvalues, without ever forming B⁻¹A.

The ordinary problem is the case B = I; find the related ideas in matrix division, where A\B is the product A⁻¹B in disguise and is the wrong tool for this job when B is singular. Definitions of eigenvalue and positive definite are in the glossary. More neighbors sit in the linear algebra hub.

Back to top