1. Home
  2. Explore
  3. Mathematics
  4. Eigenvalue Diagonalization

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Eigenvalue Diagonalization

Eigenvalue Decomposition, Diagonalization, and Matrix Powers

1. The eigenvalue equation in matrix form

For a square matrix A∈Rn×nA \in \mathbb{R}^{n \times n}A∈Rn×n, an eigenvector si∈Rns_i \in \mathbb{R}^nsi​∈Rn and its eigenvalue λi∈R\lambda_i \in \mathbb{R}λi​∈R satisfy

Asi=λisi.As_i = \lambda_i s_i.Asi​=λi​si​.

Applying AAA to an eigenvector therefore changes its scale but not its direction.

Suppose AAA has kkk eigenvectors being considered. Place them as the columns of a matrix:

S=[∣∣∣s1s2⋯sk∣∣∣].S = \begin{bmatrix} | & | & & | \\ s_1 & s_2 & \cdots & s_k \\ | & | & & | \end{bmatrix}.S=​∣s1​∣​∣s2​∣​⋯​∣sk​∣​​.

Place the corresponding eigenvalues on the diagonal of a matrix Λ\LambdaΛ:

Λ=[λ10⋯00λ2⋯0⋮⋮⋱⋮00⋯λk].\Lambda = \begin{bmatrix} \lambda_1 & 0 & \cdots & 0 \\ 0 & \lambda_2 & \cdots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \cdots & \lambda_k \end{bmatrix}.Λ=​λ1​0⋮0​0λ2​⋮0​⋯⋯⋱⋯​00⋮λk​​​.

The ordering must match: the eigenvalue λi\lambda_iλi​ on the diagonal of Λ\LambdaΛ must correspond to the eigenvector sis_isi​ in column iii of SSS.

Multiplying AAA by SSS applies AAA to each column of SSS:

AS=[As1As2⋯Ask]=[λ1s1λ2s2⋯λksk].AS = \begin{bmatrix} As_1 & As_2 & \cdots & As_k \end{bmatrix} = \begin{bmatrix} \lambda_1s_1 & \lambda_2s_2 & \cdots & \lambda_ks_k \end{bmatrix}.AS=[As1​​As2​​⋯​Ask​​]=[λ1​s1​​λ2​s2​​⋯​λk​sk​​].

Multiplying SSS by Λ\LambdaΛ scales each column sis_isi​ by its corresponding eigenvalue. Thus,

AS=SΛ.AS = S\Lambda.AS=SΛ.

The matrix equation AS=SΛAS=S\LambdaAS=SΛ is the eigenvalue equation written for several eigenvectors at once. It holds whether or not there are enough eigenvectors to form a basis.


2. Diagonalization

If an n×nn \times nn×n matrix AAA has nnn linearly independent eigenvectors, those eigenvectors form a basis for Rn\mathbb{R}^nRn. In that case, the eigenvector matrix SSS is square and invertible.

Starting from

AS=SΛ,AS=S\Lambda,AS=SΛ,

multiply on the right by S−1S^{-1}S−1:

A=SΛS−1.A=S\Lambda S^{-1}.A=SΛS−1.

This factorization is called the eigendecomposition or diagonalization of AAA.

  • SSS contains the eigenvectors as columns.

  • Λ\LambdaΛ is diagonal and contains the corresponding eigenvalues.

  • S−1S^{-1}S−1 converts from eigenvector coordinates back to the original coordinates.

The diagonal matrix Λ\LambdaΛ makes many operations on AAA easier. However, not every matrix can be diagonalized: the matrix must have enough linearly independent eigenvectors. The discussion here focuses on real eigenvalues and eigenvectors; more generally, some real matrices require complex eigenvalues and eigenvectors.


3. Computing powers of a diagonalizable matrix

Using A=SΛS−1A=S\Lambda S^{-1}A=SΛS−1, the square of AAA is

A2=(SΛS−1)(SΛS−1).A^2=(S\Lambda S^{-1})(S\Lambda S^{-1}).A2=(SΛS−1)(SΛS−1).

Because S−1S=IS^{-1}S=IS−1S=I, the middle factors cancel:

A2=SΛ2S−1.A^2=S\Lambda^2S^{-1}.A2=SΛ2S−1.

The same cancellation occurs for higher powers, giving

Ak=SΛkS−1.A^k=S\Lambda^kS^{-1}.Ak=SΛkS−1.

Since Λ\LambdaΛ is diagonal, its power is especially easy to compute:

Λk=[λ1k0⋯00λ2k⋯0⋮⋮⋱⋮00⋯λnk].\Lambda^k = \begin{bmatrix} \lambda_1^k & 0 & \cdots & 0 \\ 0 & \lambda_2^k & \cdots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \cdots & \lambda_n^k \end{bmatrix}.Λk=​λ1k​0⋮0​0λ2k​⋮0​⋯⋯⋱⋯​00⋮λnk​​​.

Thus, raising AAA to a large power can be reduced to raising each eigenvalue to that power, followed by matrix multiplications.

Computational benefit

If a general matrix multiplication costs roughly npn^pnp operations, where ppp is the matrix-multiplication exponent, computing AkA^kAk by repeated multiplication costs roughly knpk n^pknp operations. Once a diagonalization is available, computing Λk\Lambda^kΛk takes about nnn scalar exponentiations, and forming SΛkS−1S\Lambda^kS^{-1}SΛkS−1 requires two matrix multiplications. The cost is therefore roughly

n+2np,n + 2n^p,n+2np,

in addition to the cost of finding the decomposition.

For large kkk, reusing the same decomposition can make the calculation substantially more efficient. The advantage is less compelling when only one small power is needed, because computing the eigendecomposition also has a cost.


4. Inverses and negative powers

The inverse of a product reverses the order of the factors. If A=SΛS−1A=S\Lambda S^{-1}A=SΛS−1, then

A−1=(SΛS−1)−1=SΛ−1S−1.A^{-1} = (S\Lambda S^{-1})^{-1} = S\Lambda^{-1}S^{-1}.A−1=(SΛS−1)−1=SΛ−1S−1.

The inverse of a diagonal matrix is obtained by taking the reciprocal of each diagonal entry:

Λ−1=[1λ10⋯001λ2⋯0⋮⋮⋱⋮00⋯1λn].\Lambda^{-1} = \begin{bmatrix} \frac{1}{\lambda_1} & 0 & \cdots & 0 \\ 0 & \frac{1}{\lambda_2} & \cdots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \cdots & \frac{1}{\lambda_n} \end{bmatrix}.Λ−1=​λ1​1​0⋮0​0λ2​1​⋮0​⋯⋯⋱⋯​00⋮λn​1​​​.

This requires every eigenvalue to be nonzero. More generally, for an invertible diagonalizable matrix,

A−k=SΛ−kS−1,A^{-k}=S\Lambda^{-k}S^{-1},A−k=SΛ−kS−1,

where the diagonal entries of Λ−k\Lambda^{-k}Λ−k are λi−k\lambda_i^{-k}λi−k​.


5. Matrix powers in evolving systems

Many mathematical models describe a system using a state vector. Its components represent measurements or quantities that describe the system at a particular step. A matrix specifies how the state changes from one step to the next.

A first-order difference equation has the form

xk+1=Axk,x_{k+1}=Ax_k,xk+1​=Axk​,

where xkx_kxk​ is the state at step kkk. Repeated substitution gives

x1=Ax0,x2=A2x0,xk=Akx0.x_1=Ax_0,\qquad x_2=A^2x_0,\qquad x_k=A^kx_0.x1​=Ax0​,x2​=A2x0​,xk​=Akx0​.

Diagonalization makes the long-term behavior of such a system easier to analyze. The powers of the eigenvalues indicate whether different components of the state grow, shrink, or remain constant.

This type of state-transition model is also related to a Markov chain. In a Markov model, the next state depends on the current state, and transition probabilities are encoded in a matrix. The exact placement of probabilities in the matrix depends on whether states are represented as column or row vectors.

A second-order difference equation depends on both of the two preceding states. It can often be rewritten as a first-order matrix equation by putting the current and preceding values together into a larger state vector.


6. Matrix exponentials

The scalar exponential has the Taylor series

ex=1+x+x22!+x33!+⋯ .e^x = 1+x+\frac{x^2}{2!}+\frac{x^3}{3!}+\cdots.ex=1+x+2!x2​+3!x3​+⋯.

A matrix exponential is defined by the corresponding series:

eA=I+A+A22!+A33!+⋯ .e^A = I+A+\frac{A^2}{2!}+\frac{A^3}{3!}+\cdots.eA=I+A+2!A2​+3!A3​+⋯.

If AAA is diagonalizable, then its powers can be computed through Λ\LambdaΛ, so the series can be evaluated through the eigenvalues. In particular,

eA=SeΛS−1,e^A = S e^\Lambda S^{-1},eA=SeΛS−1,

where eΛe^\LambdaeΛ is diagonal with entries eλie^{\lambda_i}eλi​.

Matrix exponentials are important in solving systems of differential equations, just as matrix powers are useful for discrete-time systems.


7. State vectors expressed in an eigenbasis

If AAA has nnn linearly independent eigenvectors, those eigenvectors form a basis. Any initial state x0∈Rnx_0 \in \mathbb{R}^nx0​∈Rn can be expressed as a linear combination of them:

x0=c1s1+c2s2+⋯+cnsn.x_0=c_1s_1+c_2s_2+\cdots+c_ns_n.x0​=c1​s1​+c2​s2​+⋯+cn​sn​.

In matrix form,

x0=Sc,x_0=Sc,x0​=Sc,

where ccc is the vector of coordinates of x0x_0x0​ in the eigenvector basis.

Applying AAA to x0x_0x0​ gives

x1=Ax0=∑i=1nciAsi=∑i=1nciλisi.x_1=Ax_0 =\sum_{i=1}^{n}c_iAs_i =\sum_{i=1}^{n}c_i\lambda_i s_i.x1​=Ax0​=∑i=1n​ci​Asi​=∑i=1n​ci​λi​si​.

After kkk steps,

xk=Akx0=∑i=1nciλiksi=SΛkc.x_k=A^kx_0 =\sum_{i=1}^{n}c_i\lambda_i^k s_i =S\Lambda^k c.xk​=Akx0​=∑i=1n​ci​λik​si​=SΛkc.

Each eigenvector component evolves independently by a factor of λik\lambda_i^kλik​. This provides a direct way to understand the behavior of a system:

  • If ∣λi∣>1|\lambda_i|>1∣λi​∣>1, the corresponding component grows in magnitude.

  • If ∣λi∣<1|\lambda_i|<1∣λi​∣<1, it decays toward zero.

  • If ∣λi∣=1|\lambda_i|=1∣λi​∣=1, it does not decay in magnitude, though its sign or direction may change.

When one eigenvalue has magnitude strictly larger than all the others, its component often dominates the system’s long-term behavior.


8. Fibonacci numbers as a matrix system

The Fibonacci sequence begins with

F0=0,F1=1,F_0=0,\qquad F_1=1,F0​=0,F1​=1,

and each later term is the sum of the two preceding terms:

Fk+2=Fk+1+Fk.F_{k+2}=F_{k+1}+F_k.Fk+2​=Fk+1​+Fk​.

This is a second-order difference equation. To express it as a first-order matrix equation, define the state vector

xk=[Fk+1Fk].x_k= \begin{bmatrix} F_{k+1}\\ F_k \end{bmatrix}.xk​=[Fk+1​Fk​​].

Then

xk+1=[Fk+2Fk+1]=[1110][Fk+1Fk].x_{k+1} = \begin{bmatrix} F_{k+2}\\ F_{k+1} \end{bmatrix} = \begin{bmatrix} 1&1\\ 1&0 \end{bmatrix} \begin{bmatrix} F_{k+1}\\ F_k \end{bmatrix}.xk+1​=[Fk+2​Fk+1​​]=[11​10​][Fk+1​Fk​​].

Thus the Fibonacci recurrence is represented by

xk+1=Axk,A=[1110].x_{k+1}=Ax_k, \qquad A= \begin{bmatrix} 1&1\\ 1&0 \end{bmatrix}.xk+1​=Axk​,A=[11​10​].

The initial state is

x0=[F1F0]=[10],x_0= \begin{bmatrix} F_1\\ F_0 \end{bmatrix} = \begin{bmatrix} 1\\ 0 \end{bmatrix},x0​=[F1​F0​​]=[10​],

so xk=Akx0x_k=A^kx_0xk​=Akx0​.

Eigenvalues of the Fibonacci transition matrix

The characteristic equation is

det⁡(A−λI)=0.\det(A-\lambda I)=0.det(A−λI)=0.

For this matrix, it becomes

λ2−λ−1=0,\lambda^2-\lambda-1=0,λ2−λ−1=0,

with roots

λ1=1+52,λ2=1−52.\lambda_1=\frac{1+\sqrt{5}}{2}, \qquad \lambda_2=\frac{1-\sqrt{5}}{2}.λ1​=21+5​​,λ2​=21−5​​.

The first eigenvalue is the golden ratio, often denoted by ϕ\phiϕ:

ϕ=1+52≈1.618.\phi=\frac{1+\sqrt{5}}{2}\approx 1.618.ϕ=21+5​​≈1.618.

The other eigenvalue is approximately −0.618-0.618−0.618. Since ∣λ1∣>1|\lambda_1|>1∣λ1​∣>1 and ∣λ2∣<1|\lambda_2|<1∣λ2​∣<1, the component associated with λ1\lambda_1λ1​ grows, while the component associated with λ2\lambda_2λ2​ shrinks in magnitude.

An eigenvector corresponding to an eigenvalue λ\lambdaλ is

s=[λ1].s= \begin{bmatrix} \lambda\\ 1 \end{bmatrix}.s=[λ1​].

Therefore, eigenvectors for the two eigenvalues are

s1=[λ11],s2=[λ21].s_1= \begin{bmatrix} \lambda_1\\ 1 \end{bmatrix}, \qquad s_2= \begin{bmatrix} \lambda_2\\ 1 \end{bmatrix}.s1​=[λ1​1​],s2​=[λ2​1​].

Closed-form Fibonacci formula

Write the initial state as a combination of the eigenvectors:

x0=c1s1+c2s2.x_0=c_1s_1+c_2s_2.x0​=c1​s1​+c2​s2​.

Using x0=[1,0]Tx_0=[1,0]^Tx0​=[1,0]T gives

c1λ1+c2λ2=1,c1+c2=0.c_1\lambda_1+c_2\lambda_2=1, \qquad c_1+c_2=0.c1​λ1​+c2​λ2​=1,c1​+c2​=0.

Solving yields

c1=15,c2=−15.c_1=\frac{1}{\sqrt{5}}, \qquad c_2=-\frac{1}{\sqrt{5}}.c1​=5​1​,c2​=−5​1​.

Consequently,

xk=15λ1ks1−15λ2ks2.x_k = \frac{1}{\sqrt{5}}\lambda_1^k s_1 - \frac{1}{\sqrt{5}}\lambda_2^k s_2.xk​=5​1​λ1k​s1​−5​1​λ2k​s2​.

The second component of xkx_kxk​ is FkF_kFk​, so

Fk=λ1k−λ2k5=15[(1+52)k−(1−52)k].F_k= \frac{\lambda_1^k-\lambda_2^k}{\sqrt{5}} = \frac{1}{\sqrt{5}} \left[ \left(\frac{1+\sqrt{5}}{2}\right)^k - \left(\frac{1-\sqrt{5}}{2}\right)^k \right].Fk​=5​λ1k​−λ2k​​=5​1​[(21+5​​)k−(21−5​​)k].

This is an exact closed-form expression for the Fibonacci numbers. Because ∣λ2∣<1|\lambda_2|<1∣λ2​∣<1, the term λ2k\lambda_2^kλ2k​ becomes very small for large kkk. Therefore,

Fk≈ϕk5F_k\approx \frac{\phi^k}{\sqrt{5}}Fk​≈5​ϕk​

for large kkk. The dominant eigenvalue explains why Fibonacci numbers grow approximately like the kkkth power of the golden ratio.


9. Applications of eigenvalue analysis

Principal Component Analysis

Principal Component Analysis (PCA) uses eigenvalue decomposition of a data set’s covariance matrix. The eigenvectors identify directions of variation in the data, while the associated eigenvalues indicate how much variation occurs in those directions. This allows data to be represented using a smaller number of important directions.

Quantum mechanics and semiconductors

Linear algebra is central to quantum mechanics. The Schrödinger equation is an eigenvalue equation, and the allowed energy levels of a system are eigenvalues of an energy operator called the Hamiltonian. In semiconductors, discrete allowed energy levels and energy gaps help explain how electronic devices work.

Markov chains and PageRank

A Markov chain represents transitions between states using a stochastic transition matrix. Its long-term behavior can be analyzed through eigenvectors and eigenvalues, including steady-state distributions. The PageRank algorithm uses this kind of analysis: a web page’s rank is related to the long-run behavior of a transition process over links between pages.

Hidden Markov models and language processing

Hidden Markov models use state-transition ideas related to Markov chains. They have been applied to tasks such as part-of-speech tagging, where a sequence of observed words is used to infer a sequence of underlying grammatical states.


Key takeaways

  • The eigenvalue equations for several eigenvectors can be written compactly as AS=SΛAS=S\LambdaAS=SΛ.

  • If AAA has enough linearly independent eigenvectors, it can be diagonalized as A=SΛS−1A=S\Lambda S^{-1}A=SΛS−1.

  • Diagonalization turns matrix powers into powers of the eigenvalues: Ak=SΛkS−1A^k=S\Lambda^kS^{-1}Ak=SΛkS−1.

  • A state evolving by xk+1=Axkx_{k+1}=Ax_kxk+1​=Axk​ satisfies xk=Akx0x_k=A^kx_0xk​=Akx0​, and its long-term behavior is governed by the eigenvalues.

  • The Fibonacci recurrence can be rewritten as a matrix system; its dominant eigenvalue gives both the growth rate and a closed-form expression for the sequence.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent