Differential EquationsIntroduction to Systems3 of 3
Introduction to Systems · 3
Matrices, Eigenvalues and Eigenvectors
We want to solve systems of differential equations where the rates of change of x and y depend on both variables at once.
1
Rewriting a Coupled System as a Matrix Equation
When each variable only depends on itself, like dtdx=3x and dtdy=−2y, we can solve each equation separately to get x(t)=c1e3t and y(t)=c2e−2t. That stops working when both equations contain both x and y:
dtdxdtdy=1x+2y=3x+2y
To solve a coupled system without a mess of algebraic elimination, we first put (x,y) into a single position vector and write the system as a matrix equation.
Writing a Coupled System as a Matrix Equation
Putting x and y into a column vector turns the two equations into one relationship between a point's position and its velocity:
To multiply a matrix by a column vector, go across each row of the matrix, multiply each number by the matching entry of the vector, and add the products.
2
What Eigenvectors and Eigenvalues Mean Geometrically
An eigenvector is a nonzero vector that stays on its own line when multiplied by the matrix. The matrix just scales it by a single number λ, called its eigenvalue.
In our system, the matrix takes any position vector [xy] and outputs the velocity vector at that point. At almost every point, the velocity arrow points in a different direction than the position arrow and pushes the point along a curve, unless we start along an eigenvector.
What Eigenvectors and Eigenvalues Mean Geometrically
Along a direction where the velocity is just λ times the position, the matrix acts like simple multiplication by λ:
[1322]eigenvector[xy]=eigenvalueλ[xy]
Because the velocity pushes straight along the line the point is already on, the point stays on that line forever and scales by eλt.
This system has two special lines through the origin where the velocity lines up with the position and the path stays straight.
Almost every starting position gets pushed onto a curve, except along two special lines through the origin where the velocity lines up with the position and keeps the path straight.
3
Finding Eigenvalues with the Determinant
To find those straight-line directions for A=[1322], we look for the eigenvalues λ that give a nonzero vector v=[xy] where
[1322][xy]=λ[xy]
Finding Eigenvalues with the Determinant
AA[xy]λ=[1322]=λ[xy]=?
Moving λ[xy] to the left side subtracts λ from the main diagonal of A. Using the identity matrix I=[1001], we write this as (A−λI)v=0. For the two equations in (A−λI)v=0 to share a whole line of nonzero points instead of only (0,0), they must describe the exact same line, which happens when the determinant is zero:
det(A−λI)=det[a−λcbd−λ]=main diagonal minus other diagonal(a−λ)(d−λ)−bc=0
Text solution
Subtract λ from the main diagonalMove λ[xy] to the left side so the right side is zero.
A−λI=[1−λ322−λ]
Set the determinant to zeroMultiply the main diagonal, subtract the other diagonal, and set the result to 0 so the two equations describe the same line.
Factor to find the eigenvaluesFactor the quadratic to find the two eigenvalues λ.
(λ−4)(λ+1)λ=4,λ=0=−1
So this system has one special direction where points grow like e4t and a second special direction where points shrink toward the origin like e−t.
4
Finding Eigenvectors and Straight-Line Solutions
Now that we have the eigenvalues λ=4 and λ=−1, we need to find an eigenvector [xy] for each one and combine their straight-line solutions to solve the system for any starting point.
Plug in λ=4 and pick a nonzero point on the lineSubstitute λ=4 into the diagonal of A−λI and choose simple nonzero numbers x and y that satisfy the row equation.
Combine the two straight-line solutionsMultiply each eigenvector by its exponential eλt and add them together with constants c1 and c2.
[x(t)y(t)]=c1e4t[23]+c2e−t[1−1]
Plugging λ into a 2×2 matrix A−λI gives you an instant check: the two rows must be multiples of each other. If they aren't, go back and check your arithmetic for λ. Any nonzero vector on the same line, like [46] or [−2−3], works just as well, so pick small whole numbers.
Every curved path starting at (x0,y0) is a combination of two straight-line motions: shrinking toward the origin as e−t along the [1−1] line while stretching away as e4t along the [23] line. Starting directly on either eigenvector line keeps the motion on that line forever.
Every trajectory in the plane is the sum of two straight-line motions along the eigenvector lines: one shrinking toward the origin and the other stretching away.
5
Finding the Eigenvalues of a 3×3 Matrix
When a system has three variables x,y, and z that depend on each other, the position vector xyz moves in 3D space, and we need the eigenvalues of a 3×3 matrix:
A=110211021
Finding the Eigenvalues of a 3×3 Matrix
A=110211021,λ=?
Text solution
Expand det(A−λI)=0 across the top rowSubtract λ from the diagonal and go across the top row with alternating signs +,−,+, multiplying each entry by the 2×2 determinant left when its row and column are crossed out.
Use two rows to find the relationships between x,y, and zTake the two rows that already have a zero (or eliminate one variable between two rows if none has a zero) to relate the variables.
Row 1:−2x+2yRow 3:y−2z=0⟹x=y=0⟹y=2z
Pick one nonzero value and check it in the third rowChoose z=1 to find y and x, verify that Row 2 gives 2−2(2)+2(1)=0, and write the straight-line solution.
Instead of multiplying a matrix A by one column vector at a time, we can put two column vectors side by side into a single matrix and multiply the two matrices together:
[1322][231−1]
Multiplying Two Matrices Together
Text solution
Multiply the left matrix by the first columnMultiply each row of the left matrix by [23] to get the first column of the answer.
[1322][23]=[1(2)+2(3)3(2)+2(3)]=[812]
Multiply the left matrix by the second columnMultiply each row of the left matrix by [1−1] to get the second column, and put both output columns side by side.
Because we multiply the rows of the left matrix by the columns of the right matrix, order matters: AB is usually not equal to BA. The only matrix that leaves every matrix unchanged is the identity matrix I=[1001].
8
Finding the Inverse of a 2×2 Matrix
The inverse of a matrix A, written A−1, is the matrix that undoes A so that multiplying them together gives the identity matrix, AA−1=[1001]. (The −1 in A−1 means the inverse matrix that undoes A, not A1; we never write division by a matrix.) Let's see how the 2×2 inverse works and find the inverse of B=[231−1].
Finding the Inverse of a 2×2 Matrix
5x5−1=15=51AA−1=[acbd]=?
Swapping the main diagonal and negating the other diagonal makes the off-diagonal terms cancel to 0 and puts the determinant ad−bc on the main diagonal, so dividing by ad−bc leaves [1001]:
A=[acbd]⟹A−1=divide by det(A)ad−bc1swap a,dnegate b,c[d−c−ba]
Text solution
Find the determinantMultiply the main diagonal and subtract the other diagonal to make sure you aren't dividing by zero.
det(B)=(2)(−1)−(1)(3)=−2−3=−5
Swap the main diagonal, negate the other diagonal, and divide by det(B)Swap 2 and −1, flip the signs of 1 and 3, and divide every entry by −5.
B−1=−51[−1−3−12]=[515351−52]
As long as the two column vectors of A don't lie on the same line through the origin, the parallelogram between them has nonzero area ∣ad−bc∣ and A−1 restores the original 2D grid; when the two columns lie on the same line, the area drops to zero (ad−bc=0), the entire plane collapses onto a line, and no inverse exists.
A matrix can undo its transformation and restore the grid as long as its two columns don't lie on the same line through the origin, because lining them up flattens the whole plane onto a single line with zero area and no inverse.
Key concepts
Recap: Matrices, Eigenvalues, and Eigenvectors
Here is the full picture of how eigenvalues, eigenvectors, and matrices fit together to solve coupled systems.
9
Practice
1
Rewrite the coupled system dtdx=2x+y,dtdy=4x−y as a matrix equation, and find the velocity vector at (1,2) and at (1,−4). Which of these two points lies on an eigenvector line, what is its eigenvalue, and what is the straight-line solution along that line?
Multiply the matrix by each position vector and check whether the output velocity vector is a single number λ times the input position vector.
Watch out for two common mistakes here: at (1,2), the velocity [42] scales x by 4 and y by 1, so it is not a single multiple of [12] and the path curves off the line; at (1,−4), dropping the negative sign when comparing [−28] with [1−4] gives the wrong eigenvalue λ=2 and wrong solution e2t[1−4]. The point (1,−4) lies on an eigenvector line with eigenvalue λ=−2 and straight-line solution e−2t[1−4].
2
Find the eigenvalues, eigenvectors, and general solution of the system dtdx=4x+y,dtdy=2x+3y.
Set det(A−λI)=0 to find the two values of λ, then plug each λ back into the diagonal of A−λI to find a nonzero vector [xy] that makes both row equations true.
So the eigenvalues are λ=5 and λ=2. For λ=5,[−121−2][xy]=[00] gives −x+y=0, so [11] is an eigenvector. For λ=2,[2211][xy]=[00] gives 2x+y=0, or y=−2x. Be careful not to read the row numbers [2,1] directly as the eigenvector [21] (which gives 2(2)+1=5=0 and the wrong solution c1e5t[11]+c2e2t[21]); picking x=1 gives y=−2, so the eigenvector is [1−2] and the general solution is [x(t)y(t)]=c1e5t[11]+c2e2t[1−2].
3
For the 3D system dtdxyz=240322022xyz, find all three eigenvalues, then find an eigenvector and the straight-line solution for the largest eigenvalue.
Don't forget the alternating minus sign on the middle top-row entry 3; writing +3[4(2−λ)] turns the expression into (2−λ)[(2−λ)2+8]=0 and misses λ=6 and λ=−2.
Expand det(A−λI)=0 across the top row, keeping the shared (2−λ) factor intact, and then use Row 1 and Row 3 of (A−6I)v=0 to relate x,y, and z.
(Don't forget the alternating minus sign on the middle top-row entry 3; writing +3[4(2−λ)] turns the expression into (2−λ)[(2−λ)2+8]=0 and misses λ=6 and λ=−2.) Thus λ=6,2,−2. Plugging the largest eigenvalue λ=6 into the diagonal gives
−4403−4202−4xyz=000
Row 1 gives −4x+3y=0 (4x=3y) and Row 3 gives 2y−4z=0 (y=2z). Picking z=2 gives y=4; be careful in 4x=3y not to swap the numbers to get x=4 and y=3 (which gives the wrong eigenvector 432 and e6t432). Substituting y=4 into 4x=3y gives x=3, eigenvector 342, and straight-line solution e6t342.
4
For A=[4213] and B=[111−2], compute both AB and BA to verify that AB=BA.
Multiply the rows of the left matrix by the columns of the right matrix, rather than multiplying matching positions entry by entry, which falsely gives [421−6] for both.
Multiply each row of the left matrix by each column of the right matrix, one column at a time.
Multiplying the rows of the left matrix by the columns of the right matrix (rather than multiplying matching positions entry by entry, which falsely gives [421−6] for both):
Find the inverse of B=[111−2], and find the value of k for which C=[634k] has no inverse.
Don't mix up the two diagonals by negating the main diagonal and swapping the other one, which gives the wrong inverse [31−31−31−32].
For B−1, swap the main diagonal, negate the other diagonal, and divide by det(B); for C, set det(C)=0.
For B,det(B)=(1)(−2)−(1)(1)=−3. Swap the main diagonal entries 1 and −2 and negate the other diagonal entries (don't mix up the two diagonals by negating the main diagonal and swapping the other one, which gives the wrong inverse [31−31−31−32]):
B−1=−31[−2−1−11]=[323131−31]
The matrix C has no inverse when det(C)=6k−(4)(3)=6k−12=0 (subtracting the second diagonal product rather than adding 6k+12=0, which gives k=−2), so k=2.