Linear Algebra for Engineers lecture 28: Systems of Differential Equations
Overview
Alex Townsend shows how diagonalizing a matrix turns a coupled system of differential equations into independent scalar equations, which can be solved with exponentials and transformed back to the original variables. He develops the method using an illustrative steroid exchange model between muscle and bloodstream, then generalizes it to n variables and gives the compact solution x(t) = P exp(Dt) P⁻¹x(0).
Key takeaways
- For a diagonalizable constant-coefficient system x′(t) = Ax(t), writing A = PDP⁻¹ yields the solution x(t) = P exp(Dt) P⁻¹x(0).
- The eigenvector change of coordinates decouples a system: each transformed component obeys its own scalar equation rᵢ′ = λᵢrᵢ.
- A constant basis change commutes with differentiation because differentiation is linear, so (P⁻¹x)′ = P⁻¹x′.
- In the steroid example, x(t) represents the bloodstream amount and y(t) the muscle amount; exchange couples their rates while metabolism contributes decay.
- Negative eigenvalues produce decaying exponential modes, explaining why both modeled steroid amounts tend toward zero when no further dose is added.
- Once the eigenvectors and eigenvalues are known, initial conditions determine the exponential-mode coefficients through a linear system.
Chapters
- A square matrix A is diagonalizable when a change-of-basis matrix P gives A = PDP⁻¹.
- The columns of P are linearly independent eigenvectors, and D contains their eigenvalues.
- If an n × n matrix has n distinct eigenvalues, it is diagonalizable; real matrices may still have complex eigenvalues and eigenvectors.
- The example tracks x(t), steroid in the bloodstream, and y(t), steroid in the muscle, after an illustrative initial dose of one unit in muscle.
- The rate equations account for steroid moving between muscle and blood, alongside bloodstream metabolism.
- The model distinguishes the measurable blood concentration from the muscle amount, which a drug test cannot directly observe.
- The two rate equations are collected as a vector equation, [x′(t), y′(t)]ᵀ = A[x(t), y(t)]ᵀ.
- Off-diagonal entries in A couple the blood and muscle rates, so solving either equation alone requires knowing the other quantity.
- Diagonalizing A aims to remove that coupling by changing to coordinates in which each rate depends only on its corresponding variable.
- Townsend uses computer-calculated eigenvalues and eigenvectors because the example produces awkward decimal approximations.
- The eigenvectors form P, giving A = PDP⁻¹, and the new variables are defined by [r(t), s(t)]ᵀ = P⁻¹[x(t), y(t)]ᵀ.
- The transformed variables r and s are mathematical coordinates rather than physical amounts of steroid.
- In eigenvector coordinates, the system becomes r′ = λ₁r and s′ = λ₂s.
- Each scalar equation has an exponential solution: r(t) = c₁e^(λ₁t) and s(t) = c₂e^(λ₂t).
- The original physical quantities are recovered by multiplying the solution vector [r(t), s(t)]ᵀ by P.
- The example uses x(0) = 0 and y(0) = 1 to determine the two constants c₁ and c₂ through a 2 × 2 linear system.
- Both eigenvalues are negative, so the exponential modes decay and both modeled steroid amounts eventually approach zero.
- The illustrative plot shows blood concentration rising as steroid leaves muscle, then falling as metabolism and exchange reduce the amounts; 0.25 milligrams is used as a hypothetical test threshold.
- Townsend explains that differentiating P⁻¹x(t) gives P⁻¹x′(t) because P⁻¹ is a constant matrix.
- The key property is linearity: the derivative of a fixed linear combination of functions equals the same linear combination of their derivatives.
- This justifies transforming the variables and differentiating in either order without assuming that arbitrary linear transformations commute.
- For x′(t) = Ax(t), first find the eigenvalues and eigenvectors of A and build P and diagonal D.
- Set r(t) = P⁻¹x(t); then each component satisfies rᵢ′(t) = λᵢrᵢ(t), with solution rᵢ(t) = cᵢe^(λᵢt).
- Transform back using x(t) = Pr(t), and determine the constants from the initial vector x(0).
- Townsend notes that coupled models can describe interacting quantities such as infection, resistance, and active cases in a disease-spread system.
- The four-step method is summarized as x(t) = P exp(Dt) P⁻¹x(0), where exp(Dt) is diagonal with entries e^(λᵢt).
- P⁻¹ transforms the initial state into eigenvector coordinates, exp(Dt) evolves each independent mode, and P transforms back.
- The lecture closes by identifying diagonalization as a way to solve coupled linear systems, with complex-eigenvalue examples planned for the next lecture.
Transcript excerpt
0:00 doing the lectures. Okay. So today's today the suffering is in uh section 5.6 and 5.7. Okay. This is the we've already had the last lecture that is strictly in the semi the semi-final exam. So lecture 27 was the cutoff point and so now everything we do from now is not in the semi-final. Okay. But uh lecture 28 and 29 are going to be getting at applications of igen values and igen vectors. So in some sense they still help you understand the point of values and vectors even though I'm not going to test this kind of stuff in the semi-final. It will be for the final.
0:49 Okay. So that gives you time to to think about it. Um and today I'm going to be doing applica well at least one application with real values and then next class I'll do one with complex so you can see the difference. Okay. So anyway if you give me a square matrix remember the the matrix has to be square for values and vectors we say the matrix is diagonalizable if and only if there's a coordinate system given by P. That's the change of basis matrix for which in that coordinate system the matrix A can be viewed as diagonal. Okay, that's another way of saying value decomposition. Right, there's a change of basis P where P is made up of
1:43 vectors. We can view this as a change of basis matrix which is here here's our notation where the basis basis for Rn if if it's an n byn matrix is these vectors if we can do that if there is a basis and a coordinate system like this for which the matrix can be appeared diagonal it's diagonalizable right and this is the change of basis it's peak so
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Alex Townsend.