Lecture 23 · Differential Equations and Matrix Exponents $e^{At}$
Solve systems of linear differential equations and understand matrix exponents exp(At).
On this page
Differential equations and exp(At) | Gilbert Strang | MIT 18.06 Linear Algebra
Lecture 23 / Total 35 Lectures |Part 3 · Eigenvalues, positive definiteness and linear transformation
Video of this lecture: Bilibili p23 · Differential equations and matrix exponents ↗(51:03)| 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
Previous Lecture Solving Difference Equations , write the general solution into several linear combination of is of eigenvalue(eigenvalue), is corresponding eigenvector (eigenvector). This lecture solves its continuous version - a system of first-order linear differential equations with constant coefficients
The key idea is just one sentence: the solutions to linear equations with constant coefficients are all exponential functions. So just assume And substituting the equations back, the rest immediately becomes pure linear algebra: Must be an eigenvalue, Must be the corresponding feature vector. Discrete Case Powers Replace it with the exponent of the continuous case , the rest of the structure is completely parallel.
The route is also developed according to this idea: first use a We will go through a complete set of mechanical calculations with a specific example to see how the eigenvalues can predict the long-term behavior of the solution in advance; then discuss The three fates of time solution - decay to zero, stop at Steady state (steady state), explosive growth, the criterion only looks at the real part of the eigenvalue; then use diagonalization (diagonalization) Decouple the coupled system of equations and write ;The final answer is what does “exponent of a matrix” mean: copy of Taylor series (Taylor series) to define , and show that it can be written as in the form of It consists of feature vectors, consists of eigenvalues. At the end of this lecture, a single second-order equation will be transformed into a system of first-order equations, showing that this set of tools is also applicable to higher-order equations.

MIT OCW Official Lecture Notes Summary Page 1/4 (18.06SC Lecture 23 Summary, CC BY-NC-SA 4.0).
1. from a The system of equations begins with
The system of equations to be solved is
Written as two scalar equations, it is and : The rate of change of each component depends on two components at the same time. This is “coupling”. initial value Description When all the weight is concentrated in Up, Still zero. But the movement starts immediately: substitute the initial value into the right end, , traffic direction advance; at the same time , is decreasing. The solution is from flow direction . To see clearly how this flow develops over time, the first step is always to find out eigenvalues and eigenvectors.
The eigenvalues can be seen without even counting the characteristic polynomials. The second column of the matrix is the first column times, the two columns are linearly related, so strange, ; while in In the case of , the determinant is equal to the product of two eigenvalues, so there is an eigenvalue as . It is more straightforward from the perspective of eigenvectors: singularity means that there are non-zero vectors in the null space, that is, there is such that , like this It is an eigenvector with zero eigenvalues. Another eigenvalue is given by trace (trace) Determine: The sum of the diagonal elements is , the trace is equal to the sum of eigenvalues , so the other eigenvalue is . The determinant gives the product and the trace gives the sum, which is equivalent to using two equations to solve two unknowns, which is less troublesome than hard calculation of characteristic polynomials. Hard calculation yields the same result:
Among them , minus the upper right The latter constant terms exactly cancel. So , .
These two numbers already predict the shape of the answer. Correspond , is a part that does not change with time at all; Correspond , is a part that decays to zero over time. When When only the first part remains, that is the steady state. It can be seen that the long-term behavior is determined only by the eigenvalues, and the equation does not even need to be solved first.
Then find the eigenvector. time , that is, asking for The null space of : is given by Let the free variables , got . time solution , that is
Therefore , take . The feature vector is not unique, take Or any non-zero multiple is also acceptable. As long as the direction is correct, the subsequently calculated coefficient will be adjusted accordingly. Verify: , exactly .

Video 00:05:06|Approximately corresponding to Section 1 “1. From a The system of equations begins” near.
2. Pure exponential solution and initial conditions
Why can a set of feature pairs give a solution? order , substitute into both sides of the equation to calculate:
Derivating the left hand side only with respect to the time factor, we get ; put the scalar on the right Bring it up and use it again . If both sides are the same, the equation holds. In other words, exponentially You must take the eigenvalue and multiply it by the previous Eigenvectors must be taken for the exponential hypothesis to be compatible with the equation - this is why “finding exponential solutions” turns differential equations into linear algebra. Such a solution is called pure exponential solution(pure exponential solution).
The equation is linear, and any linear combination of solutions is still a solution, so the general solution is a combination of pure exponential solutions:
here is , so there are only two terms; generally, if is And it can be diagonalized, that is The sum of items. Each item corresponds to a feature direction: is the share of this share in the initial state, is its own growth (or decay) factor, is its direction. By superimposing these independent movements, a general solution is obtained. Looking at discrete and continuous side by side, the formulas are almost exactly the same: the solution to the difference equation in the previous lecture is , here we just put replaced by . So what you need to remember is actually the “pure exponential solution”, and the rest is left to linear combination.
There is another noteworthy property of the pure exponential solution: taking the initial value , pure exponential solution Always stay on this eigenvector ray, only expand or attenuate exponentially, and will not turn. In other words, the part of the flow starting in the direction of the eigenvector is “pure stretching”, and the eigenvalue is the stretching rate in this direction.
For this example, the general solution is written as
coefficient Depends on the initial conditions. order :
Take both coefficients That’s it, because , then multiply Exactly . The same goes for solving the equation: adding the two equations, we get , so , and then from the first formula Got . eventually
Substitute inspection: It is indeed ;right Seek the derivative , while
consistent with the derivative. When time , the solution tends to , this is the steady state. Look back at the entire flow: from Departure, part of the component flows to , and finally stopped at , no longer moves.
The step of finding the coefficients can also be written in a matrix. Composed of feature vectors as columns Eigenvector matrix(eigenvector matrix), then
The meaning of this formula is: split the initial state into the shares of each pure exponential solution. share in Once the time is set, each portion will go its own way according to its own index and will no longer mix with each other.

Video 00:11:15 | Approximately corresponding to Section 2 “2. Pure exponential solution and initial conditions”.

MIT OCW Official Lecture Notes Summary Page 2/4 (18.06SC Lecture 23 Summary, CC BY-NC-SA 4.0).
3. Stability: The real part determines the increase and decrease, and the imaginary part determines the oscillation.
Not every system has a steady state, and not every system decays. There are only three endings in Shijie. If the real part of all eigenvalues is negative, then each term All tend to zero, the solution tends to zero, and it is the same no matter what the initial value is. If exactly one eigenvalue is zero and the real part of the remaining eigenvalues is negative, then the term with zero eigenvalue stops in place, the other terms disappear, and the solution converges to a non-zero steady state, as is the case in this case. If there is an eigenvalue with a positive real part, the corresponding term grows exponentially with time, and the solution explodes.
The eigenvalues may be complex numbers, and the criterion must be more precise. take :
is a point on the unit circle, the real part and imaginary part satisfy , so its modulus is always , only rotating on the unit circle. What really determines size is . Therefore, the real part determines whether the solution decays or grows, and the imaginary part only allows the solution to oscillate back and forth between the two components; no matter how violent the oscillation is, it cannot change the decay trend. The motion given by a pair of conjugate complex eigenvalues is “rotation plus stretching”: the rate of stretching depends on the real part, and the speed of rotation depends on the imaginary part. The general criterion is therefore: for all eigenvalues real part is negative.
Conversely, if all elements of the matrix are signed, then get it immediately : All eigenvalues change signs and eigenvectors remain unchanged. original become , solution explosion; still . In this case, the trace is from become , the symbol flip can be seen at a glance.
The situation also has a criterion that does not require finding eigenvalues. Set
Stability requirements and . The reason is: if two real eigenvalues are both negative, the sum is negative and the product is positive; if the eigenvalue is a pair of conjugate complex numbers , then the sum is , the product is . It is not enough to require that the trace be negative, e.g.
The trace is , but the eigenvalues are with , as long as the initial value has a second component, will cause the solution to explode; its determinant is , which happens to be excluded by the second condition. So both conditions are indispensable.

Video 00:19:24 | Approximately corresponding to section 3 “3. Stability: the real part determines the increase and decrease, and the imaginary part determines the oscillation”.
4. Diagonalization: Decoupling the system of equations
put Coupled together, the rate of change of one component is always mixed with the other component. The function of eigenvectors is to decouple this coupling: instead of using eigenvectors as the basis, the system of equations becomes diagonal. This “changing basis” action is diagonalization - once the matrix is turned into a diagonal matrix, the remaining equations are irrelevant to each other, and the problem is basically solved. The matrix form is
The columns of are feature vectors, The diagonal of is the eigenvalue. Why can decoupling be achieved by changing coordinates? Because under this group of foundations, The effect on each basis vector is just to multiply the corresponding eigenvalue. After writing it as coordinates, the matrix naturally becomes a diagonal matrix. . Make variable substitutions , among which is coordinates under this set of eigenvector bases. is a constant matrix, so , substitute into the original equation to get
The last step is to use diagonalization . The new system of equations is diagonal and written in component-wise form is ——There is no coupling between the components, each is a one-variable equation. scalar equation The solution is , applied to each component separately, we get . Combined into vector form:
The index of a diagonal matrix is the index of each element on the diagonal. Replace the original variable:
So you can recorded as , written as . this is matrix index The role of (matrix exponential) here: a fixed matrix that sends any initial state to the moment in time status. It is the same as the previous one It’s the same routine - first diagonalize, and then let the diagonal elements perform power or exponential operations respectively; the only difference is that in discrete cases , for continuous cases .
Check it out with this example. , so , and what we found before Consistent; calculate again
multiply Exactly what we get in section 2 . Both paths give the same answer: first finding the eigenvector matrix and then formulating it, and first writing a pure exponential solution and then determining the coefficients, which is essentially the same thing.

Video 00:33:11 | Approximately corresponding to Section 4 “4. Diagonalization: Decoupling the System of Equations”.

MIT OCW Official Lecture Notes Summary Page 3/4 (18.06SC Lecture 23 Summary, CC BY-NC-SA 4.0).
5. Matrix exponent: copy Taylor series
Now answer “What is the exponent of a matrix”. Scalar exponential functions have a beautiful and reliable definition - a power series:
put Replace with identity matrix , put Replace with , copy it item by item to get the definition of matrix index: Corresponding to the zeroth-order term (in the matrix, it is ), Correspond , the factorial of the denominator is left unchanged,
This series works for any matrix , any All converge. The reason is that the factorial of the denominator grows faster than Any power of is fast, the general term is pressed toward zero, and the series has a finite sum; No matter how big it is, No matter how big it is. This point is worth contrasting with another beautiful series: the geometric series The matrix version of is
Its convergence depends on Eigenvalues of : only when The absolute values of all eigenvalues of are less than time, power will shrink to zero, and the series will converge to the inverse matrix. If it is very small, you can only keep the first two terms and get an approximation ; If you want to be more precise, leave a few more items. Algebraically, it does provide a series method for inversion, but differential equations do not require it. The main line is still the exponential series above.
With the definition, we can put with , Connect them together: rewrite each term of the series according to the same pattern. put Substitute , adjacent in the middle Pairs cancel each other:
Then write the identity matrix as , each term of the series can be proposed from the left and right sides with :
The square brackets are exactly the exponents of the diagonal matrix - the non-diagonal elements are all , the diagonal is an ordinary scalar exponent, so we can write it directly . The premise of this derivation is that existence, that is Yes Linearly independent eigenvectors can be diagonalized. A few matrices do not have enough eigenvectors, and diagonalization fails; they can still be transformed into triangles instead of diagonals, and the exponential formula must be modified accordingly.
At this point, the entire hand calculation process in Sections 1 and 2 has been repeated at the formula level: finding eigenvalues, eigenvectors, coefficients, and then letting each term evolve according to its own exponential.

Video 00:39:59 | Approximately corresponding to Section 5 “5. Matrix Exponent: Copying Taylor Series”.
6. Images and higher-order equations of the stable region
Drawing the criterion on the complex plane, the difference in stability becomes clear at a glance. The solution of the differential equation tends to zero, requiring all eigenvalues to satisfy , that is, falls on left half plane;virtual axis is the boundary. Once the eigenvalues cross it and enter the right half plane, the solution explodes. And the previous lecture “Powers of matrices” Approaching zero” requirement , that is, the eigenvalue falls within unit circle interior. The reason is very straightforward: Follow The condition for narrowing is ; and The condition for shrinking over time is . For the same matrix, if you look at the power and the exponent, the shape of the stable region is completely different.
Finally, apply the tool to one of the most common equations - a single second-order equation
Although it is an equation, it can be written as a system of first-order equations. The method is to take the unknown quantity into a vector : The first component is , the second component is itself. In this way , the right end can be made into the form of a matrix multiplied by a vector:
The first row of the matrix comes from the original equation: rewrite the equation as , coefficient Just fill in the first row in turn, which is responsible for generating . The second line comes from the trivial equation , so the line is , it is only responsible for handing the first component to the second component unchanged. In this way, the second-order equation becomes For a system of first-order equations, the eigenvalues will naturally correspond to the properties of the original equations.
The same goes for higher-order equations: a fifth-order equation is assigned Matrix, the coefficients of each derivative of the equation are listed in the first row, and the other four trivial “reduced order” equations are placed one on the subdiagonal . This is the same method as the previous lecture on writing Fibonacci recursion as a first-order system—introducing a few more auxiliary components and reducing high-order derivatives to first-order. In this way, any high-order linear equation with constant coefficients is packaged into a system of first-order equations, and the entire method of this lecture (eigenvalues, eigenvectors, matrix exponents) is immediately applicable.

Video 00:45:57 | Approximately corresponding to Section 6 “6. Images and higher-order equations of the stable region”.

MIT OCW Official Lecture Notes Summary Page 4/4 (18.06SC Lecture 23 Summary, CC BY-NC-SA 4.0).
Summary of this lecture
- This tutorial explains the system of first-order linear differential equations with constant coefficients. , its solution is given by The eigenvalues and eigenvectors of are completely determined; with the difference equation The structure of is parallel, just a power Replaced with index .
- pure exponential solution:If , then is the solution - taking the derivative gives , the right side of the equation gives , both are equal.
- The general interpretation is , the coefficient is determined by the initial conditions OK, is a matrix with eigenvectors as columns.
- Example strange and trace , so the eigenvalue is , the feature vector is , ; by Got , the solution is , the steady state is .
- Stability criterion: If the real part of all eigenvalues is negative, the solution tends to zero; if a zero eigenvalue plus the remaining real parts are negative, it will converge to a steady state; if any real part is positive, it will explode. In the case of complex numbers, the real part determines the increase and decrease, and the imaginary part only causes oscillations.
- Quick criterion for: and . only Not enough, counterexample The characteristic value of , will still explode.
- Diagonalization decouples the coupled equations: let Got , so , and thus define .
- Matrix indices are defined using Taylor series: , for any All converge; matrix geometric series only in The absolute values of the eigenvalues are all smaller than time to converge.
- Stable domain images: continuous case requirements (left half plane), discrete power case requirements (within the unit circle).
- second order equation take That is, get the matrix ; order equation to get Matrix, the coefficients are in the first row, and the sub-diagonal is .
keywords
| English | Chinese | One sentence explanation |
|---|---|---|
| linear differential equation | linear differential equation | An equation in which the unknown function and its derivatives appear in a linear manner. This article explains the system of first-order constant coefficient equations. |
| constant coefficient | constant coefficient | matrix does not change with time, the solution can be written as a combination of exponential functions |
| pure exponential solution | pure exponential solution | shaped like solution, , is the corresponding feature pair |
| initial condition | initial conditions | given , used to determine the coefficients of each pure exponential solution |
| eigenvector matrix | Eigenvector matrix | matrix with eigenvectors as columns , satisfy |
| steady state | Steady state | The position where the time solution stays, corresponding to zero eigenvalues |
| stability | Stability | Whether the solution tends to zero over time, the criterion is that the real part of all eigenvalues is negative |
| real part | real part | The part of the eigenvalue of a complex number that determines the increase or decrease in the exponential |
| imaginary part | imaginary part | The part of the complex eigenvalues that only causes oscillations |
| trace | trace | The sum of the diagonal elements is equal to the sum of the eigenvalues, One of the stability criteria |
| diagonalization | diagonalization | , turning the coupled system of equations into mutually irrelevant equations |
| decouple | decoupling | Make each component evolve independently through eigenvector coordinates |
| matrix exponential | matrix index | By Taylor series The defined matrix satisfies |
| Taylor series | Taylor series | put defined as basis |
| geometric series | Geometric series | , the matrix version gives |
| left half-plane | left half plane | on the complex plane The region of , the stable region of the differential equation |
| unit circle | unit circle | on the complex plane The circumference of , the power stable region the boundary of |
Machine-assisted translation · Read Chinese original
