1. Home
  2. Explore
  3. Mathematics
  4. Diagonalization in Differential Equations

Study methods

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

Diagonalization in Differential Equations

Speaker 1Speaker 2

Diagonalization in Differential Equations

8:37
0:00-8:37
  1. Anna

    Welcome to part three of Lecture 26 on differential equations and linear algebra. This lecture brings together a major theme from the course: using diagonalization as a change of variables to make a differential equation easier to solve.

  2. Michael

    The key idea is much like a substitution in calculus. Instead of describing the system in its original coordinates, we choose new coordinates in which the equations may separate into simpler pieces.

  3. Anna

    We’ll work with the saddle-point system from Lecture 24B. Its coefficient matrix is A, with rows two, three and four, one. The characteristic polynomial is lambda squared minus the trace times lambda plus the determinant.

  4. Michael

    The trace is three, and the determinant is two minus twelve, or negative ten. So the characteristic polynomial is lambda squared minus three lambda minus ten, which factors as lambda plus two times lambda minus five.

  5. Anna

    That gives eigenvalues negative two and positive five. An eigenvector for negative two is the vector negative three, four, and an eigenvector for five is one, one.

  6. Michael

    Put those eigenvectors into the columns of a matrix P, in that order. Then P is the matrix with columns negative three, four and one, one. The diagonalization theorem says that P inverse times A times P is diagonal.

  7. Anna

    In this case, that diagonal matrix D has negative two and five on its diagonal. The determinant of P is negative seven, so P inverse is the matrix with rows negative one-seventh, one-seventh and four-sevenths, three-sevenths.

  8. Michael

    This diagonalization already helps with the matrix exponential. Since A equals P times D times P inverse, the exponential of tA can be written as P times the exponential of tD times P inverse.

  9. Anna

    And because D is diagonal, its exponential is easy: the diagonal entries become e to the negative two t and e to the five t. Multiplying that matrix exponential by an initial-condition vector gives the unique solution to the initial-value problem.

  10. Michael

    Now let’s approach the same system by explicitly changing variables. Write the original state vector Y as P times a new vector U. If U has components u and v, this says the old coordinates are built from the new ones using the eigenvectors.

  11. Anna

    In scalar form, that is x equals negative three u plus v, and y equals four u plus v. To get u and v from x and y, use the inverse transformation: u equals negative x over seven plus y over seven, and v equals four x over seven plus three y over seven.

  12. Michael

    It’s worth being careful about which direction each equation goes. Y equals P U gives the old coordinates from the new coordinates. Solving for the new coordinates gives U equals P inverse Y.

  13. Anna

    The original differential equation is x-prime equals two x plus three y, and y-prime equals four x plus y. Since u and v are fixed linear combinations of x and y, they also depend on time, so we can differentiate their formulas.

  14. Michael

    For instance, start with u equals negative x over seven plus y over seven. Differentiate it, then substitute the differential equations for x-prime and y-prime.

  15. Anna

    That gives u-prime equals negative two-sevenths x plus two-sevenths y. Now substitute x equals negative three u plus v and y equals four u plus v. The v terms cancel, and the u terms combine to give u-prime equals negative two u.

  16. Michael

    Doing the same calculation for v makes the u terms cancel and leaves v-prime equals five v. So the new system is completely decoupled: each variable has its own independent equation.

  17. Anna

    Those equations are immediate to solve. We get u of t equals u-zero times e to the negative two t, and v of t equals v-zero times e to the five t.

  18. Michael

    That’s the payoff of the change of variables. The original equations are coupled because each derivative involves both x and y. In the eigenvector coordinates, each component evolves independently.

  19. Anna

    There’s also a compact vector calculation behind the scalar work. Since U equals P inverse Y and P is constant, U-prime equals P inverse times Y-prime. Substitute Y-prime equals A Y, and then Y equals P U.

  20. Michael

    So U-prime equals P inverse A P U. But P inverse A P is D, which means U-prime equals D U. That one line gives the decoupled system we just derived component by component.

  21. Anna

    Now picture the phase plane in the original x-y coordinates. The determinant of A is nonzero, so the equation A Y equals zero has only the zero solution. That means the origin is the unique equilibrium point.

  22. Michael

    The two eigenvector directions appear as straight-line solutions in the phase portrait. The line parallel to negative three, four is the u-axis in the new coordinate system, and the line parallel to one, one is the v-axis.

  23. Anna

    Along the u direction, the eigenvalue is negative two, so solutions move toward the origin. Along the v direction, the eigenvalue is positive five, so solutions move away from the origin. That combination is what makes the equilibrium a saddle.

  24. Michael

    You can imagine drawing a skewed grid over the original phase plane. Its two families of grid lines run parallel to the eigenvector directions, so it acts like graph paper for the u-v coordinates.

  25. Anna

    For example, the point with x-y coordinates negative three, four has u-v coordinates one, zero. And the point with x-y coordinates one, one has u-v coordinates zero, one. Those are exactly the eigenvectors used as columns of P.

  26. Michael

    The grid spacing reflects the lengths of those chosen eigenvectors. The vector one, one is shorter than negative three, four, so the corresponding grid lines are closer to the origin in that direction.

  27. Anna

    We can also recover the solution in the original coordinates. Since Y equals P U, substitute the solved components: Y of t equals P times the vector whose entries are u-zero e to the negative two t and v-zero e to the five t.

  28. Michael

    And the initial values in the new coordinates come from U-zero equals P inverse Y-zero. So if you start with an initial point in x-y coordinates, first transform it with P inverse, evolve the two components separately, and then transform back with P.

  29. Anna

    That procedure is equivalent to the matrix-exponential formula. In fact, the matrix exponential of tA is P times the exponential of tD times P inverse, so the change-of-variables method and the matrix-exponential method give the same solution.

  30. Michael

    The lecture also uses Mathematica to visualize the phase portrait, the nullclines, the straight-line eigenvector solutions, and the skewed grid. The directional shading distinguishes northeast, northwest, southwest, and southeast motion in different regions.

  31. Anna

    One final geometric detail is the determinant of P. It is negative seven, so the transformation reverses orientation as well as changing the coordinate directions and stretching them.

  32. Michael

    The columns of P tell us where the unit coordinate directions in the u-v plane go: the first unit vector maps to negative three, four, and the second maps to one, one. That’s why the new coordinate axes line up with the eigenvector directions in the original plane.

  33. Anna

    It can sound confusing to say that P maps new coordinates to old coordinates while also describing the eigenvector lines as the new axes in the phase portrait. The safe distinction is: P converts a coordinate pair u-v into its x-y position, while P inverse reads the u-v coordinates of an x-y point.

  34. Michael

    So the central lesson is that diagonalization is more than a matrix trick. It supplies a change of coordinates in which a coupled linear differential equation becomes a collection of simple, independent equations.

  35. Anna

    And once those simple equations are solved, we transform back to the original coordinates. That’s the main application of linear algebra to differential equations in this lecture—and a method we’ll use again with other examples.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent