Maths WorkshopMaths problems with full solutions
Exercise 169Linear algebra › Linear mapsL1Added 3 Nov 2026

Diagonalizability and the sum of eigenspaces

#diagonalization#eigenspaces#dimension

Statement

Let K=R\mathbb{K}=\mathbb{R} or C\mathbb{C}, and let f:E→Ef:E\to E be a linear endomorphism of an nn-dimensional K\mathbb{K}-vector space. For λ∈K\lambda\in\mathbb{K} put Eλ=ker⁡(f−λ id)E_\lambda=\ker(f-\lambda\,\mathrm{id}). Call ff diagonalizable if EE has a basis of eigenvectors of ff (equivalently, the matrix of ff in some basis is diagonal).

Show that ff is diagonalizable if and only if ∑λdim⁡Eλ=n\sum_\lambda\dim E_\lambda=n, the sum running over the eigenvalues λ∈K\lambda\in\mathbb{K} of ff.

Hint

First show that eigenspaces for distinct eigenvalues are in direct sum. Then compare a basis of eigenvectors with the eigenspaces.

Show solutionHide solution

Solution

Lemma. If λ1,…,λr\lambda_1,\ldots,\lambda_r are distinct and wi∈Eλiw_i\in E_{\lambda_i} satisfy w1+⋯+wr=0w_1+\cdots+w_r=0, then all wi=0w_i=0.

*Proof, by induction on rr.* The case r=1r=1 is trivial. For r≥2r\ge2, apply f−λr idf-\lambda_r\,\mathrm{id}: it maps wiw_i to (λi−λr)wi∈Eλi(\lambda_i-\lambda_r)w_i\in E_{\lambda_i} and kills wrw_r. So ∑i<r(λi−λr)wi=0\sum_{i<r}(\lambda_i-\lambda_r)w_i=0, and by induction (λi−λr)wi=0(\lambda_i-\lambda_r)w_i=0, hence wi=0w_i=0 for i<ri<r (as λi≠λr\lambda_i\neq\lambda_r). Then wr=0w_r=0. □\square

Consequently the sum of the eigenspaces is direct and ∑λdim⁡Eλ=dim⁡⨁λEλ≤n\sum_\lambda\dim E_\lambda=\dim\bigoplus_\lambda E_\lambda\le n.

(⇒\Rightarrow) Let (b1,…,bn)(b_1,\ldots,b_n) be a basis of eigenvectors, with f(bj)=djbjf(b_j)=d_jb_j. For each eigenvalue λ\lambda, let nλn_\lambda be the number of jj with dj=λd_j=\lambda. These bjb_j are independent vectors of EλE_\lambda, so nλ≤dim⁡Eλn_\lambda\le\dim E_\lambda. Since ∑λnλ=n\sum_\lambda n_\lambda=n, we get n≤∑λdim⁡Eλ≤nn\le\sum_\lambda\dim E_\lambda\le n, hence equality.

(⇐\Leftarrow) Suppose ∑λdim⁡Eλ=n\sum_\lambda\dim E_\lambda=n. Choose a basis of each EλE_\lambda and let B\mathcal{B} be the union of these bases: it has nn vectors. It is linearly independent: a vanishing combination groups into one vector wλ∈Eλw_\lambda\in E_\lambda per eigenvalue with ∑λwλ=0\sum_\lambda w_\lambda=0; by the Lemma every wλ=0w_\lambda=0, and then all coefficients vanish because each family is a basis of EλE_\lambda. So B\mathcal{B} is a basis of EE made of eigenvectors, and ff is diagonalizable.

Conclusion. ff is diagonalizable iff ∑λdim⁡Eλ=dim⁡E\sum_\lambda\dim E_\lambda=\dim E.