Lecture 22 · Diagonalization and powers of matrices
Use diagonalization to calculate the power of a matrix and understand the conditions for diagonalization.
On this page
Diagonalization and powers of A | Gilbert Strang | MIT 18.06 Linear Algebra
Lecture 22 / Total 35 Lectures |Part 3 · Eigenvalues, positive definiteness and linear transformation
Video of this lecture: Bilibili p22 · Diagonalization and matrix powers ↗(51:51)| MIT OCW official page ↗
Illustration: MIT OCW 18.06SC official lecture summary (CC BY-NC-SA 4.0) and Bilibili classroom video frames (time stamped), about 10 frames per lecture.
Introduction to this lecture
The key equation reached in the previous lecture is : is eigenvector(eigenvector), is eigenvalue (eigenvalue). The equation itself is just a definition, it does not explain the use of these two things. This lecture answers exactly this question, and the answer is diagonalization (diagonalization): put written as
Among them The columns are linearly independent feature vectors, It’s arranged diagonally diagonal matrix of eigenvalues. This decomposition changes the coordinate system of the observation problem. In the direction of the eigenvector span, Its function is to extend or compress each direction separately. times, without interfering with each other in all directions; Responsible for translating back and forth between the original coordinates and this set of feature directions.
The most direct use of diagonalization is to calculate the power of a matrix. The characteristic value of is , the eigenvector remains unchanged, so . Calculate 100th power does not need to do a hundred matrix multiplications, just put on the diagonal Take each number to the power of one hundred. This matter was obtained through elimination Decomposition is completely impossible: It’s a hundred The formulas are strung together alternately, and there is nothing in the middle that can be eliminated. Precisely because powers become cheap, eigenvalues become the quantities that determine the long-term behavior of a matrix—the absolute value of all eigenvalues is less than , It tends to zero.
I will use this set of tools in the second half of the chapter difference equation(difference equation) on. Given initial vector , the formal solution is ;The way to really calculate it is to Split into linear combinations of eigenvectors, let each part according to its own evolution. The Fibonacci sequence is a model of this idea: after a second-order recurrence is rewritten as a two-dimensional first-order system, the growth rate of the general term is immediately given by the largest eigenvalue. This is also the overall comparison between this lecture and the previous lecture—— It is a static problem, but what we deal with here is a dynamic problem that evolves step by step over time.

MIT OCW Official Lecture Notes Summary Page 1/3 (18.06SC Lecture 22 Summary, CC BY-NC-SA 4.0).
1. Diagonalization:
Set is matrix, and it has linearly independent eigenvectors , respectively corresponding to the eigenvalues . put this vectors arranged column by column into a matrix
called Eigenvector matrix (eigenvector matrix); then arrange the eigenvalues diagonally
Use capital letters instead of , is a reminder that the matrix is installed here, and the eigenvalues are installed on the diagonal.
The whole derivation only needs to do one thing: use Go take a ride . Matrix multiplication can be looked at column by column, whereas of the columns happen to be eigenvectors, so
The second step is just to substitute the definition of the eigenvector. Next we need to count From the first “Peel” it out. The way to peel it out is to use right multiplication: right multiplication with a diagonal matrix , of the The entire column is multiplied by the third column of the diagonal matrix diagonal element. Take two columns as an example and write it out:
The same applies to general situations. So we get the basic formula of this lecture
Note is multiplied from the right, so it falls on The right side of . This position cannot be remembered incorrectly. The notation is: What is multiplied is its own eigenvector, always stick on to the left.
Since Reversible – that’s exactly what The whole usefulness of the assumption that the eigenvectors are linearly independent” - just Take left on both sides , get
Or written conversely decomposition
The two expressions say the same thing, but and Which side of the equal sign you are on makes a difference. The first formula reads as “after changing a group of bases, Becomes a diagonal matrix”; the second formula is read as ” Made up of three pieces.” The latter is what it is with , Parallel identity: Those two decompositions, from elimination and Gram-Schmidt, are lower trigonometric times upper triangular, orthogonal times upper triangular, whereas here it’s a matrix times a diagonal matrix times its own inverse. This kind of “sandwiched in the middle” with “The shape will appear repeatedly when dealing with differential equations later.
It must be emphasized that this decomposition is not unconditionally true. The columns of are linearly independent, which is equivalent to this eigenvectors are independent of each other, which is equivalent to Reversible, which is equivalent to being able to write . Once you can’t get it together With an independent eigenvector, diagonalization is out of the question. Such matrices are a minority, but they do exist, and Section 3 will single them out.

Video 00:05:11|Approximately corresponding to Section 1 “1. Diagonalization: “Nearby.
2. Power of matrix: Eigenvalues give the answer directly
Diagonalization immediately answers a natural question: What are the eigenvalues and eigenvectors of ? The answer is so clean that no additional calculations are required.
from Depart, ride together on both sides :
The second equal sign number As mentioned before, the third equal sign uses definition again. The conclusion is: The characteristic value of is , the feature vector is still the original one . So once the matrix is squared, the eigenvalues follow the square, and the eigenvectors stay put.
It would be more interesting to watch it again with diagonalization. put Substitute :
middle pair It is the identity matrix, which means it does nothing. And Still a diagonal matrix, on the diagonal is . This is completely consistent with the conclusion calculated vector by vector above: sandwiched on both sides has not changed, so the feature vector has not changed; the middle becomes , so the eigenvalues are squared.
The same reasoning can be extended all the way to any power. put a Continuous multiplication, internally adjacent Two by two cancel each other out, leaving only the leftmost one , the rightmost , and the middle a :
This is a shortcut for computing higher powers of a matrix: The characteristic value of is , the feature vector remains unchanged. take The cubic eigenvalue is the cube of the original eigenvalue; taking it to the hundredth power is the hundredth power. And Just independent scalar powers, just calculate them one by one.
The weight of this shortcut becomes clear when compared with the incompetence of the elimination route. If only , then
one hundred and a hundred They are connected end to end, without any eliminateable middle term, and no pattern can be seen. There is no “power” information at all in the pivot element, but there is in the eigenvalue. Eigenvalues provide a previously inaccessible perspective: seeing what a matrix will look like if it is acted upon a hundred times.
From this we can get a theorem about stability. matrix is stable (stable) if time .
Theorem. in On the premise that it can be diagonalized, if and only if All eigenvalues of .
The idea of proof is to put Take it apart and see: with is a fixed matrix, not random changes, only the middle one can make the entire product smaller or even disappear . And is a diagonal matrix that goes to zero if and only if every all tend to zero, that is, each . The reverse direction is also true: if , then for each feature vector , so .
The absolute value cannot be saved. Eigenvalues can be negative numbers or even complex numbers (the eigenvalues of a real matrix may also be complex numbers, as long as the matrix is asymmetric); For real numbers, it is the usual absolute value, and for complex numbers, it is the modulo length. If a certain , then Constant equal to , the power will not become smaller; if , then in with It swings back and forth. Although it does not diverge, it does not tend to zero. Only when it falls strictly within the unit circle does the power really decay. Also remember the qualification at the beginning of the theorem: the entire argument rests on On the basis of existence, there is no independent eigenvectors, this route of “eigenvalues determining power” will not work.

Video 00:13:20|Approximately corresponding to Section 2 “2. Power of matrix: eigenvalues directly give the answer”.

Video 00:19:42|Approximately corresponding to Section 2 “2. Power of matrix: eigenvalues directly give the answer”.
3. What kind of matrix can be diagonalized?
Since diagonalization is so easy to use, it is necessary to find out which matrices can use it. There are two situations.
Situation one: The eigenvalues are different from each other. At this time There must be are linearly independent eigenvectors and therefore must be diagonalizable. This is the most useful criterion: just calculate characteristic polynomial (characteristic polynomial) after discovering its Since each root is different, there is no need to check the eigenvectors, and the independence property is automatic. Random matrices almost always fall into this situation: in Matlab for a The random matrix execution of eig(rand(10)), the ten returned eigenvalues are usually different from each other. The so-called “different” (distinct) means that the two are not equal; if the ten eigenvalues are different, the ten eigenvectors are automatically independent.
Scenario 2: There are duplicate eigenvalues. At this point the conclusion no longer automatically holds - it may still be diagonalizable, or it may not, and must be checked one by one. So duplicate eigenvalues are not a disaster per se, it’s just an inconvenience.
Let’s first look at an example that is still successful: of identity matrix(identity matrix). Its characteristic polynomial is , characteristic value Repeated ten times. But the identity matrix never lacks eigenvectors - every vector satisfies , any ten linearly independent vectors can serve as . and , after diagonalization That’s it yourself, this is inherently true: the identity matrix is already diagonal matrix (diagonal matrix), the eigenvalues of the diagonal matrix are placed on the diagonal, no need to transform.
Let’s look at another failed example:
it is a upper triangular matrix(upper triangular matrix), determinant (determinant) is easy to calculate:
Let the determinant equal , solve , and it is a double root. So both eigenvalues are .
The next step is to find the eigenvector, that is, find of null space(nullspace):
Equation Only the second component is required to be equal to , the first component is completely free, so the null space is A straight line formed by a straight line has only the dimensions . is not among them: it is multiplied to get , not a zero vector. This matrix has only one eigenvector direction and cannot be composed of two independent columns. , so Can’t Diagonalization: whatever you choose , It won’t be a diagonal matrix, that way of writing doesn’t exist at all.
Two different ways of counting appear here, and it is worth naming them. As the root of the characteristic polynomial appears twice, this degree is called algebraic multiplicity (algebraic multiplicity); while The dimension of the null space, that is, the number of truly independent feature vectors, is called geometric multiplicity (geometric multiplicity). In the triangle example above, the former is , the latter is ; in In the case of the identity matrix, both . Whether diagonalization is possible or not remains to be seen. Repeated several times, it depends on whether the sum of the null space dimensions of all eigenvalues is enough .
This example has another meaning: the clause in verse 2 “ then the power tends to zero” theorem, and the entire None of the calculations cover this non-diagonalizable matrix. However, there are only a few such matrices. Most matrices - especially matrices with different eigenvalues - can be diagonalized. This is the scope of this lecture.

Video 00:25:22 | Approximately corresponding to Section 3 “3. What kind of matrix can be diagonalized”.

MIT OCW Official Lecture Notes Summary Page 2/3 (18.06SC Lecture 22 Summary, CC BY-NC-SA 4.0).
4. Difference equation:
Now apply diagonalization to a specific problem. Given initial vector , and stipulate that each step uses the same matrix to multiply the result of the previous step:
This is called first order (first-order) difference equation: each step only uses the previous step; it is called a system of equations because the unknowns are vectors and the coefficients are matrices. Expand the recursion, , , generally
This is the most compact answer, but it doesn’t take Figure it out. To really know what is after a hundred steps, you have to use feature vectors. The next lecture deals with systems of differential equations, where derivatives appear; this lecture deals with differences, which can be seen as the discrete-time counterpart of that theory, which happens to have a much cleaner solution.
The approach is to write the initial vector as a linear combination of feature vectors. Set
Among them are the component coefficients in each direction. The eigenvector can be taken as a unit vector, which does not affect the conclusion. How to find the coefficient? The columns of are a set of basis, .
Use now Go take a ride . Because multiplication can be divided into each term:
Each term is a pure multiple of a certain feature vector, The effect is just to multiply by a number , the direction remains unchanged. This is what “evolving individually” means: each decomposed part stays in one direction, and Just stretch in that direction. If you take it a second time, take it again. , multiplied to the Times:
This last expression is the same as It’s the same formula, except was written out. Therefore, the actual calculation is divided into three steps: first find All eigenvalues and eigenvectors of Expressed as their combination, we get ;Finally, multiply each portion by the corresponding eigenvalue Power.
This set of decompositions also explains why eigenvalues can predict the fate of solutions. Each item of : The terms get smaller and smaller, The terms get bigger and bigger, The items retain their original size. Which eigenvalue dominates, the solution is ultimately determined by that direction. The stability theorem in Section 2 here becomes a qualitative prediction of the solution; as for the precise numerical value, it depends on Provide a weight for each portion.

Video 00:33:42|Approximately corresponding to Section 4 “4. Difference equation: “Nearby.
5. Fibonacci Sequence: A model of eigenvalues
The Fibonacci sequence is the best subject to test this method. take , , each subsequent term is the sum of the previous two terms:
The first few items are , is growing faster than it looks, but “how fast” is not an obvious question. ask How much is it, or how many times do these numbers increase? The answer is hidden in the eigenvalues. This sequence is obviously growing and is not a stable situation; but the growth rate is determined by the largest eigenvalue.
The snag is that the recursion is second order - it involves both with , and the standard form of the difference equation It’s first-order. The transformation only requires a small trick: combine two adjacent items into a vector, and then add an identity . order
then by with get
The second component indeed reduces to , the first component is exactly , so this matrix is correct. A second-order scalar recursion thus becomes a two-dimensional first-order system, and then follow the process in Section 4.
Pay attention to this is symmetric matrix (symmetric matrix). The eigenvalues of a symmetric matrix must be real numbers, complex numbers will not appear here; its eigenvectors will also be orthogonal to each other. These two properties are not proved until later in the course, but in In this case, it is more meaningful to calculate the specific number first.
Calculate the eigenvalues first. Yes matrix, the sum of two eigenvalues is equal to trace (trace, sum of diagonal elements), is equal to the determinant. These two quantities can be read without solving the characteristic equation. The trace here is , the determinant is , so the two eigenvalues satisfy
Count them out and check:
Let it be zero and use the root formula to get
i.e. , . The sum of the two is , multiplied by , consistent with the predictions of the trace and determinant.
There is a remarkable coincidence here: the characteristic equation and the original recursion The shape is exactly the same. put Change to the idea of “multiplying each step by a fixed multiple” , the recursion becomes , giving exactly the same equation. An eigenvalue is greater than , the absolute value of an eigenvalue is less than , plus the two eigenvalues are different from each other, so this matrix must be diagonalizable.
Then calculate the eigenvectors. shaped like
when satisfy when, take Try it: the second component is ;The first component is . Both components return to zero, so
Finally deal with the initial conditions. , request out , solution
Compare the second component to get , that is . Substituting in the first component: , while , so
Multiply the two parts Add them together again and take the second component of the result (which is ):
Take the first few verifications: time ; time ; time , and the sequence consistent.
This formula unfolds the entire mechanism of growth. , so the first term follows exponential growth; , so the second term decays rapidly, Already magnitude, almost equal to zero. Therefore
take Got . The ratio of two adjacent items also tend to , which is exactly what “these numbers are approximately multiplied by “The exact meaning. This kind of information about growth is not in the pivot, nor in the elements of the matrix. It only belongs to the eigenvalues.

Video 00:41:55 | Approximately corresponding to Section 5 “5. Fibonacci Sequence: A Model of Eigenvalues”.

Video 00:46:39 | Approximately corresponding to Section 5 “5. Fibonacci Sequence: A Model of Eigenvalues”.

MIT OCW Official Lecture Notes Summary Page 3/3 (18.06SC Lecture 22 Summary, CC BY-NC-SA 4.0).
Summary of this lecture
- diagonalization (diagonalization): if Yes linearly independent feature vectors, arrange them in columns , the eigenvalues are arranged diagonally , then , multiply left Got with . The essence of the derivation is a column operation: ride to Each column of gets , and then use the right multiplication of the diagonal matrix to peel these numbers into .
- diagonalization requirement Reversible, that is The eigenvectors are linearly independent. This is the premise of the entire method, on which the subsequent power formula and stability theorem are based.
- The characteristic value of is , the eigenvector remains unchanged; by visible internal offset, so generally , the characteristic value is .
- main element and Decompose information without powers: It’s a hundred concatenation; the eigenvalues are given Behavior after repeated exposure.
- stability theorem: When diagonalizable, If and only if all eigenvalues satisfy ; must be taken as an absolute value because eigenvalues can be negative or complex. The power of is always , The power of It oscillates between times and does not tend to zero.
- Matrices with different eigenvalues must be diagonalized (randomly The ten eigenvalues of a matrix are usually different from each other); must be checked for duplicate eigenvalues.
- Eigenvalues of the identity matrix Repeat ten times, but each vector is a feature vector, and ten independent vectors can be taken, , is originally a diagonal matrix.
- eigenvalues It is a double root, and The null space of has only one dimension, consisting only of Zhang Cheng, cannot make up two independent eigenvectors, so it cannot be diagonalized. Here are two counts compared: algebraic multiplicity() and geometric multiplicity().
- difference equation The solution is ;The actual algorithm is to Decompose it into the characteristic direction, and then multiply it item by item , got .
- Fibonacci: order , got , characteristic value , the trace is , the determinant is , the feature vector is , , determines the growth rate, .
keywords
| English | Chinese | One sentence explanation |
|---|---|---|
| diagonalization | diagonalization | put written as , use the eigenvector matrix to into a diagonal matrix |
| eigenvector matrix | Eigenvector matrix | to A matrix with linearly independent eigenvectors as columns |
| eigenvalue matrix | Eigenvalue matrix | Diagonal matrix with eigenvalues as diagonal elements |
| powers of a matrix | matrix power | , the characteristic value is power without changing the eigenvector |
| stable matrix | stable matrix | satisfy matrix, the condition is that all |
| distinct eigenvalues | different eigenvalues | The characteristic polynomial has no duplicate roots. At this time eigenvectors are automatically linearly independent |
| repeated eigenvalue | Duplicate eigenvalues | The multiple roots of the characteristic polynomial may not be found at this time. independent feature vectors |
| algebraic multiplicity | algebraic multiplicity | Eigenvalues as multiplicities of roots of characteristic polynomials |
| geometric multiplicity | geometric multiplicity | The dimension of the null space, that is, the number of independent eigenvectors under this eigenvalue |
| difference equation | difference equation | shaped like The recurrence system of , the solution is |
| first-order system | first order system | Each step only depends on the vector recursion of the previous step and can be described by a matrix |
| recurrence | Recursion | Use the first few rules to determine the last one. Fibonacci is a second-order scalar recursion. |
| eigenvector expansion | Eigenvector expansion | Write the initial vector as , used to solve differential equations |
Machine-assisted translation · Read Chinese original
