1. Home
  2. Explore
  3. Mathematics
  4. Matrix Differential Equations

Study methods

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

Matrix Differential Equations

Speaker 1Speaker 2

Matrix Differential Equations

6:23
0:00-6:23
  1. Corey

    Today we're beginning one of the major applications of linear algebra to differential equations: solving a generic system of equations of the form x-dot equals A times x using eigenvalues and eigenvectors. The goal is to understand not just the procedure, but why eigenvalues and eigenvectors are exactly the tools we need.

  2. Maria

    So x is a vector of states, such as x-one, x-two, and so on through x-N, while A is a matrix. This represents a coupled first-order linear system: first-order because there is only one time derivative, coupled because the state derivatives can depend on several components, and linear because matrix multiplication makes each derivative a linear combination of the states.

  3. Corey

    Before handling the fully coupled case, let's start with the easiest possible situation: A is diagonal. Imagine that the components of x represent populations of different animals in a very large zoo. The bunnies, wolves, and antelope each live in separate areas, so none of the populations affects any other population.

  4. Maria

    In that case, the system is decoupled. Written component by component, it looks like x-one-dot equals lambda-one times x-one, x-two-dot equals lambda-two times x-two, and eventually x-N-dot equals lambda-N times x-N. Every equation involves only its own state variable.

  5. Corey

    We can call this diagonal matrix D. Since the equations are independent, we already know how to solve each one: x-one at time t equals e to the lambda-one-t times the initial value x-one-naught. Similarly, x-two at time t equals e to the lambda-two-t times x-two-naught, and the same pattern continues through x-N.

  6. Maria

    And we can collect all of those individual solutions into one matrix equation. The state vector at time t equals a diagonal matrix whose entries are e to the lambda-one-t, e to the lambda-two-t, and so on, multiplied by the initial state vector. In other words, for this diagonal system, the solution is written as x of t equals e to the D-t times x of zero.

  7. Corey

    Here, e to the D-t means the matrix exponential of the diagonal matrix D times t. For a diagonal matrix, it is especially simple: exponentiate each diagonal entry and leave the off-diagonal entries equal to zero. A more general definition of the matrix exponential will come later through the Taylor series for the ordinary exponential.

  8. Maria

    But real systems usually are not as neatly separated as animals in different zoo enclosures. If the populations live in the wild, bunnies can affect wolves, wolves can affect antelope, and so forth. Those interactions create cross terms in A, so A is generally a full, complicated matrix rather than a diagonal one.

  9. Corey

    That leads to the central objective: find a change of coordinates that turns the difficult system into a diagonal, decoupled one. We introduce a new coordinate vector z and write x equals T times z, where T is an invertible matrix. Invertible means its determinant is nonzero, so we can move in both directions between the x-coordinates and the z-coordinates.

  10. Maria

    The hope is that, in the new coordinates, the dynamics have the form z-dot equals D times z, with D diagonal. That system is easy to solve, because z of t equals e to the D-t times z of zero. So instead of directly solving the complicated system in x, we solve a simple system in z and then transform back.

  11. Corey

    Let's derive the condition that T must satisfy. Start with x equals Tz and take the time derivative. Since T is a constant matrix, x-dot equals T times z-dot. But the original system says x-dot equals A times x, and substituting x equals Tz gives T times z-dot equals A times T times z.

  12. Maria

    Now multiply both sides on the left by T-inverse. That isolates the derivative of the new coordinate vector: z-dot equals T-inverse A T times z. Therefore, to make the z-system diagonal, we need to find T so that T-inverse A T equals D, where D is diagonal.

  13. Corey

    Multiply that equation on the left by T, and the condition becomes A T equals T D. This is the matrix eigenvalue-eigenvector equation. It is the key result because it tells us exactly what kind of coordinate transformation diagonalizes A.

  14. Maria

    The diagonal entries of D are the eigenvalues of A, and the columns of T are the corresponding eigenvectors. So if T has columns T-one, T-two, through T-N, and D has diagonal entries lambda-one, lambda-two, through lambda-N, then A times T equals T times D.

  15. Corey

    To see what that matrix equation means, look at its columns. The first column says A times T-one equals lambda-one times T-one. The second says A times T-two equals lambda-two times T-two, and in general A times T-k equals lambda-k times T-k. Each eigenvector is paired with its corresponding eigenvalue.

  16. Maria

    The diagonal structure of D is what makes that column-by-column result work. When D multiplies T, the zeros in each column of D eliminate every column of T except the matching one, leaving lambda-one T-one, lambda-two T-two, and so on. That is why the matrix equation contains all of the individual eigenvalue equations at once.

  17. Corey

    This also gives the motivation for eigenvectors. They are not just abstract objects introduced in a linear algebra class. The eigenvectors of A provide the coordinate directions in which the dynamics become diagonal, and in those eigenvector coordinates, the system separates into independent equations.

  18. Maria

    The coordinate conversion is explicit: from the new coordinates to the original ones, x equals Tz. To go from the original state x to the new coordinate vector, z equals T-inverse x. Once the system is solved in z, the transformation T takes the result back into the original x-coordinates, where the physical states or measured quantities are expressed.

  19. Corey

    So the overall strategy is now clear. Start with x-dot equals A x, find an invertible matrix T whose columns are eigenvectors of A, form the diagonal matrix D from the matching eigenvalues, and use A T equals T D, equivalently T-inverse A T equals D, to obtain a decoupled system in z.

  20. Maria

    The next step is to learn how to compute those eigenvalues and eigenvectors for a particular matrix A. After that, we can use T and D to solve the differential equations and transform the solution back to the original x-coordinates.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent