Salta al contenuto
Note per Studenti Eigenvalues and Eigenvectors Report

Eigenvalues and Eigenvectors

In questa pagina 7

1. Motivation: diagonal matrices

A square matrix is called diagonal if the only possibly nonzero entries are on the main diagonal:

D=(d110⋱0dnn).D=\begin{pmatrix} d_{11} & & 0\\ & \ddots & \\ 0 & & d_{nn}\end{pmatrix}.

Diagonal matrices are very easy to compute with. For example the product of two diagonal matrices is obtained by multiplying the diagonal entries one by one:

(a110⋱0ann)(b110⋱0bnn)=(a11b110⋱0annbnn).\begin{pmatrix} a_{11} & & 0\\ & \ddots & \\ 0 & & a_{nn}\end{pmatrix}\begin{pmatrix} b_{11} & & 0\\ & \ddots & \\ 0 & & b_{nn}\end{pmatrix}=\begin{pmatrix} a_{11}b_{11} & & 0\\ & \ddots & \\ 0 & & a_{nn}b_{nn}\end{pmatrix}.

This clearly goes wrong for products of general matrices. Eigenvalues and eigenvectors make it possible, in certain cases, to reduce computations with a general matrix to computations with a diagonal one. (Coupled with numerical considerations they were used, for instance, in the early PageRank algorithm.)

2. Definitions

Definition (eigenvalue, eigenvector). Let AA be a square n×nn\times n matrix. A real number λ\lambda is an eigenvalue of AA if there exists a nonzero vector v∈Rnv\in\mathbb{R}^n with

Av=λv.Av=\lambda v .

Such a vv is called an eigenvector for the eigenvalue λ\lambda. In words: multiplying AA by vv gives a scaled copy of vv, the scaling factor being λ\lambda.

Likewise, for a linear map f:V→Vf:V\to V, a number λ\lambda is an eigenvalue if there is v∈Vv\in V, v≠0v\neq 0, with f(v)=λvf(v)=\lambda v.

The condition v≠0v\ne 0 is essential: A⋅0=λ⋅0A\cdot 0=\lambda\cdot 0 holds for every λ\lambda, so without it every number would be an "eigenvalue".

Example (reflection). Let f:R2→R2f:\mathbb{R}^2\to\mathbb{R}^2 be the reflection along the xx-axis, f(x,y)=(x,−y)f(x,y)=(x,-y). The equation f(v)=λvf(v)=\lambda v reads (x,−y)=(λx,λy)(x,-y)=(\lambda x,\lambda y), i.e. x=λxx=\lambda x and −y=λy-y=\lambda y.

  • The first equation holds if x=0x=0 (λ\lambda arbitrary) or if λ=1\lambda=1 (xx arbitrary).
  • The second holds if y=0y=0 (λ\lambda arbitrary) or if λ=−1\lambda=-1 (yy arbitrary).
  • By definition (x,y)≠(0,0)(x,y)\ne(0,0). If x≠0x\neq0 then λ=1\lambda=1, which forces y=0y=0. If x=0x=0 then y≠0y\ne 0 and therefore λ=−1\lambda=-1.

So there are two eigenvalues: λ=1\lambda=1 with eigenvectors (x,0)(x,0), x≠0x\neq 0, and λ=−1\lambda=-1 with eigenvectors (0,y)(0,y), y≠0y\neq0.

Key observation. For an n×nn\times n matrix AA the equation Av=λvAv=\lambda v can be rewritten as

0=Av−λv=Av−(λ id)v=(A−λ id)v0=Av-\lambda v=Av-(\lambda\,\mathrm{id})v=(A-\lambda\,\mathrm{id})v

(standard properties of matrix multiplication). A nonzero vv with this property exists if and only if A−λ idA-\lambda\,\mathrm{id} is not invertible, i.e. if and only if det⁡(A−λ id)=0\det(A-\lambda\,\mathrm{id})=0.

Example (shear). Let A=(1r01)A=\begin{pmatrix}1&r\\0&1\end{pmatrix} with r≠0r\ne0 (for r=0r=0 we get A=idA=\mathrm{id}). Then

A−λ id=(1−λr01−λ),det⁡(A−λ id)=(1−λ)2.A-\lambda\,\mathrm{id}=\begin{pmatrix}1-\lambda&r\\0&1-\lambda\end{pmatrix},\qquad \det(A-\lambda\,\mathrm{id})=(1-\lambda)^2 .

This vanishes exactly for λ=1\lambda=1, which is therefore the only eigenvalue. The eigenvectors are the solutions of (A−1⋅id)(xy)=(0r00)(xy)=(ry0)=0(A-1\cdot\mathrm{id})\begin{pmatrix}x\\y\end{pmatrix}=\begin{pmatrix}0&r\\0&0\end{pmatrix}\begin{pmatrix}x\\y\end{pmatrix}=\begin{pmatrix}ry\\0\end{pmatrix}=0. Since r≠0r\neq0 this means y=0y=0 with xx arbitrary: the eigenvectors are (x0)\begin{pmatrix}x\\0\end{pmatrix}, x≠0x\ne0.

3. The characteristic polynomial

Definition and Lemma. For A∈Matn×nA\in\mathrm{Mat}_{n\times n}, the function

χA(t)=det⁡(A−t⋅idn)\chi_A(t)=\det(A-t\cdot\mathrm{id}_n)

is a polynomial of degree nn, called the characteristic polynomial of AA. A real number λ\lambda is an eigenvalue of AA if and only if χA(λ)=0\chi_A(\lambda)=0.

(The second statement is exactly the key observation above: λ\lambda is an eigenvalue   ⟺  \iff A−λ idA-\lambda\,\mathrm{id} is not invertible   ⟺  \iff det⁡(A−λ id)=0\det(A-\lambda\,\mathrm{id})=0.) For the shear, χ(t)=(t−1)2\chi(t)=(t-1)^2.

The multiplicity of λ\lambda as a root of χA\chi_A is called its algebraic multiplicity.

Triangular matrices. For an upper (or lower) triangular matrix the determinant of A−t idA-t\,\mathrm{id} is the product of the diagonal entries (aii−t)(a_{ii}-t), so the eigenvalues are exactly the diagonal entries.

Example. For A=(21−4−3)A=\begin{pmatrix}2&1\\-4&-3\end{pmatrix}:

χA(t)=det⁡(2−t1−4−3−t)=(2−t)(−3−t)+4=t2+t−2.\chi_A(t)=\det\begin{pmatrix}2-t&1\\-4&-3-t\end{pmatrix}=(2-t)(-3-t)+4=t^2+t-2 .

Solving χA(t)=0\chi_A(t)=0: t1/2=−12±14+2=−12±32t_{1/2}=-\tfrac12\pm\sqrt{\tfrac14+2}=-\tfrac12\pm\tfrac32, so the eigenvalues are t1=−2t_1=-2 and t2=1t_2=1.

The 2×22\times2 case. For A=(abcd)A=\begin{pmatrix}a&b\\c&d\end{pmatrix}:

χA(t)=(a−t)(d−t)−bc=t2−(a+d)t+(ad−bc)=t2−tr⁡(A) t+det⁡A,\chi_A(t)=(a-t)(d-t)-bc=t^2-(a+d)t+(ad-bc)=t^2-\operatorname{tr}(A)\,t+\det A,

where tr⁡(A)=a+d\operatorname{tr}(A)=a+d is the trace (sum of the diagonal entries). By the quadratic formula

λ1/2=a+d2±(a−d)24+bc.\lambda_{1/2}=\frac{a+d}{2}\pm\sqrt{\frac{(a-d)^2}{4}+bc}.

(Indeed (a+d2)2−(ad−bc)=(a−d)24+bc\bigl(\tfrac{a+d}{2}\bigr)^2-(ad-bc)=\tfrac{(a-d)^2}{4}+bc.)

3.1 Rotations: no real eigenvalues, complex ones

Example (rotation). Let A=(cos⁡θ−sin⁡θsin⁡θcos⁡θ)A=\begin{pmatrix}\cos\theta&-\sin\theta\\ \sin\theta&\cos\theta\end{pmatrix}.

  • If θ\theta is a multiple of 2π2\pi (no rotation), A=id2A=\mathrm{id}_2: the only eigenvalue is 11 and every vector of R2\mathbb{R}^2 is an eigenvector.
  • If θ\theta is an odd multiple of π\pi (rotation by 180∘180^\circ), A=−id2A=-\mathrm{id}_2: the only eigenvalue is −1-1 and every vector is an eigenvector.
  • In all other cases there are no eigenvalues.

Geometrically this is clear: for a rotation other than these, for every vv the rotated vector AvAv lies on a different line through the origin, so it cannot be a multiple of vv. Algebraically:

χ(t)=(cos⁡θ−t)2+sin⁡2θ=t2−2tcos⁡θ+1,t=cos⁡θ±cos⁡2θ−1.\chi(t)=(\cos\theta-t)^2+\sin^2\theta=t^2-2t\cos\theta+1,\qquad t=\cos\theta\pm\sqrt{\cos^2\theta-1}.

We have −1≤cos⁡θ≤1-1\le\cos\theta\le1 with cos⁡2θ=1\cos^2\theta=1 if and only if θ\theta is a multiple of π\pi; otherwise the radicand is strictly negative and χ(t)=0\chi(t)=0 has no real solution.

The non-existence of eigenvalues is cured by working with complex numbers.

Theorem (Fundamental theorem of algebra). Every non-constant polynomial p(t)=antn+⋯+a0p(t)=a_nt^n+\dots+a_0 with complex (in particular, real) coefficients has a zero z∈Cz\in\mathbb{C}, p(z)=0p(z)=0.

Example. The rotation by 90∘90^\circ counter-clockwise, A=(0−110)A=\begin{pmatrix}0&-1\\1&0\end{pmatrix}, has χA(t)=1+t2\chi_A(t)=1+t^2, which has no real zero. But ii (with i2=−1i^2=-1) is a complex zero, and so is −i-i (since (−i)2=−1(-i)^2=-1).

It is therefore useful to consider linear algebra over C\mathbb{C}: all the concepts and theorems of the course continue to hold for complex matrices and complex vector spaces.

Corollary. Every complex square matrix has at least one (complex) eigenvalue. In particular every real square matrix has at least one complex eigenvalue (though maybe no real one).

4. Eigenspaces

Definition and Lemma. Let A∈Matn×nA\in\mathrm{Mat}_{n\times n} and λ∈R\lambda\in\mathbb{R}. The set

Eλ={v∈Rn∣Av=λv}E_\lambda=\{v\in\mathbb{R}^n\mid Av=\lambda v\}

is a subspace of Rn\mathbb{R}^n, the eigenspace of AA for λ\lambda.

Proof. The equation Av=λvAv=\lambda v is equivalent to (A−λ id)v=0(A-\lambda\,\mathrm{id})v=0, so Eλ=ker⁡(A−λ id)E_\lambda=\ker(A-\lambda\,\mathrm{id}), and a kernel is a subspace. □\square

Remark. If λ\lambda is not an eigenvalue, Eλ={0}E_\lambda=\{0\}. If λ\lambda is an eigenvalue, EλE_\lambda consists of all eigenvectors for λ\lambda together with the zero vector (which by definition is not an eigenvector).

Example. Take A=(0120)A=\begin{pmatrix}0&1\\2&0\end{pmatrix}. Then χA(t)=det⁡(−t12−t)=t2−2\chi_A(t)=\det\begin{pmatrix}-t&1\\2&-t\end{pmatrix}=t^2-2, with zeros λ1/2=±2\lambda_{1/2}=\pm\sqrt2.

Eigenspace for 2\sqrt2. Solve (A−2 id)(xy)=0(A-\sqrt2\,\mathrm{id})\begin{pmatrix}x\\y\end{pmatrix}=0. Row reduction of B=(−212−2)B=\begin{pmatrix}-\sqrt2&1\\2&-\sqrt2\end{pmatrix}:

(−212−2)⇝(1−222−2)⇝(1−2200).\begin{pmatrix}-\sqrt2&1\\2&-\sqrt2\end{pmatrix}\rightsquigarrow\begin{pmatrix}1&-\tfrac{\sqrt2}{2}\\2&-\sqrt2\end{pmatrix}\rightsquigarrow\begin{pmatrix}1&-\tfrac{\sqrt2}{2}\\0&0\end{pmatrix}.

So yy is free and x=22yx=\tfrac{\sqrt2}{2}y: E2E_{\sqrt2} has dimension 1 with basis vector (22,1)\bigl(\tfrac{\sqrt2}{2},1\bigr).

Eigenspace for −2-\sqrt2. Similarly B=A+2 id⇝(12200)B=A+\sqrt2\,\mathrm{id}\rightsquigarrow\begin{pmatrix}1&\tfrac{\sqrt2}{2}\\0&0\end{pmatrix}, so E−2E_{-\sqrt2} is again one-dimensional with basis vector (−22,1)\bigl(-\tfrac{\sqrt2}{2},1\bigr).

The map v↦Avv\mapsto Av stretches the vectors of E2E_{\sqrt2} by the factor 2\sqrt2, while those of E−2E_{-\sqrt2} are flipped and stretched by the factor 2\sqrt2.

        y
        |    / E_(sqrt2): line through (sqrt2/2, 1)
  \     |   /
   \    |  /
    \   | /
-----\--+/-------- x
      \ |
       \|
        E_(-sqrt2): line through (-sqrt2/2, 1)

5. Diagonalizing matrices

Definition. A square matrix AA is diagonalizable if there is an invertible matrix P∈Matn×nP\in\mathrm{Mat}_{n\times n} such that PAP−1=DPAP^{-1}=D is a diagonal matrix.

(Equivalently, with Q=P−1Q=P^{-1}: Q−1AQ=DQ^{-1}AQ=D. The columns of QQ turn out to be eigenvectors, see Lemma below; this is the matrix that Method 1 below calls the matrix of eigenvectors. Below, whenever the columns of a matrix are eigenvectors, we write that matrix QQ and the relation as Q−1AQ=DQ^{-1}AQ=D.)

Why it matters. In differential equations one needs the exponential of a square matrix,

exp⁡A=id+A+A22+A36+A424+…\exp A=\mathrm{id}+A+\frac{A^2}{2}+\frac{A^3}{6}+\frac{A^4}{24}+\dots

If AA is diagonalizable, PAP−1=DPAP^{-1}=D, then A=(P−1P)A(P−1P)=P−1(PAP−1)P=P−1DPA=(P^{-1}P)A(P^{-1}P)=P^{-1}(PAP^{-1})P=P^{-1}DP, and so

A2=P−1DP P−1DP=P−1D2P,A3=P−1D3P, …A^2=P^{-1}DP\,P^{-1}DP=P^{-1}D^2P,\qquad A^3=P^{-1}D^3P,\ \dots

Computing powers of DD is easy: just raise each diagonal entry to the power. So one never needs to compute the powers of AA one after another.

Method 1 (diagonalizing A∈Matn×nA\in\mathrm{Mat}_{n\times n}).

  1. Compute the eigenvalues λ1,…,λk\lambda_1,\dots,\lambda_k of AA, e.g. as the zeros of the characteristic polynomial, and the eigenspaces Eλ1,…,EλkE_{\lambda_1},\dots,E_{\lambda_k}.
  2. AA is diagonalizable precisely if ∑i=1kdim⁡Eλi=n,\sum_{i=1}^k\dim E_{\lambda_i}=n, i.e. if the dimensions of the eigenspaces add up to the size of the matrix.
  3. In that case take as matrix QQ the n×nn\times n matrix whose columns are the basis vectors of all the eigenspaces. The diagonal matrix DD has on the diagonal λ1\lambda_1 repeated dim⁡Eλ1\dim E_{\lambda_1} times, ..., λk\lambda_k repeated dim⁡Eλk\dim E_{\lambda_k} times (in the same order as the columns of QQ), and Q−1AQ=DQ^{-1}AQ=D.

Why k≤nk\le n. The sum of the subspaces Eλ1,…,EλkE_{\lambda_1},\dots,E_{\lambda_k} is a direct sum (eigenvectors of distinct eigenvalues are linearly independent), so

n=dim⁡Rn≥dim⁡(Eλ1+⋯+Eλk)=dim⁡(Eλ1⊕⋯⊕Eλk)=dim⁡Eλ1+⋯+dim⁡Eλk≥1+⋯+1⏟k=k.n=\dim\mathbb{R}^n\ge\dim(E_{\lambda_1}+\dots+E_{\lambda_k})=\dim(E_{\lambda_1}\oplus\dots\oplus E_{\lambda_k})=\dim E_{\lambda_1}+\dots+\dim E_{\lambda_k}\ge\underbrace{1+\dots+1}_{k}=k.

An n×nn\times n matrix therefore has at most nn distinct eigenvalues, and this gives:

Corollary. If an n×nn\times n matrix has nn distinct eigenvalues, then it is diagonalizable. (Then each eigenspace has dimension at least 11, and the sum of the nn dimensions is ≥n\ge n, hence =n=n.)

The converse is false: idn\mathrm{id}_n is diagonal but has the single eigenvalue 11.

A fact used in the exercises: 1≤dim⁡Eλ≤1\le\dim E_\lambda\le (algebraic multiplicity of λ\lambda) for every eigenvalue λ\lambda. So an eigenvalue of algebraic multiplicity 11 automatically has a one-dimensional eigenspace, and an eigenvalue of algebraic multiplicity mm can only fail to contribute mm to the sum if its eigenspace is smaller.

Definition (eigenbasis). A basis v1,…,vnv_1,\dots,v_n of Rn\mathbb{R}^n is an eigenbasis for AA if every viv_i is an eigenvector of AA (for some eigenvalue).

Lemma. For A∈Matn×nA\in\mathrm{Mat}_{n\times n} the following are equivalent: (1) AA is diagonalizable; (2) AA admits an eigenbasis of Rn\mathbb{R}^n.

Proof idea. If Q−1AQ=DQ^{-1}AQ=D is diagonal, then AQ=QDAQ=QD; the ii-th column of this equation says Aqi=diiqiAq_i=d_{ii}q_i, where qiq_i is the ii-th column of QQ. Since QQ is invertible, its columns form a basis, consisting of eigenvectors. Conversely, if q1,…,qnq_1,\dots,q_n is an eigenbasis with Aqi=μiqiAq_i=\mu_iq_i, put Q=(q1 … qn)Q=(q_1\ \dots\ q_n); then AQ=QDAQ=QD with D=diag⁡(μ1,…,μn)D=\operatorname{diag}(\mu_1,\dots,\mu_n), so Q−1AQ=DQ^{-1}AQ=D. In other words, the matrix relating the standard basis and an eigenbasis is a base-change matrix, and in the eigenbasis the linear map v↦Avv\mapsto Av has the diagonal matrix DD. □\square

5.1 Examples

Example (diagonalizable with distinct eigenvalues). A=(0120)A=\begin{pmatrix}0&1\\2&0\end{pmatrix} has two distinct eigenvalues ±2\pm\sqrt2, so it is diagonalizable. An eigenbasis is v1=(22,1)v_1=\bigl(\tfrac{\sqrt2}{2},1\bigr), v2=(−22,1)v_2=\bigl(-\tfrac{\sqrt2}{2},1\bigr), and with Q=(22−2211)Q=\begin{pmatrix}\tfrac{\sqrt2}{2}&-\tfrac{\sqrt2}{2}\\1&1\end{pmatrix} one gets Q−1AQ=(200−2)Q^{-1}AQ=\begin{pmatrix}\sqrt2&0\\0&-\sqrt2\end{pmatrix}.

Example (shear: not diagonalizable). A=(1101)A=\begin{pmatrix}1&1\\0&1\end{pmatrix} has χA(t)=(1−t)2\chi_A(t)=(1-t)^2, so λ=1\lambda=1 is the only eigenvalue. With B=A−id=(0100)B=A-\mathrm{id}=\begin{pmatrix}0&1\\0&0\end{pmatrix}, the system Bv=(y0)=0Bv=\begin{pmatrix}y\\0\end{pmatrix}=0 gives

E1={v∈R2∣Bv=0}={(x,0)∣x∈R},E_1=\{v\in\mathbb{R}^2\mid Bv=0\}=\{(x,0)\mid x\in\mathbb{R}\},

of dimension 11 with basis (1,0)(1,0). Since 1<21<2, AA is not diagonalizable: here the eigenvalue has algebraic multiplicity 22 but its eigenspace has dimension only 11.

Example (rotation by 90 degrees, over C\mathbb{C}). A=(0−110)A=\begin{pmatrix}0&-1\\1&0\end{pmatrix} has the complex eigenvalues λ1=i\lambda_1=i, λ2=−i\lambda_2=-i, two distinct ones, so it is diagonalizable over C\mathbb{C}. Regard AA as a complex matrix.

For λ=i\lambda=i and v=(z1z2)∈C2v=\begin{pmatrix}z_1\\z_2\end{pmatrix}\in\mathbb{C}^2:

(A−i id)v=(−i−11−i)(z1z2)=(−iz1−z2z1−iz2)=!(00).(A-i\,\mathrm{id})v=\begin{pmatrix}-i&-1\\1&-i\end{pmatrix}\begin{pmatrix}z_1\\z_2\end{pmatrix}=\begin{pmatrix}-iz_1-z_2\\z_1-iz_2\end{pmatrix}\overset{!}{=}\begin{pmatrix}0\\0\end{pmatrix}.

The second equation gives z1=iz2z_1=iz_2; the first is then also satisfied, since −iz1−z2=−i(iz2)−z2=z2−z2=0-iz_1-z_2=-i(iz_2)-z_2=z_2-z_2=0. Hence Ei={(iz,z)∣z∈C}E_i=\{(iz,z)\mid z\in\mathbb{C}\}, a one-dimensional complex vector space with basis (i,1)(i,1). Similarly A+i id=(i−11i)A+i\,\mathrm{id}=\begin{pmatrix}i&-1\\1&i\end{pmatrix} gives z1=−iz2z_1=-iz_2, E−i={(−iz,z)∣z∈C}E_{-i}=\{(-iz,z)\mid z\in\mathbb{C}\} with basis (−i,1)(-i,1). The matrix of eigenvectors is Q=(i−i11)Q=\begin{pmatrix}i&-i\\1&1\end{pmatrix} and Q−1AQ=(i00−i)Q^{-1}AQ=\begin{pmatrix}i&0\\0&-i\end{pmatrix}.

Example (a diagonal matrix). For A=(1000)A=\begin{pmatrix}1&0\\0&0\end{pmatrix}, λ=0\lambda=0 is an eigenvalue with eigenvector (01)\begin{pmatrix}0\\1\end{pmatrix} and λ=1\lambda=1 is an eigenvalue with eigenvector (10)\begin{pmatrix}1\\0\end{pmatrix}.

Example (nilpotent matrix). A=(010001000)A=\begin{pmatrix}0&1&0\\0&0&1\\0&0&0\end{pmatrix} is upper triangular, so the only eigenvalue is 00, with χA(t)=(−t)3\chi_A(t)=(-t)^3. Since A(x,y,z)T=(y,z,0)TA(x,y,z)^T=(y,z,0)^T, we get E0=ker⁡A={(x,0,0)}E_0=\ker A=\{(x,0,0)\}, of dimension 1<31<3: not diagonalizable.

6. Similar matrices

Definition. Two square matrices A,B∈Matn×nA,B\in\mathrm{Mat}_{n\times n} are similar if there is an invertible PP with PAP−1=BPAP^{-1}=B.

Asking whether AA is diagonalizable is the special case "is AA similar to a diagonal matrix?" of the question "are AA and BB similar?". Two matrices are similar exactly when they represent the same linear map Rn→Rn\mathbb{R}^n\to\mathbb{R}^n with respect to different bases.

Proposition. If AA and BB are similar, then:

  1. det⁡A=det⁡B\det A=\det B;
  2. tr⁡A=tr⁡B\operatorname{tr}A=\operatorname{tr}B;
  3. χA(t)=χB(t)\chi_A(t)=\chi_B(t);
  4. AA and BB have the same eigenvalues, and if B=PAP−1B=PAP^{-1} then Eλ(B)=P(Eλ(A))E_\lambda(B)=P\bigl(E_\lambda(A)\bigr) for every λ\lambda.

Proof. Let B=PAP−1B=PAP^{-1} with PP invertible.

  • Determinant (multiplicativity of det⁡\det): det⁡B=det⁡(PAP−1)=det⁡P det⁡A det⁡(P−1)=det⁡A\det B=\det(PAP^{-1})=\det P\,\det A\,\det(P^{-1})=\det A.
  • Trace: using tr⁡(XY)=tr⁡(YX)\operatorname{tr}(XY)=\operatorname{tr}(YX) for square matrices, tr⁡(B)=tr⁡(P(AP−1))=tr⁡((AP−1)P)=tr⁡(A)\operatorname{tr}(B)=\operatorname{tr}\bigl(P(AP^{-1})\bigr)=\operatorname{tr}\bigl((AP^{-1})P\bigr)=\operatorname{tr}(A).
  • Characteristic polynomial: χB(t)=det⁡(PAP−1−t id)=det⁡(P(A−t id)P−1)=det⁡P det⁡(A−t id)det⁡(P−1)=χA(t)\chi_B(t)=\det(PAP^{-1}-t\,\mathrm{id})=\det\bigl(P(A-t\,\mathrm{id})P^{-1}\bigr)=\det P\,\det(A-t\,\mathrm{id})\det(P^{-1})=\chi_A(t). Hence the eigenvalues, being the zeros of χ\chi, coincide.
  • Eigenspaces: let λ∈R\lambda\in\mathbb{R}. If v∈Eλ(A)v\in E_\lambda(A), then Av=λvAv=\lambda v, so B(Pv)=PAP−1Pv=PAv=λPvB(Pv)=PAP^{-1}Pv=PAv=\lambda Pv, hence Pv∈Eλ(B)Pv\in E_\lambda(B); thus P(Eλ(A))⊆Eλ(B)P(E_\lambda(A))\subseteq E_\lambda(B). Conversely, if w∈Eλ(B)w\in E_\lambda(B) then Bw=λwBw=\lambda w and multiplying by P−1P^{-1} gives A(P−1w)=λ(P−1w)A(P^{-1}w)=\lambda(P^{-1}w), so P−1w∈Eλ(A)P^{-1}w\in E_\lambda(A), i.e. w∈P(Eλ(A))w\in P(E_\lambda(A)). □\square

In particular, similar matrices have eigenspaces of the same dimensions, and a matrix similar to a diagonalizable matrix is diagonalizable.

Remark (the converse fails). Equality of det⁡\det, trace, χ\chi and eigenvalues does not imply similarity. The 4×44\times4 matrices

A=(0100001000000000),B=(0100000000010000)A=\begin{pmatrix}0&1&0&0\\0&0&1&0\\0&0&0&0\\0&0&0&0\end{pmatrix},\qquad B=\begin{pmatrix}0&1&0&0\\0&0&0&0\\0&0&0&1\\0&0&0&0\end{pmatrix}

both have 00 as their only eigenvalue, and E0(A)E_0(A), E0(B)E_0(B) are both 22-dimensional. But A2≠0A^2\ne0 (it has the entry 11 in position (1,3)(1,3)) while B2=0B^2=0. If B=PAP−1B=PAP^{-1} then B2=PAP−1PAP−1=PA2P−1B^2=PAP^{-1}PAP^{-1}=PA^2P^{-1}, so B2=0B^2=0 would force A2=0A^2=0: a contradiction. A sufficient condition for similarity is given by the Jordan normal form, not discussed here.

7. Worked examples

Example 1 (two distinct eigenvalues). A=(351−1)A=\begin{pmatrix}3&5\\1&-1\end{pmatrix}.

χA(t)=(3−t)(−1−t)−5=t2−2t−8=(t−4)(t+2).\chi_A(t)=(3-t)(-1-t)-5=t^2-2t-8=(t-4)(t+2).

Eigenvalues 44 and −2-2; being distinct, AA is diagonalizable. For λ=4\lambda=4: A−4 id=(−151−5)⇝x=5yA-4\,\mathrm{id}=\begin{pmatrix}-1&5\\1&-5\end{pmatrix}\rightsquigarrow x=5y, so E4=L((5,1))E_4=L\bigl((5,1)\bigr). For λ=−2\lambda=-2: A+2 id=(5511)⇝x=−yA+2\,\mathrm{id}=\begin{pmatrix}5&5\\1&1\end{pmatrix}\rightsquigarrow x=-y, so E−2=L((1,−1))E_{-2}=L\bigl((1,-1)\bigr). An eigenbasis is (5,1),(1,−1)(5,1),(1,-1); check: A(5,1)T=(20,4)T=4(5,1)TA(5,1)^T=(20,4)^T=4(5,1)^T and A(1,−1)T=(−2,2)T=−2(1,−1)TA(1,-1)^T=(-2,2)^T=-2(1,-1)^T.

Example 2 (a map specified by eigenvectors). Let f:R3→R3f:\mathbb{R}^3\to\mathbb{R}^3 be linear with f(1,0,1)=(2,0,2)f(1,0,1)=(2,0,2), ker⁡f=L((1,1,1))\ker f=L\bigl((1,1,1)\bigr) and f(2,0,3)=(2,0,3)f(2,0,3)=(2,0,3). Compute its matrix in the standard basis.

From ker⁡f=L((1,1,1))\ker f=L((1,1,1)) we get f(1,1,1)=0=0⋅(1,1,1)f(1,1,1)=0=0\cdot(1,1,1). Hence we have three eigenvectors:

v1=(1,0,1)↦2v1,v2=(2,0,3)↦1⋅v2,v3=(1,1,1)↦0⋅v3.v_1=(1,0,1)\mapsto 2v_1,\qquad v_2=(2,0,3)\mapsto 1\cdot v_2,\qquad v_3=(1,1,1)\mapsto 0\cdot v_3 .

They form a basis of R3\mathbb{R}^3 (the matrix with these columns has determinant −1≠0-1\ne0), i.e. an eigenbasis. The matrix of ff in the basis v1,v2,v3v_1,v_2,v_3 is D=diag⁡(2,1,0)D=\operatorname{diag}(2,1,0). To get the matrix in the standard basis, let K′K' be the matrix whose columns are v1,v2,v3v_1,v_2,v_3 (it expresses the viv_i in standard coordinates):

K′=(121001131),(K′)−1=(3−1−2−101010),K'=\begin{pmatrix}1&2&1\\0&0&1\\1&3&1\end{pmatrix},\qquad (K')^{-1}=\begin{pmatrix}3&-1&-2\\-1&0&1\\0&1&0\end{pmatrix},

[f]std=K′D(K′)−1=(4−2−20003−2−1).[f]_{\text{std}}=K'D(K')^{-1}=\begin{pmatrix}4&-2&-2\\0&0&0\\3&-2&-1\end{pmatrix}.

Check: this matrix sends (1,0,1)↦(2,0,2)(1,0,1)\mapsto(2,0,2), (2,0,3)↦(2,0,3)(2,0,3)\mapsto(2,0,3), (1,1,1)↦(0,0,0)(1,1,1)\mapsto(0,0,0). This is a typical situation: one basis (here an eigenbasis) is better adapted to the map than another and gives a particularly simple matrix.

Example 3 (parameter in the matrix). For which a∈Ra\in\mathbb{R} is Aa=(a00a−211011)A_a=\begin{pmatrix}a&0&0\\a-2&1&1\\0&1&1\end{pmatrix} diagonalizable? Expanding along the first row, χAa(t)=(a−t)det⁡(1−t111−t)=(a−t)((1−t)2−1)=(a−t) t (t−2),\chi_{A_a}(t)=(a-t)\det\begin{pmatrix}1-t&1\\1&1-t\end{pmatrix}=(a-t)\bigl((1-t)^2-1\bigr)=(a-t)\,t\,(t-2), so the eigenvalues are aa, 00, 22.

  • If a≠0,2a\ne0,2: three distinct eigenvalues, so AaA_a is diagonalizable.
  • If a=0a=0: A0=(000−211011)A_0=\begin{pmatrix}0&0&0\\-2&1&1\\0&1&1\end{pmatrix} and 00 has algebraic multiplicity 22. Solving A0v=0A_0v=0: −2x+y+z=0-2x+y+z=0 and y+z=0y+z=0, so x=0x=0, y=−zy=-z and E0=L((0,1,−1))E_0=L\bigl((0,1,-1)\bigr) has dimension 1<21<2. Not diagonalizable.
  • If a=2a=2: A2=(200011011)A_2=\begin{pmatrix}2&0&0\\0&1&1\\0&1&1\end{pmatrix} and 22 has multiplicity 22. A2−2 id=(0000−1101−1)A_2-2\,\mathrm{id}=\begin{pmatrix}0&0&0\\0&-1&1\\0&1&-1\end{pmatrix} gives y=zy=z, xx free: E2=L((1,0,0),(0,1,1))E_2=L\bigl((1,0,0),(0,1,1)\bigr), dimension 22. Also E0=L((0,1,−1))E_0=L\bigl((0,1,-1)\bigr), dimension 11. The sum is 33, so A2A_2 is diagonalizable.

Conclusion: AaA_a is diagonalizable precisely if a≠0a\ne0.

Example 4 (a parameter that does not change the eigenvalues). Aa=(40−4a2a20−2)A_a=\begin{pmatrix}4&0&-4\\a&2&a\\2&0&-2\end{pmatrix}. Developing det⁡(Aa−t id)\det(A_a-t\,\mathrm{id}) along the second column (which has two zeros):

(2−t)det⁡(4−t−42−2−t)=(2−t)((4−t)(−2−t)+8)=(2−t)(t2−2t)=−t(t−2)2.(2-t)\det\begin{pmatrix}4-t&-4\\2&-2-t\end{pmatrix}=(2-t)\bigl((4-t)(-2-t)+8\bigr)=(2-t)(t^2-2t)=-t(t-2)^2 .

The eigenvalues are 22 (algebraic multiplicity 22) and 00 (multiplicity 11), for every aa. Hence dim⁡E0=1\dim E_0=1 and 1≤dim⁡E2≤21\le\dim E_2\le2, and AaA_a is diagonalizable precisely if dim⁡E2=2\dim E_2=2, i.e. if Aa−2 idA_a-2\,\mathrm{id} has rank 11. Row reduction:

Aa−2 id=(20−4a0a20−4)⇝(10−2003a000),A_a-2\,\mathrm{id}=\begin{pmatrix}2&0&-4\\a&0&a\\2&0&-4\end{pmatrix}\rightsquigarrow\begin{pmatrix}1&0&-2\\0&0&3a\\0&0&0\end{pmatrix},

which has rank 11 if and only if a=0a=0. So AaA_a is diagonalizable precisely for a=0a=0. For a=0a=0: A=(40−402020−2)A=\begin{pmatrix}4&0&-4\\0&2&0\\2&0&-2\end{pmatrix}, E2=L((2,0,1),(0,1,0))E_2=L\bigl((2,0,1),(0,1,0)\bigr), E0=L((1,0,1))E_0=L\bigl((1,0,1)\bigr), and with

Q=(201010101)Q−1AQ=(200020000).Q=\begin{pmatrix}2&0&1\\0&1&0\\1&0&1\end{pmatrix}\qquad Q^{-1}AQ=\begin{pmatrix}2&0&0\\0&2&0\\0&0&0\end{pmatrix}.

Example 5 (when 00 is an eigenvalue). For At=(12t202t21)A_t=\begin{pmatrix}1&2&t\\2&0&2\\t&2&1\end{pmatrix}, 00 is an eigenvalue exactly when det⁡At=0\det A_t=0 (since χ(0)=det⁡A\chi(0)=\det A). Expanding along the first row,

det⁡At=1⋅(0−4)−2 (2−2t)+t (4−0)=−4−4+4t+4t=8(t−1),\det A_t=1\cdot(0-4)-2\,(2-2t)+t\,(4-0)=-4-4+4t+4t=8(t-1),

so 00 is an eigenvalue if and only if t=1t=1. For t=1t=1, χA1(λ)=λ(λ−4)(λ+2)\chi_{A_1}(\lambda)=\lambda(\lambda-4)(\lambda+2), three distinct eigenvalues 0,4,−20,4,-2, with eigenspaces E0=L((1,0,−1))E_0=L\bigl((1,0,-1)\bigr), E4=L((1,1,1))E_4=L\bigl((1,1,1)\bigr), E−2=L((1,−2,1))E_{-2}=L\bigl((1,-2,1)\bigr). (The three eigenvectors turn out to be orthogonal: this is no accident, see Orthogonal and Symmetric MatricesOrthogonal matrices have orthonormal rows and columns, symmetric matrices are exactly those with an orthonormal eigenbasis, and affine subspaces (lines, planes, hyperplanes) are studied with orthogonal projections to compute distances.Orthogonal and Symmetric Matrices →.)

Example 6 (non-similar to A2A^2). If AA has an eigenvalue λ\lambda then A2A^2 has the eigenvalue λ2\lambda^2 (A2v=A(λv)=λ2vA^2v=A(\lambda v)=\lambda^2v). Since similar matrices have the same eigenvalues, if AA has eigenvalues 1,21,2 then A2A^2 has the eigenvalue 44, which is not an eigenvalue of AA; hence AA is not similar to A2A^2. Likewise similar matrices have equal determinants: if det⁡A=−2\det A=-2 then det⁡A2=4≠det⁡A\det A^2=4\neq\det A, so AA is not similar to A2A^2.

Versione ripasso

Definitions.

  • Eigenvalue λ\lambda of a square AA: there is v≠0v\ne0 with Av=λvAv=\lambda v; vv is an eigenvector. Equivalent: A−λ idA-\lambda\,\mathrm{id} not invertible, det⁡(A−λ id)=0\det(A-\lambda\,\mathrm{id})=0.
  • Characteristic polynomial χA(t)=det⁡(A−t idn)\chi_A(t)=\det(A-t\,\mathrm{id}_n), degree nn. Eigenvalues are its real zeros. For 2×22\times2: χA(t)=t2−tr⁡(A) t+det⁡A\chi_A(t)=t^2-\operatorname{tr}(A)\,t+\det A. For triangular matrices the eigenvalues are the diagonal entries.
  • Eigenspace Eλ=ker⁡(A−λ id)E_\lambda=\ker(A-\lambda\,\mathrm{id}), a subspace; Eλ={0}E_\lambda=\{0\} if λ\lambda is not an eigenvalue.
  • Over C\mathbb{C} every square matrix has at least one eigenvalue (fundamental theorem of algebraevery non-constant complex polynomial has a complex zero). A rotation of R2\mathbb{R}^2 by an angle that is not a multiple of π\pi has no real eigenvalue (χ=t2−2tcos⁡θ+1\chi=t^2-2t\cos\theta+1); the 90∘90^\circ rotation has ±i\pm i.

Diagonalization.

  • AA diagonalizable   ⟺  \iff there is an invertible PP with PAP−1=DPAP^{-1}=D diagonal   ⟺  \iff Rn\mathbb{R}^n has an eigenbasis for AA.
  • Method: find the eigenvalues λ1,…,λk\lambda_1,\dots,\lambda_k; AA is diagonalizable   ⟺  ∑idim⁡Eλi=n\iff\sum_i\dim E_{\lambda_i}=n. Put a basis of each eigenspace as columns of QQ; then Q−1AQ=DQ^{-1}AQ=D, with λi\lambda_i repeated dim⁡Eλi\dim E_{\lambda_i} times.
  • nn distinct eigenvalues ⇒\Rightarrow diagonalizable (the converse is false, e.g. id\mathrm{id}).
  • 1≤dim⁡Eλ≤1\le\dim E_\lambda\le algebraic multiplicity of λ\lambda. Obstruction to diagonalizability: an eigenvalue whose eigenspace is smaller than its algebraic multiplicity (shear (1101)\begin{pmatrix}1&1\\0&1\end{pmatrix}: E1E_1 has dimension 1<21<2).
  • Payoff: A=P−1DP⇒Ak=P−1DkPA=P^{-1}DP\Rightarrow A^k=P^{-1}D^kP and exp⁡A=P−1(exp⁡D)P\exp A=P^{-1}(\exp D)P.

Similar matrices (B=PAP−1B=PAP^{-1}). Same det⁡\det, trace, χ\chi, eigenvalues; Eλ(B)=P(Eλ(A))E_\lambda(B)=P(E_\lambda(A)), so same eigenspace dimensions. Proof: multiplicativity of det⁡\det, tr⁡(XY)=tr⁡(YX)\operatorname{tr}(XY)=\operatorname{tr}(YX), χB=det⁡(P(A−t id)P−1)\chi_B=\det(P(A-t\,\mathrm{id})P^{-1}). The converse fails (two 4×44\times4 nilpotent matrices with A2≠0A^2\ne0, B2=0B^2=0). To show two matrices are not similar: compare det⁡\det, χ\chi, eigenspace dimensions, powers.

Typical mistakes.

  • Allowing v=0v=0 as an eigenvector, or forgetting the zero vector belongs to EλE_\lambda.
  • Concluding "diagonalizable" from equal χ\chi (needs the eigenspace dimensions), or "not diagonalizable" just because an eigenvalue is repeated.
  • Wrong sign in A−t idA-t\,\mathrm{id} when computing χA\chi_A.
  • Using real eigenvalues for a matrix like a rotation (they may only exist over C\mathbb{C}).
  • Mixing PAP−1=DPAP^{-1}=D with eigenvectors as columns of PP: the eigenvector matrix is Q=P−1Q=P^{-1}, and Q−1AQ=DQ^{-1}AQ=D.

Teoria collegata