Differential Equations
Units and Topics
Unit 5. Linear Systems
5.3 Real Eigenvalues
When the matrix of a linear system has two different real eigenvalues, the general solution is a combination of two exponential solutions, one along each eigenvector. This topic covers the general solution, the initial conditions, and the pictures of the trajectories in the phase plane: the saddle point and the node.
You need Topics 5.1 and 5.2 for this topic. The topic uses the solution of two linear algebraic equations.
1. The General Solution
Topic 5.2 showed that each eigenvalue λ with its eigenvector v gives the solution eλtv of x′ = Ax. With two different real eigenvalues, there are two such solutions. The system is linear and homogeneous, so each linear combination of the two solutions is again a solution.
Two different real eigenvalues. If A has the real eigenvalues λ₁ and λ₂ with λ₁ not equal to λ₂, and the eigenvectors v₁ and v₂, the general solution of x′ = Ax is x = c₁eλ₁tv₁ + c₂eλ₂tv₂.
Eigenvectors for two different eigenvalues do not lie on one line through the origin. Each vector of the plane is therefore a combination c₁v₁ + c₂v₂ with exactly one pair of constants. At t = 0 the solution is c₁v₁ + c₂v₂, so each initial vector x(0) is matched by one choice of the constants.
2. A Complete Example
Solve x′ = x + 2y, y′ = 3x + 2y with x(0) = 3 and y(0) = 2. The matrix is A = 1232. Topic 5.2 found its eigenvalues 4 and −1 with the eigenvectors 23 and 1−1.
x = c₁e4t23 + c₂e−t1−1the general solutionc₁23 + c₂1−1 = 32the initial condition at t = 02c₁ + c₂ = 3the first entries3c₁ − c₂ = 2the second entries5c₁ = 5add the two equationsc₁ = 1divide by 5c₂ = 1from 2c₁ + c₂ = 3x = e4t23 + e−t1−1the solutionWritten with the two functions, the solution is x = 2e4t + e−t and y = 3e4t − e−t. The check of the first equation:
x′ = 8e4t − e−tthe derivative of xx + 2y = 2e4t + e−t + 6e4t − 2e−tsubstitute x and yx + 2y = 8e4t − e−tcollect, which agrees with x′3. Solutions Along a Line
When c₂ = 0, the solution is c₁eλ₁tv₁. It is a multiple of v₁ at each time, so the point stays on the line through the origin along v₁. The factor eλ₁t decides the direction of the motion.
| Eigenvalue | Motion on the line of its eigenvector |
|---|---|
| Positive | Away from the origin, faster and faster |
| Negative | Toward the origin, which is approached but not reached |
| 0 | No motion: each point of the line is an equilibrium point |
The origin itself is an equilibrium point of each linear system, because A times the zero vector is the zero vector. The two lines along the eigenvectors are the only straight trajectories. All other trajectories are curved, and the two lines guide them.
4. A Saddle Point
The example of Part 2 has one positive and one negative eigenvalue. For a solution with both constants not 0, the term c₂e−tv₂ becomes small as t increases, and the term c₁e4tv₁ grows. For large t, the point is close to the line along v₁, and it moves away from the origin. Going back in time, the term with e−t is the large one, so the point came from far away near the line along v₂.
A trajectory comes in near one line, turns near the origin, and leaves near the other line. The origin is called a saddle point.
Saddle point. When the eigenvalues have opposite signs, the origin is a saddle point. It is unstable: all solutions move away from it, except the solutions that start exactly on the line of the eigenvector with the negative eigenvalue.
5. A Node
When both eigenvalues are negative, both terms of the solution approach the zero vector, and each trajectory approaches the origin. The origin is called a stable node.
For example, the matrix A = −211−2 has the trace −4 and the determinant 3.
λ² + 4λ + 3 = 0the characteristic equation(λ + 1)(λ + 3) = 0factor the left sidev₁ = 11for λ₁ = −1, from A + I = −111−1v₂ = 1−1for λ₂ = −3, from A + 3I = 1111x = c₁e−t11 + c₂e−3t1−1the general solutionThe term with e−3t decreases faster than the term with e−t. After some time the solution is close to c₁e−tv₁. The trajectories therefore approach the origin along the line of v₁, the eigenvector of the eigenvalue that is closer to 0.
When both eigenvalues are positive, the picture is the same with the direction of the motion reversed. Each trajectory moves away from the origin, and the origin is called an unstable node.
Node. When both eigenvalues are negative, the origin is a stable node, and each solution approaches it. When both eigenvalues are positive, the origin is an unstable node, and each solution except the zero solution moves away from it.
Try it: the trajectories for two real eigenvalues
The matrix has the eigenvectors 11 and 1−1, drawn as the purple line and the green line. The sliders set their eigenvalues λ₁ and λ₂. The gray curves are trajectories, and the arrows show the direction of the motion. Drag the point to choose the start of the blue trajectory.
6. An Eigenvalue That Is 0
The two blocks in contact of Topic 5.1 have the system x′ = −0.5x + 0.5y, y′ = 0.5x − 0.5y, with the matrix A = −0.50.50.5−0.5. The trace is −1, and the determinant is 0.25 − 0.25, which is 0.
λ² + λ = 0the characteristic equationλ(λ + 1) = 0factor the left sidev₁ = 11for λ₁ = 0, from the row −0.5v₁ + 0.5v₂ = 0v₂ = 1−1for λ₂ = −1, from the row 0.5v₁ + 0.5v₂ = 0x = c₁11 + c₂e−t1−1the general solution, with e0t = 1For the initial temperatures 80 and 20, the constants satisfy c₁ + c₂ = 80 and c₁ − c₂ = 20, so c₁ = 50 and c₂ = 30. The solution is x = 50 + 30e−t, y = 50 − 30e−t, as in Topic 5.1.
The eigenvectors explain the result of Topic 5.1. The vector 11 is the state with equal temperatures, which does not change. The vector 1−1 is a difference of the temperatures, which decreases with the factor e−t. Each point of the line x = y is an equilibrium point, and each trajectory is a straight line that ends on this line.
7. An Example from Physics
The door of Topic 3.2 has the equation x″ + 5x′ + 4x = 0 for its angle x. With the angular velocity v = x′, the system is x′ = v, v′ = −4x − 5v, and the matrix is 01−4−5.
λ² + 5λ + 4 = 0the characteristic equation, with T = −5 and D = 4(λ + 1)(λ + 4) = 0factor the left sidev₁ = 1−1for λ₁ = −1, from the row v₁ + v₂ = 0v₂ = 1−4for λ₂ = −4, from the row 4v₁ + v₂ = 0xv = c₁e−t1−1 + c₂e−4t1−4the general solutionBoth eigenvalues are negative, so the origin is a stable node: the door closes and comes to rest from each starting state. For the door that is released from rest at the angle 0.6, the conditions are c₁ + c₂ = 0.6 and −c₁ − 4c₂ = 0, which give c₁ = 0.8 and c₂ = −0.2, as in Topic 3.2.
After a short time, the term with e−4t is very small, and the state is close to 0.8e−t1−1. On this line, v = −x: the angular velocity in radians per second has the same size as the angle in radians. The trajectory approaches the origin along the eigenvector of the eigenvalue −1.
Common Mistakes
- Pairing an eigenvalue with the eigenvector of the other eigenvalue. Each exponential function eλt multiplies the eigenvector of its own λ.
- Leaving out the vectors in the general solution. The solution of a system is a vector, and each term contains an eigenvector.
- Finding the constants from the eigenvalues. The constants come from the initial condition c₁v₁ + c₂v₂ = x(0), which is a pair of algebraic equations.
- Calling a saddle point stable because some solutions approach it. A point is stable only when all nearby solutions stay near it.
- Drawing the trajectories of a node as straight lines to the origin. Only the trajectories on the two eigenvector lines are straight. The others curve and approach the origin along the line of the eigenvalue that is closer to 0.
Summary
| Item | Result |
|---|---|
| General solution | x = c₁eλ₁tv₁ + c₂eλ₂tv₂ |
| Constants | From c₁v₁ + c₂v₂ = x(0) |
| Straight trajectories | The two lines along the eigenvectors |
| Eigenvalues with opposite signs | Saddle point, unstable |
| Both eigenvalues negative | Stable node |
| Both eigenvalues positive | Unstable node |
| One eigenvalue 0 | A line of equilibrium points along its eigenvector |
Practice
Work each problem on paper first. Then open the answer to check your work.
1. Find the general solution of x′ = Ax for A = 4123. Which kind of point is the origin?
Topic 5.2, Practice 3, found the eigenvalues 5 and 2 with the eigenvectors 11 and 1−2.
The general solution is x = c₁e5t11 + c₂e2t1−2.
Both eigenvalues are positive, so the origin is an unstable node.
2. Solve the system of Problem 1 with x(0) = 4 and y(0) = 1.
c₁ + c₂ = 4the first entries at t = 0c₁ − 2c₂ = 1the second entries at t = 03c₂ = 3subtract the second equation from the first equationc₂ = 1divide by 3c₁ = 3from c₁ + c₂ = 4x = 3e5t11 + e2t1−2the solution
3. Find the general solution of x′ = y, y′ = x. Which kind of point is the origin?
λ² − 1 = 0the characteristic equation of 0110, with T = 0 and D = −1λ₁ = 1 and λ₂ = −1the eigenvaluesv₁ = 11for λ₁ = 1, from the row −v₁ + v₂ = 0v₂ = 1−1for λ₂ = −1, from the row v₁ + v₂ = 0x = c₁et11 + c₂e−t1−1the general solution
The eigenvalues have opposite signs, so the origin is a saddle point.
4. Solve x′ = Ax for A = −211−2 with x(0) = 3 and y(0) = 1. Along which line does the trajectory approach the origin?
x = c₁e−t11 + c₂e−3t1−1the general solution of Part 5c₁ + c₂ = 3the first entries at t = 0c₁ − c₂ = 1the second entries at t = 0c₁ = 2 and c₂ = 1add and subtract the two equationsx = 2e−t11 + e−3t1−1the solution
The term with e−3t decreases faster, so the trajectory approaches the origin along the line y = x of the eigenvector 11.
5. A solution of the saddle point system of Part 2 starts at x(0) = 2 and y(0) = −2. Describe its motion.
The starting vector is 2 times the eigenvector 1−1 of the eigenvalue −1, so c₁ = 0 and c₂ = 2.
The solution is x = 2e−t1−1. The point stays on the line y = −x and approaches the origin.
6. Two connected tanks hold salt water. The amounts of salt x and y in kilograms satisfy x′ = −3x + y, y′ = 3x − y, with t in hours. Find the general solution. What happens after a long time when the tanks start with x = 8 and y = 0?
λ² + 4λ = 0the characteristic equation of −313−1, with T = −4 and D = 0λ₁ = 0 and λ₂ = −4the eigenvaluesv₁ = 13for λ₁ = 0, from the row −3v₁ + v₂ = 0v₂ = 1−1for λ₂ = −4, from the row v₁ + v₂ = 0x = c₁13 + c₂e−4t1−1the general solutionc₁ + c₂ = 8 and 3c₁ − c₂ = 0the initial conditionsc₁ = 2 and c₂ = 6add the two equations, which gives 4c₁ = 8
After a long time the amounts approach x = 2 and y = 6. The total amount of salt stays 8 kilograms.
Python Practice
Step 1. The constants from the initial condition
The constants satisfy c₁v₁ + c₂v₂ = x(0). With the eigenvectors as the columns of a matrix V, this is the equation Vc = x(0). The instruction np.linalg.solve solves it. The code below uses the example of Part 2. The eigenvectors are typed as rows, and the ending .T exchanges the rows and the columns, so that the eigenvectors become the columns.
Python
Both constants are 1. Now find the constants for the system of Practice 2, with the eigenvectors that have the entries 1, 1 and 1, −2, and the initial vector with the entries 4 and 1. The constants should be 3 and 1.
Python
Step 2. The solution at a later time
The code below calculates the solution e4tv₁ + e−tv₂ of Part 2 at t = 0.5.
Python
The values are x = 15.38 and y = 21.56. Now calculate the solution 2e−tv₁ + e−3tv₂ of Practice 4 at t = 1, with the eigenvectors that have the entries 1, 1 and 1, −1. The values should be 0.786 and 0.686.
Python
Step 3. Check the formula against the method of Euler
The code below solves the system of Part 2 with the method of Euler until t = 0.5, with 50000 small steps, and prints the result next to the formula.
Python
The two results agree to three digits. Now do the same for the stable node of Practice 4, with the matrix that has the rows −2, 1 and 1, −2 and the initial vector with the entries 3 and 1. The formula at t = 0.5 is 2e−0.5v₁ + e−1.5v₂. Both results should be close to 1.436 and 0.990.
Python
Step 4. The kind of point from the eigenvalues
The instruction np.linalg.eigvals returns the eigenvalues of a matrix. It allows complex numbers, and np.real keeps the real parts. The eigenvalues and the eigenvectors of this matrix are real. The code below prints the eigenvalues of the matrix of Part 2 and their product. A negative product means that the signs are opposite, so the origin is a saddle point.
Python
The eigenvalues are −1 and 4, and the product is −4, which is also the determinant. Now find the eigenvalues of the matrix of the door in Part 7, with the rows 0, 1 and −4, −5. The eigenvalues should be −1 and −4, with the product 4.
Python
Step 5. The approach along the slow eigenvector
For the door of Part 7, the state is 0.8e−tv₁ − 0.2e−4tv₂. The code below prints the ratio of the angular velocity to the angle at four times. On the line of the eigenvector with the entries 1 and −1, this ratio is −1.
Python
The ratio approaches −1, so the trajectory approaches the line v = −x. Now do the same for the two tanks of Practice 6, with x = 2 + 6e−4t and y = 6 − 6e−4t, and print the ratio y/x. The ratio should approach 3, the ratio of the entries of the eigenvector for the eigenvalue 0.
Python
Quiz
This quiz has 5 questions on this topic. A question asks you either to choose one answer or to type numbers. The page grades your answers and explains each one. A number can be typed as a whole number, a decimal, a fraction such as 1/3, or a calculation such as sqrt(18)/2 or arccos(1/2). The page shows the value of a calculation next to the box. Angles in a calculation are in degrees. The Calculator button under each question opens a calculator. Your answers are saved in your browser, so they are still on the page when you come back to it.
Choose how your answers are checked
1. A matrix has the eigenvalue 2 with the eigenvector 13 and the eigenvalue −5 with the eigenvector 1−1. What is the general solution of x′ = Ax?
Each term is the exponential function eλt times the eigenvector of the same eigenvalue. The eigenvalue 2 goes with 13, and the eigenvalue −5 goes with 1−1.
2. The eigenvalues of a matrix are 3 and −2. Which kind of point is the origin?
The eigenvalues have opposite signs, so the origin is a saddle point. Solutions approach it along the eigenvector of −2 and move away along the eigenvector of 3.
3. The general solution is x = c₁et11 + c₂e−2t1−2. Find c₁ and c₂ for x(0) = 5 and y(0) = −1.
c₁ + c₂ = 5the first entries at t = 0c₁ − 2c₂ = −1the second entries at t = 03c₂ = 6subtract the second equation from the first equationc₂ = 2divide by 3c₁ = 3from c₁ + c₂ = 5
4. Find the two eigenvalues of the matrix −412−3. Type the smaller eigenvalue first.
λ² + 7λ + 10 = 0the characteristic equation, with T = −7 and D = 12 − 2(λ + 5)(λ + 2) = 0factor the left sideλ₁ = −5 and λ₂ = −2the eigenvaluesBoth eigenvalues are negative, so the origin is a stable node.
5. A system has the eigenvalue −1 with the eigenvector 12 and the eigenvalue −6 with the eigenvector 1−1. Along which line do the trajectories approach the origin?
The term with e−6t decreases much faster than the term with e−t. After some time the solution is close to c₁e−t12, so the trajectories approach the origin along the line y = 2x of the eigenvalue that is closer to 0.