We know how to solve a single differential equation like x′=3x, where the rate of change is just a number times x, giving x(t)=ce3t. Now we want to solve a system where two variables depend on each other:
x′y′=x+2y=2x+y
1
Straight-Line Solutions
In this system, we cannot solve for x(t) or y(t) separately because x′ depends on y and y′ depends on x. To see how the two variables move together, we look at (x,y) as a point in the plane and write its velocity [x′y′] in matrix form:
[x′y′]=[1221][xy]
Why Paths Curve and Straight-Line Solutions
x(t)=eλtv
For [1221], the velocity bends paths into curves almost everywhere, except along two special lines through the origin where the velocity points straight along the line.
Here, paths curve in almost every direction, except along two special lines through the origin where velocity lines up with position.
2
Finding Straight-Line Solutions with Eigenvalues
To find the straight-line solutions of x′=x+2y,y′=2x+y, we need the non-zero directions v=[v1v2] that the matrix [1221] multiplies by a number λ:
Subtract λ from the diagonal and set the determinant to zeroFor the two equations in [1−λ221−λ][v1v2]=[00] to give a whole line of solutions rather than just [00], they must say the same thing, which happens when the determinant is zero:
(1−λ)2−4(1−λ)21−λλ1=3,λ2=0=4=±2=−1
Plug in λ1=3 to find the outward straight-line solutionSubtracting 3 from the diagonal makes both rows say v1=v2, so we can pick any non-zero point on the line y=x, such as v1=1:
−2v1+2v2v1v=[11]=0=v2⟹x1(t)=e3t[11]
Plug in λ2=−1 to find the inward straight-line solutionSubtracting −1 (adding 1) on the diagonal gives the line y=−x, where picking v1=1 gives v2=−1:
2v1+2v2v2v=[1−1]=0=−v1⟹x2(t)=e−t[1−1]
So any point starting on y=x moves outward like e3t, while any point starting on y=−x decays straight into (0,0) like e−t.
3
Combining Straight-Line Solutions for Any Starting Point
Those two solutions cover starting points on the lines y=x and y=−x. Now we want the solution for a starting point anywhere else in the plane, such as (1,0) at t=0.
Combining Straight-Line Solutions for Any Starting Point
Text solution
Combine the two straight-line solutions into the general solutionBecause [11] and [1−1] point along different lines, any starting point in the plane can be built from them, and each piece moves on its own along its line:
x(t)=c1e3t[11]+c2e−t[1−1]
Plug in t=0 to find c1 and c2 for (1,0)Setting t=0 turns both exponentials into 1 and gives two equations from the top and bottom rows:
So the path starting at (1,0) curves because it is decaying inward along y=−x like e−t at the same time as it is growing outward along y=x like e3t.
As t→∞, the e−t piece on y=−x shrinks to zero while the e3t piece on y=x grows, bending the curve closer and closer to y=x unless the starting point sits right on y=−x.
Every curved path in the plane is the sum of two independent straight-line motions: an inward piece that shrinks to zero, and an outward piece that grows and takes over.
4
When Both Eigenvalues Have the Same Sign
In the first system, one eigenvalue was positive and one was negative. Now let's find the general solution and long-term behavior when both eigenvalues have the same sign:
x′y′=−3x+y=2x−2y
When Both Eigenvalues Have the Same Sign
x′y′x(t)=−3x+y=2x−2y=?
Text solution
Set the determinant to zero to find the eigenvaluesSubtracting λ from the diagonal of [−321−2] gives a quadratic with two negative roots:
Find the eigenvector for each eigenvalueAdding 1 to the diagonal for λ1=−1 and adding 4 to the diagonal for λ2=−4 gives the two straight-line directions:
So every solution decays to (0,0) as t→∞, and paths with c1=0 approach the origin tangent to the slower-decaying [12] line (whereas if both eigenvalues were positive, like +1 and +4, all solutions would grow outward, and paths off the λ=1 line would bend parallel to the faster-growing λ=4 line).
Because the fast piece shrinks away first, every path that doesn't start on the fast line comes into the origin tangent to the slow line.
5
Three-Variable Systems in 3D
Now let's find the general solution for a system of three equations in x,y, and z:
x′y′z′=2x=x+y+2z=−x+2y+z
Three-Variable Systems in 3D
x
y
z
x′y′z′x(t)=2x=x+y+2z=−x+2y+z=?
Text solution
Expand the 3×3 determinant across the top rowBecause the top row of 2−λ1−101−λ2021−λ has two zeros, the determinant factors into (2−λ) times the bottom-right 2×2 determinant:
For λ1=2, write two components in terms of the thirdSubtracting 2 from the diagonal makes the first equation 0=0; adding the second and third equations (v1−v2+2v3=0 and −v1+2v2−v3=0) cancels v1 so we can write both v2 and v1 in terms of v3:
Find the eigenvectors for λ2=3 and λ3=−1 and combine all threeFor λ2=3 and λ3=−1, the first equation right away makes v1=0, leaving a single equation relating v2 and v3:
So any path in 3D space is a combination of three separate straight-line motions along the three eigenvectors.
Key concepts
When a system's equations don't mix the variables, such as x′=3x and y′=−y, you don't need matrices or eigenvalues at all, because each equation solves directly as x(t)=c1e3t and y(t)=c2e−t.
When the variables are mixed together in x′=Ax, we separate their motions by finding the straight lines where A acts like a single number λ:
Find the growth or decay rates (λ)
Solve det(A−λI)=0. When all eigenvalues are real and different (two in 2D, three in 3D), each one gives a separate straight-line direction. (If det(A−λI)=0 gives complex numbers with i so paths spiral or circle around the origin, or a repeated eigenvalue without enough separate lines, straight-line solutions alone won't build the general solution.)
Find each line's direction (v) and combine
For each λ, plug it back into (A−λI)v=0, write the variables in terms of one free variable, and pick a simple non-zero number to get v. Combine the straight-line solutions eλtv:
x(t)=c1e3t[11]+c2e−t[1−1]
Read the long-term behavior (t→∞) from the exponents
Opposite signs (e3t and e−t): The e−t piece decays to 0 while the e3t piece grows, so paths bend toward the e3t line unless c1=0 (starting right on the decaying line).
Both negative (e−t and e−4t): Every path decays to (0,0), and because e−4t shrinks to zero faster than e−t, paths with c1=0 approach (0,0) tangent to the slower-decaying e−t line.
Both positive (et and e4t): Every path away from (0,0) grows to infinity, and paths off the et line bend parallel to the faster-growing e4t line.
6
Practice
1
Find the two straight-line solutions and the general solution of the system x′=2x+3y,y′=3x+2y.
Subtract λ from the diagonal of [2332] and set the determinant to zero: (2−λ)2−9=0.
Setting the determinant to zero gives the eigenvalues:
(2−λ)2−92−λλ1=5,λ2=0=±3=−1
Plug each eigenvalue into [2−λ332−λ][v1v2]=[00]. (Watch the sign when moving a term to the other side: for λ2=−1, adding 1 to the diagonal gives 3v1+3v2=0, which means v2=−v1, not v2=v1; missing that minus sign or swapping the two cases gives the wrong pair e5t[1−1] and e−t[11].)
Solve the initial value problem x′=x+4y,y′=2x+3y with x(0)=1,y(0)=4, and write out x(t) and y(t).
Find the eigenvalues and eigenvectors of [1243] first, then plug t=0 into the general solution to solve for c1 and c2.
Subtract λ from the diagonal and set the determinant to zero:
(1−λ)(3−λ)−8λ2−4λ−5(λ−5)(λ+1)λ1=5,λ2=0=0=0=−1
For λ1=5,−4v1+4v2=0 gives v=[11]. For λ2=−1, adding 1 to the diagonal gives 2v1+4v2=0, so v1=−2v2 and v=[−21].
Now set t=0 to match [14]. (Don't plug the starting coordinates x(0)=1 and y(0)=4 directly in as c1=1 and c2=4, which would give x(t)=e5t−8e−t and y(t)=e5t+4e−t; solve the system for c1 and c2.)
Find the general solution of x′=−4x+2y,y′=x−3y. Describe what happens to solutions as t→∞, and give the line through the origin that paths with c1=0 approach tangent to.
After finding both negative eigenvalues, compare e−2t and e−5t as t gets large: which term is still left when the other has nearly shrunk to zero?
Find the eigenvalues and eigenvectors of [−412−3]:
Because both eigenvalues are negative, all solutions decay to (0,0) as t→∞. (Don't pick the λ2=−5 line y=−21x just because 5 is larger than 2: with a minus sign in the exponent, e−5t shrinks to zero much faster than e−2t, leaving the e−2t term last.) Paths with c1=0 approach the origin tangent to the slower-decaying line y=x (along [11]).
4
For the system x′=3x−2y,y′=2x−2y, almost all solutions grow without bound as t→∞. Find the line of starting points (x(0),y(0)) whose solutions instead decay to (0,0) as t→∞, and write the exact solution starting on this line with x(0)=3.
Write the general solution with both eigenvalues; what must the coefficient on the positive-eigenvalue term be so that the solution decays to (0,0)?
Find the eigenvalues and eigenvectors of [32−2−2]:
In x(t)=c1e2t[21]+c2e−t[12], a solution decays to (0,0) only when there is no growing e2t term (c1=0), which means (x(0),y(0))=c2[12] lies on the line y=2x.
With x(0)=3, we need c2=3, giving y(0)=6. (Be sure to multiply [12] by c2=3 to match x(0)=3 rather than leaving e−t[12] without c2.)
x(t)=3e−t[12](x(t)=3e−t,y(t)=6e−t)
5
Find the general solution of the 3D system x′=x,y′=x+2y+3z,z′=−x+3y+2z.
Expand det(A−λI)=0 across the top row [1−λ00] to factor out (1−λ) right away.
Expanding the determinant of 1−λ1−102−λ3032−λ across the top row gives the three eigenvalues:
(1−λ)((2−λ)2−9)λ1=1,λ2=5,λ3=0=−1
For λ1=1, subtracting 1 from the diagonal makes the top equation 0v1+0v2+0v3=0, while the second and third rows are v1+v2+3v3=0 and −v1+3v2+v3=0. (Unlike λ2=5 and λ3=−1, where the top row makes v1=0, here 0v1=0 does not pin down v1, and taking v=100 does not satisfy the bottom two equations, giving the wrong first term c1et100.) Adding the bottom two equations cancels v1: