Differential Equations
Units and Topics
Unit 5. Linear Systems
5.4 Complex Eigenvalues
When the characteristic equation of the matrix has a negative discriminant, the eigenvalues are complex numbers. The solutions then contain sines and cosines, and the trajectories turn around the origin. This topic covers complex eigenvalues and eigenvectors, the real solutions that they give, and the pictures in the phase plane: the spiral and the center.
You need Topics 5.2 and 5.3 for this topic. The topic uses complex numbers and the formula of Euler from Topic 3.3.
1. Complex Eigenvalues
The system x′ = y, y′ = −x has the matrix A = 01−10, with the trace 0 and the determinant 1.
λ² + 1 = 0the characteristic equationλ² = −1subtract 1λ₁ = i and λ₂ = −ithe eigenvaluesThe number i satisfies i² = −1. A complex number has the form α + iβ with real numbers α and β. The number α is its real part, and β is its imaginary part. The numbers α + iβ and α − iβ are called complex conjugates.
Complex eigenvalues. When T² − 4D is negative, the eigenvalues of a real matrix are the complex conjugates λ = α ± iβ, with α = T/2 and β = (√4D − T²)/2.
For example, the matrix A = −12−2−1 has T = −2 and D = 5.
λ² + 2λ + 5 = 0the characteristic equationλ = (−2 ± √4 − 20)/2the quadratic formulaλ = (−2 ± 4i)/2because √−16 = 4iλ = −1 ± 2idivide by 22. Complex Eigenvectors
The eigenvector is found in the same way as for a real eigenvalue. Its entries are complex numbers. For A = −12−2−1 and λ = −1 + 2i:
A − λI = −2i2−2−2isubtract −1 + 2i from the entries on the diagonal−2iv₁ + 2v₂ = 0the first rowv₂ = iv₁solve for v₂v = 1ichoose v₁ = 1The second row gives −2v₁ − 2iv₂ = 0. With v₂ = i it is −2 − 2i², which is −2 + 2, so the second row agrees.
A complex vector is split into a real part and an imaginary part, entry by entry.
1i = 10 + i01In general the eigenvector is written v = a + ib with two real vectors a and b. Here a = 10 and b = 01.
The eigenvector for the conjugate eigenvalue α − iβ is the conjugate vector a − ib. Only one of the two eigenvalues is needed.
3. Real Solutions
The function eλtv is a solution of x′ = Ax, but it has complex values. The matrix A is real. If a complex function x = p + iq with real functions p and q is a solution, then p′ + iq′ = Ap + iAq. The real parts of the two sides are equal, and the imaginary parts are equal. So p and q are each a real solution.
The real part and the imaginary part of eλtv are found with the formula of Euler, eiβt = cos βt + i sin βt.
eλtv = eαt(cos βt + i sin βt)(a + ib)the formula of Eulereλtv = eαt[a cos βt + ia sin βt + ib cos βt − b sin βt]multiply out, with i² = −1real part = eαt(a cos βt − b sin βt)the terms without iimaginary part = eαt(a sin βt + b cos βt)the terms with iThe general solution for complex eigenvalues. If A has the eigenvalue α + iβ with the eigenvector a + ib, the general solution of x′ = Ax is x = c₁eαt(a cos βt − b sin βt) + c₂eαt(a sin βt + b cos βt).
At t = 0 the solution is c₁a + c₂b, so the constants follow from c₁a + c₂b = x(0).
4. A Center
For x′ = y, y′ = −x, the eigenvalue is i, so α = 0 and β = 1. The first row of A − iI gives −iv₁ + v₂ = 0, so the eigenvector is again 1i, with a = 10 and b = 01.
x = c₁(10 cos t − 01 sin t) + c₂(10 sin t + 01 cos t)the general solutionx = c₁ cos t + c₂ sin tthe first entriesy = −c₁ sin t + c₂ cos tthe second entriesx² + y² = c₁² + c₂²square and add, with cos² t + sin² t = 1Each trajectory is a circle around the origin. The point moves around the circle with the period 2π and returns to its start. The origin is called a center.
For other matrices with α = 0, the closed trajectories are ellipses. The period is 2π/β for each of them.
5. A Spiral
For A = −12−2−1, the eigenvalue is −1 + 2i, so α = −1 and β = 2, with a = 10 and b = 01. Solve the system with x(0) = 3 and y(0) = 1.
x = e−t(c₁ cos 2t + c₂ sin 2t)the first entries of the general solutiony = e−t(−c₁ sin 2t + c₂ cos 2t)the second entriesc₁ = 3 and c₂ = 1from x(0) = 3 and y(0) = 1x = e−t(3 cos 2t + sin 2t)the solutiony = e−t(−3 sin 2t + cos 2t)the solutionx² + y² = 10e−2tsquare and addThe distance of the point from the origin is √10 times e−t. It decreases while the point turns around the origin. The trajectory is a spiral that approaches the origin. One turn takes the time 2π/β, which is π here. During one turn the distance decreases by the factor e−π, which is 0.043.
Spiral and center. For the eigenvalues α ± iβ, the origin is a stable spiral when α is negative, an unstable spiral when α is positive, and a center when α is 0. The time for one turn is 2π/β.
The real part α decides whether the solutions approach the origin, and the imaginary part β decides how fast they turn. This is the same rule as for the roots λ ± iμ of Topic 3.3.
Try it: spirals and centers
The matrix is αβ−βα, which has the eigenvalues α ± iβ. The sliders set α and β. Drag the point to choose the start of the blue trajectory. The arrow at the start shows the direction of the motion.
6. The Direction of the Turning
The eigenvalues do not show whether the point turns clockwise or counterclockwise. The direction follows from the velocity at one point. At the point 10 on the positive x axis, the velocity Ax is the first column of the matrix.
| Matrix | Velocity at the point (1, 0) | Direction |
|---|---|---|
| 01−10 | 0−1, which points down | Clockwise |
| −12−2−1 | −1−2, which points down and to the left | Clockwise |
| 1−221 | 12, which points up and to the right | Counterclockwise |
When the entry in the second row and the first column is negative, the point on the positive x axis moves down, and the turning is clockwise. When this entry is positive, the turning is counterclockwise.
7. An Example from Physics
The damped oscillator x″ + 2x′ + 5x = 0 of Topic 5.1 is the system x′ = v, v′ = −5x − 2v, with the matrix A = 01−5−2. The trace is −2, and the determinant is 5, so the eigenvalues are again −1 ± 2i.
−λv₁ + v₂ = 0the first row of A − λIv = 1λchoose v₁ = 1v = 1−1 + 2iwith λ = −1 + 2ia = 1−1 and b = 02the real part and the imaginary partThe first entries of the general solution give the position.
x = e−t(c₁ cos 2t + c₂ sin 2t)the first entries of a and b are 1 and 0v = e−t[(−c₁ + 2c₂) cos 2t + (−2c₁ − c₂) sin 2t]the second entries of a and b are −1 and 2The position is the solution that Topic 3.3 gives for the roots −1 ± 2i, and the second line is its derivative. The origin of the phase plane is a stable spiral: the block passes the equilibrium position many times, with a smaller amplitude each time. The entry −5 in the second row and the first column is negative, so the turning is clockwise, as for each system that comes from a position and its velocity.
Without damping, the equation x″ + 5x = 0 has the matrix 01−50, with the eigenvalues ±i√5. The origin is a center, and the trajectories are ellipses. A closed trajectory is a motion that repeats.
Common Mistakes
- Writing the solution with eαt and leaving out the sine and the cosine, or the reverse. The real part α goes in the exponential function, and the imaginary part β goes in the sine and the cosine.
- Using both complex eigenvalues to build four real solutions. One eigenvalue with its eigenvector gives both real solutions. The conjugate eigenvalue gives the same two.
- Making a sign error with i² = −1 when the complex solution is multiplied out. The term ib times i sin βt gives −b sin βt.
- Calling a center a spiral. For α = 0 the trajectories are closed curves, and they do not approach the origin.
- Reading the direction of the turning from the sign of β. The direction follows from the velocity at one point, for example at the point (1, 0).
Summary
| Item | Result |
|---|---|
| Complex eigenvalues | λ = α ± iβ, with α = T/2 and β = (√4D − T²)/2 |
| Eigenvector for α + iβ | v = a + ib, with real vectors a and b |
| First real solution | eαt(a cos βt − b sin βt) |
| Second real solution | eαt(a sin βt + b cos βt) |
| α negative | Stable spiral |
| α positive | Unstable spiral |
| α = 0 | Center, with closed trajectories |
| Time for one turn | 2π/β |
Practice
Work each problem on paper first. Then open the answer to check your work.
1. Find the eigenvalues of 2−51−2 and of 3−24−1.
For the first matrix, T = 0 and D = −4 + 5, which is 1. The equation λ² + 1 = 0 gives λ = ±i.
For the second matrix, T = 2 and D = −3 + 8, which is 5. The equation λ² − 2λ + 5 = 0 gives λ = 1 ± 2i.
2. Which kind of point is the origin for each matrix of Problem 1, and what is the direction of the turning?
For the first matrix, α = 0, so the origin is a center. The entry in the second row and the first column is 1, which is positive, so the turning is counterclockwise.
For the second matrix, α = 1, so the origin is an unstable spiral. The entry in the second row and the first column is 4, so the turning is counterclockwise.
3. Find an eigenvector of 3−24−1 for λ = 1 + 2i, and its real and imaginary parts.
A − λI = 2 − 2i−24−2 − 2isubtract 1 + 2i from the entries on the diagonal(2 − 2i)v₁ − 2v₂ = 0the first rowv₂ = (1 − i)v₁solve for v₂v = 11 − ichoose v₁ = 1a = 11 and b = 0−1the real part and the imaginary part
4. Write the general solution of x′ = Ax for A = 3−24−1.
With α = 1, β = 2, a = 11, and b = 0−1:
x = et(c₁ cos 2t + c₂ sin 2t)the first entriesy = et[(c₁ − c₂) cos 2t + (c₁ + c₂) sin 2t]the second entries, from cos 2t + sin 2t for c₁ and sin 2t − cos 2t for c₂
5. Solve x′ = −x + 2y, y′ = −2x − y with x(0) = 0 and y(0) = 2. How far from the origin is the point at t = 1?
x = e−t(c₁ cos 2t + c₂ sin 2t)the general solution of Part 5y = e−t(−c₁ sin 2t + c₂ cos 2t)the general solution of Part 5c₁ = 0 and c₂ = 2from x(0) = 0 and y(0) = 2x = 2e−t sin 2tthe solutiony = 2e−t cos 2tthe solution√x² + y² = 2e−tthe distance from the origin
At t = 1 the distance is 2e−1, which is 0.736.
6. A block on a spring satisfies x″ + 4x′ + 13x = 0. Write the system and its matrix, find the eigenvalues, and find the time for one turn of the trajectory.
The system is x′ = v, v′ = −13x − 4v, with the matrix 01−13−4.
λ² + 4λ + 13 = 0the characteristic equation, with T = −4 and D = 13λ = (−4 ± √16 − 52)/2the quadratic formulaλ = −2 ± 3ibecause √−36 = 6i2π/β = 2π/3the time for one turn, which is 2.09
The origin is a stable spiral.
Python Practice
Step 1. Complex eigenvalues
Python writes the number i as 1j, so 2i is 2j. The instruction np.linalg.eigvals returns complex eigenvalues when the matrix has them. The code below uses the matrix of Part 1.
Python
The eigenvalues are −1 + 2i and −1 − 2i. Now find the eigenvalues of the matrix of the damped oscillator in Part 7, with the rows 0, 1 and −5, −2. The eigenvalues should again be −1 ± 2i.
Python
Step 2. Check a complex eigenvector
The code below checks the eigenvector with the entries 1 and i for the eigenvalue −1 + 2i of the matrix of Part 2. The two printed vectors should be equal.
Python
Both vectors have the entries −1 + 2i and −2 − i. Now check the eigenvector with the entries 1 and 1 − i for the eigenvalue 1 + 2i of the matrix of Practice 3, with the rows 3, −2 and 4, −1. Both vectors should have the entries 1 + 2i and 3 + i.
Python
Step 3. The real solution from the complex solution
The instructions np.real and np.imag give the real part and the imaginary part. The code below calculates the complex solution eλtv at t = 1 for the matrix of Part 5, and then the combination with c₁ = 3 and c₂ = 1 of its real part and its imaginary part. The last line is the formula of Part 5.
Python
Both lines show −0.1248 and −1.1566. Now calculate the solution of Practice 5, which has c₁ = 0 and c₂ = 2, at t = 1. The values should be 0.669 and −0.306.
Python
Step 4. Check with the method of Euler
The code below solves the system of Part 5 with the method of Euler from the start with the entries 3 and 1 until t = 1, with 100000 small steps. The result should be close to the values of Step 3.
Python
The values are −0.1248 and −1.1566, and the distance from the origin is 1.163, which is √10 times e−1. Now solve the center x′ = y, y′ = −x from the same start until t = 1. The distance from the origin should stay √10, which is 3.162.
Python
Step 5. One turn of a spiral
For the eigenvalues α ± iβ, one turn takes the time 2π/β, and the distance from the origin changes by the factor e2πα/β during one turn. The code below calculates both numbers for the spiral of Part 5.
Python
One turn takes the time 3.14, and the distance decreases by the factor 0.043. Now calculate both numbers for the block of Practice 6, which has the eigenvalues −2 ± 3i. The time should be 2.09, and the factor should be 0.015.
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. The eigenvalues of 1−411 are α ± iβ with β positive. Find α and β.
λ² − 2λ + 5 = 0the characteristic equation, with T = 2 and D = 1 + 4λ = (2 ± √4 − 20)/2the quadratic formulaλ = 1 ± 2ibecause √−16 = 4i
2. The eigenvalues of a matrix are −3 ± 4i. Which kind of point is the origin?
The real part −3 is negative, so the solutions contain the factor e−3t and approach the origin. The imaginary part 4 makes them turn. The origin is a stable spiral.
3. A matrix has the eigenvalue 2i with the eigenvector a + ib. Which function is a real solution of x′ = Ax?
With α = 0 and β = 2, the real part of the complex solution is a cos 2t − b sin 2t. The factor eαt is 1.
4. A system has the eigenvalues −1 ± 4i. How much time does one turn of a trajectory take? Round to two decimal places.
2π/β = 2π/4the time for one turn, with β = 42π/β = 1.57the value of π/2
5. In which direction do the trajectories of x′ = 2y, y′ = −8x turn?
At the point (1, 0), the velocity has the components x′ = 0 and y′ = −8. The point on the positive x axis moves down, so the turning is clockwise.