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

Speaker 1Speaker 2

Eigenvalue Diagonalization

10:57
0:00-10:57
  1. Corey

    Today we’re connecting eigenvalues and eigenvectors to diagonalization—and then using that connection to understand matrix powers, evolving systems, and even the Fibonacci sequence. Let’s begin with the eigenvalue equation. For a matrix A and an eigenvector sᵢ, applying A to sᵢ gives λᵢsᵢ: the vector keeps its direction and is scaled by its eigenvalue.

  2. Michael

    And we can gather those individual equations into one matrix equation. Put the eigenvectors s₁ through sₖ in the columns of a matrix S, and put their corresponding eigenvalues down the diagonal of a diagonal matrix Λ. The matching matters: the i-th eigenvalue in Λ must belong to the i-th column of S.

  3. Corey

    Then AS has columns As₁, As₂, and so on. Since each sᵢ is an eigenvector, those columns are λ₁s₁, λ₂s₂, and so on. But multiplying SΛ scales each column sᵢ by its matching diagonal entry λᵢ, giving exactly those same columns. So AS = SΛ.

  4. Michael

    That equation is just the eigenvalue equations collected together. It works even if we have fewer than n eigenvectors; in that case S has only k columns, and Λ is k by k. But the especially useful case is when we have n linearly independent eigenvectors.

  5. Corey

    With n linearly independent eigenvectors, S is square and invertible. Starting from AS = SΛ, multiply on the right by S⁻¹. That gives A = SΛS⁻¹. This is the eigenvalue decomposition, also called diagonalization: A is written as a product with a diagonal matrix in the middle.

  6. Michael

    Why is a diagonal matrix helpful? Because its powers are easy to calculate. If A = SΛS⁻¹, then A² is SΛS⁻¹SΛS⁻¹. The middle S⁻¹S becomes the identity, leaving SΛ²S⁻¹. Repeating that cancellation gives Aᵏ = SΛᵏS⁻¹.

  7. Corey

    And raising Λ to the k-th power is simple: raise each diagonal entry λᵢ to the k-th power. That takes n scalar exponentiations, rather than repeatedly doing full matrix multiplications. Using the cost estimates in this lesson, direct multiplication for Aᵏ takes about k·n²·³ operations, whereas the diagonalized expression takes about n operations for the diagonal powers and two matrix multiplications.

  8. Michael

    So when k is large, that can be a substantial saving. The comparison assumes we have the decomposition available, but it illustrates why diagonalization can make repeated powers much more efficient. For example, with a modest matrix size and a large exponent, the savings can be significant.

  9. Corey

    The same idea works for negative powers, provided the relevant inverses exist. The inverse of a product reverses the order, so (SΛS⁻¹)⁻¹ becomes (S⁻¹)⁻¹Λ⁻¹S⁻¹, which simplifies to SΛ⁻¹S⁻¹. And because Λ is diagonal, its inverse is diagonal too: each nonzero diagonal entry is replaced by its reciprocal.

  10. Michael

    So, more generally, negative powers can be handled by taking the corresponding powers of those diagonal entries, as long as the matrix is invertible. There’s another related construction: the exponential of a matrix. Since the Taylor series for eˣ involves powers of x, we can formally define eᴬ using powers of A. This idea is used when solving differential equations, though we’re not going further into that topic here.

  11. Corey

    Now let’s ask why we would take matrix powers in the first place. One common model describes a system by a state vector: its entries are measurements or parameters describing the system. At each time step, a matrix transforms the current state into the next one. That kind of rule is called a first-order difference equation, and it’s also a basic way to describe a Markov chain.

  12. Michael

    If the current state is x₀ and the update rule is xₖ₊₁ = Axₖ, then x₁ = Ax₀. Applying the rule again gives x₂ = Ax₁ = A²x₀. Keep going, and the state after k steps is xₖ = Aᵏx₀. So being able to compute matrix powers efficiently can help us study a system many steps into the future.

  13. Corey

    There are also second-order difference equations, where the current state depends on the previous two states, not just the most recent one. A useful trick is to package multiple quantities into one larger state vector, turning that rule into a first-order matrix equation. We’ll see that trick at work with Fibonacci numbers.

  14. Michael

    Before that, there’s a useful interpretation of the eigenvectors. If A has n linearly independent eigenvectors, they form a basis for ℝⁿ. So any initial vector x₀ can be written as c₁s₁ + c₂s₂ and so on, or compactly x₀ = Sc. The entries of c are the coordinates of x₀ in the eigenvector basis.

  15. Corey

    Apply A once and each eigenvector component gets scaled by its eigenvalue: x₁ = Σ cᵢλᵢsᵢ. After k steps, xₖ = Σ cᵢλᵢᵏsᵢ. In matrix form, that’s xₖ = SΛᵏc. This makes the system’s behavior easier to read: each eigenvector component evolves according to powers of its own eigenvalue.

  16. Michael

    That’s particularly informative over many steps. Components associated with eigenvalues whose absolute values are below one shrink as the powers grow. A component associated with an eigenvalue whose absolute value is greater than one grows. The largest eigenvalue magnitude can therefore control the long-term growth, as long as its component is present in the initial state.

  17. Corey

    Let’s use Fibonacci numbers as an example. The sequence starts F₀ = 0 and F₁ = 1, and each new number is the sum of the two before it. That’s a second-order rule: Fₖ₊₂ = Fₖ₊₁ + Fₖ. To use matrix methods, make a state vector containing two consecutive numbers: xₖ = [Fₖ₊₁, Fₖ]ᵀ.

  18. Michael

    The next state is [Fₖ₊₂, Fₖ₊₁]ᵀ. The recurrence says the top entry is Fₖ₊₁ + Fₖ, while the bottom entry simply copies Fₖ₊₁. So xₖ₊₁ = Axₖ, where A is the matrix with rows [1, 1] and [1, 0]. We’ve converted a second-order scalar recurrence into a first-order matrix equation.

  19. Corey

    Now we can find the eigenvalues of A by solving its characteristic equation, det(A − λI) = 0. That gives λ² − λ − 1 = 0, with roots λ₁ = (1 + √5)/2 and λ₂ = (1 − √5)/2. The first is the golden ratio, approximately 1.618; the second is approximately −0.618.

  20. Michael

    The sum of those eigenvalues is 1, the trace of A, and their product is −1, which also agrees with the matrix. More importantly for the sequence, one eigenvalue has magnitude greater than one, while the other has magnitude less than one. That points to growth dominated by the first eigenvalue.

  21. Corey

    The corresponding eigenvectors can be chosen as s₁ = [λ₁, 1]ᵀ and s₂ = [λ₂, 1]ᵀ. Since the initial state is x₀ = [F₁, F₀]ᵀ = [1, 0]ᵀ, express it in this eigenbasis: x₀ = c₁s₁ + c₂s₂. The two entries give c₁λ₁ + c₂λ₂ = 1 and c₁ + c₂ = 0.

  22. Michael

    Solving those equations gives c₁ = 1/√5. After k steps, xₖ = c₁λ₁ᵏs₁ + c₂λ₂ᵏs₂. Because the magnitude of λ₂ is less than one, its contribution shrinks toward zero as k increases. The second entry of xₖ is Fₖ, so for large k, Fₖ is approximately λ₁ᵏ/√5.

  23. Corey

    That’s a closed-form approximation, not the exact formula: it leaves out the shrinking contribution from the second eigenvalue. But it becomes very accurate quickly. The lesson’s comparison shows noticeable error at the beginning, an approximation around 8.02 when the true value is 8, and essentially no visible difference by about the tenth Fibonacci number.

  24. Michael

    So eigenanalysis tells us more than just how to generate the sequence. It gives a clear account of its growth rate: the dominant behavior is proportional to the dominant eigenvalue raised to the k-th power. And the method began by turning a recurrence into a matrix equation.

  25. Corey

    The same broad ideas appear in applications. Principal Component Analysis, or PCA, uses an eigenvalue decomposition of a data set’s covariance matrix; it also connects to singular value decomposition later in the course. Markov transition matrices and their steady states are relevant to population and migration models, and eigenvalue analysis of a stochastic transition matrix is part of the idea behind PageRank.

  26. Michael

    There are connections beyond those examples, too. Hidden Markov chains are used in part-of-speech tagging in natural language processing. And in quantum mechanics, the Schrödinger equation is an eigenvalue equation: energy levels correspond to eigenvalues of the Hamiltonian operator. The lesson connects allowed energy levels and energy gaps to how semiconductors work, which is foundational to electronic devices.

  27. Corey

    One final connection from the lesson is the matrix exponential, which can be built from the Taylor series using matrix powers and is useful in differential equations. Across all these examples, the central theme is that eigenvectors describe special directions and eigenvalues describe how those directions scale. When there are enough independent eigenvectors, diagonalization turns that structure into a practical tool for powers, system evolution, and analysis.

  28. Michael

    And that’s the main thread: gather the eigenvalue equations into AS = SΛ; when S is invertible, rearrange to A = SΛS⁻¹; then use the diagonal form to understand Aᵏ and how states evolve. The Fibonacci example shows how a carefully chosen state vector can bring a recurrence into that framework, with the dominant eigenvalue explaining its long-run growth.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent