SubsectionGeneral Solutions for Complex Eigenvalues
As we have seen previously, a matrix may very well have complex eigenvalues even if all the entries are real. However, this may seem concerning going forward into solutions to differential equations that require these complex numbers in them. We will see in this section that we can still write solutions this way, but we no longer have straight-line solutions. Take, for example,
The equations \(i v_1 + v_2 = 0\) and \(-v_1 + iv_2 = 0\) are multiples of each other. This may be trickier to spot than the real version, but that is because they are complex multiples of each other. If we multiply the first equation by \(i\text{,}\) we get exactly the second one. So we only need to consider one of them. After picking \(v_2 = 1\text{,}\) for example, we have an eigenvector \(\vec{v} = \left[ \begin{smallmatrix} i \\ 1 \end{smallmatrix} \right]\text{.}\) In similar fashion we find that \(\left[ \begin{smallmatrix} -i \\ 1 \end{smallmatrix} \right]\) is an eigenvector corresponding to the eigenvalue \(1+i\text{.}\)
We would then need to look for complex values \(c_1\) and \(c_2\) to solve any initial conditions. It is perhaps not completely clear that we get a real solution. After solving for \(c_1\) and \(c_2\text{,}\) we could use TheoremΒ 2.2.2 and do the whole song and dance we did before, but we will not. We will apply the formula in a smarter way first to find independent real solutions.
In this case, we only needed one of the two eigenvectors to get the general solution, which happens because the complex eigenvalues and eigenvectors always come in conjugate pairs. First, a small detour. The real part of a complex number \(z\) can be computed as \(\frac{z + \bar{z}}{2}\text{,}\) where the bar above \(z\) means \(\overline{a+ib} = a -ib\text{.}\) This operation is called the complex conjugate. If \(a\) is a real number, then \(\bar{a} = a\text{.}\) Similarly we bar whole vectors or matrices by taking the complex conjugate of every entry. Suppose a matrix \(P\) is real. Then \(\overline{P} = P\text{,}\) and so \(\overline{P\vec{x}} = \overline{P} \,
\overline{\vec{x}} = P \overline{\vec{x}}\text{.}\) Also the complex conjugate of 0 is still 0, therefore,
In other words, if \(\lambda = a+ib\) is an eigenvalue, then so is \(\bar{\lambda} = a-ib\text{.}\) And if \(\vec{v}\) is an eigenvector corresponding to the eigenvalue \(\lambda\text{,}\) then \(\overline{\vec{v}}\) is an eigenvector corresponding to the eigenvalue \(\bar{\lambda}\text{.}\)
is also a real-valued solution. It turns out that \(\vec{x}_3\) and \(\vec{x}_4\) are linearly independent. We will use TheoremΒ 2.2.2 to separate out the real and imaginary part.
\begin{equation*}
\vec{x}_1 =
\begin{bmatrix} i \\ 1 \end{bmatrix} e^{(1-i)t}
=
\begin{bmatrix} i \\ 1 \end{bmatrix} \left( e^t \cos t - i e^t \sin t \right)
=
\begin{bmatrix}
i e^t \cos t + e^t \sin t \\
e^t \cos t - i e^t \sin t
\end{bmatrix}
=
\begin{bmatrix}
e^t \sin t \\
e^t \cos t
\end{bmatrix}
+ i
\begin{bmatrix}
e^t \cos t \\
- e^t \sin t
\end{bmatrix}
.
\end{equation*}
Then
\begin{equation*}
\operatorname{Re} \vec{x}_1 =
\begin{bmatrix}
e^t \sin t \\
e^t \cos t
\end{bmatrix} ,
\qquad \text{and} \qquad
\operatorname{Im} \vec{x}_1 =
\begin{bmatrix}
e^t \cos t \\
- e^t \sin t
\end{bmatrix} ,
\end{equation*}
are the two real-valued linearly independent solutions we seek.
This gives that we can write the general solution to this problem as
\begin{equation*}
\vec{x}
=
c_1
\begin{bmatrix}
e^t \sin t \\
e^t \cos t
\end{bmatrix}
+ c_2
\begin{bmatrix}
e^t \cos t \\
-e^t \sin t
\end{bmatrix}
=
\begin{bmatrix}
c_1 e^t \sin t + c_2 e^t \cos t \\
c_1 e^t \cos t - c_2 e^t \sin t
\end{bmatrix} .
\end{equation*}
This solution is real-valued for real \(c_1\) and \(c_2\text{.}\) We now solve for any initial conditions we may have. Notice that the \(i\) has been dropped from the part of the process where we split the complex solution into real and imaginary parts. The point is that the real and imaginary parts of the solution are independently solutions to the equation, and so we can use them to form our basis of solutions with constants \(c_1\) and \(c_2\) in front of them. We want everything to be real, and this process allows us to do it.
Let \(P\) be a real-valued constant matrix. If \(P\) has a complex eigenvalue \(a+ib\) and a corresponding eigenvector \(\vec{v}\text{,}\) then \(P\) also has a complex eigenvalue \(a-ib\) with a corresponding eigenvector \(\overline{\vec{v}}\text{.}\) Furthermore, \({\vec{x}}' = P\vec{x}\) has two linearly independent real-valued solutions
The main point here is that the real and imaginary parts of these complex solutions are the real-valued independent solutions that we seek. Compare this to TheoremΒ 2.2.7 in , where we saw that the same idea worked for second order equation with complex roots.
For each pair of complex eigenvalues \(a+ib\) and \(a-ib\text{,}\) we get two real-valued linearly independent solutions. We then go on to the next eigenvalue, which is either a real eigenvalue or another complex eigenvalue pair. If we have \(n\) distinct eigenvalues (real or complex), then we end up with \(n\) linearly independent solutions. If we had only two equations (\(n=2\)) as in the example above, then once we found two solutions we are finished, and our general solution is
Thus, we are in the complex roots case, and can work from there. We need to find the complex eigenvector for one of these eigenvalues and then split into real and imaginary parts to get the general solution.
and these equations donβt appear to be redundant. However, this is because they are complex multiples of each other, not just real multiples. To see this, we can multiply the first equation by the complex conjugate of the first coefficient. The idea is that if we do so, this first coefficient will be real, and then we can compare it to the second equation. If we multiply the first equation by \(2 + 2i\text{,}\) since \((2+2i)(2-2i) = 8\text{,}\) it becomes
and this is \(-4\) times the second equation above. Therefore, they are redundant, and we can just pick one of them in order to find possible values of \(v_1\) and \(v_2\text{.}\) If we divide this newest equation by \(8\text{,}\) it becomes
Based on this equation, we can pick \(v_2 = -1\) and \(v_1 = 1+i\text{.}\) Therefore, the eigenvector for \(\lambda = -1 + 2i\) is \(\left[ \begin{smallmatrix} 1+i \\ -1 \end{smallmatrix} \right]\text{.}\) This means that a complex-valued solution to this differential equation is
Work out the eigenvector and general solution from eigenvalue \(\lambda = -1 - 2i\) and verify that it is an equivalent general solution to the one above.
The two equations that we get from here is \(c_1 + c_2 = 1\) and \(-c_1 = -2\text{,}\) so that \(c_1 = 2\) and \(c_2 = -1\text{.}\) Therefore, the solution to the initial value problem is
Similarly to the real eigenvalue situation, we have three different cases for the phase portrait when the eigenvalues of a 2x2 matrix are complex. As metioned before, our basis solutions that we are using to form the general solution are no longer just exponential terms. They involve sines and cosines, and so are not straight lines anymore. Therefore, these solutions will not have straight lines in them, but we can still uses these basis solutions to help determine and describe the overall behavior of the solutions to the system for a variety of initial conditions.
Case 1. Suppose the eigenvalues are purely imaginary. That is, suppose the eigenvalues are \(\pm ib\text{.}\) For example, let \(P =
\left[ \begin{smallmatrix} 0 & 1 \\ -4 & 0 \end{smallmatrix} \right]\text{.}\) The eigenvalues turn out to be \(\pm 2i\) and eigenvectors are \(\left[ \begin{smallmatrix} 1 \\ 2i \end{smallmatrix} \right]\) and \(\left[ \begin{smallmatrix} 1 \\ -2i \end{smallmatrix} \right]\text{.}\) Consider the eigenvalue \(2i\) and its eigenvector \(\left[ \begin{smallmatrix} 1 \\ 2i \end{smallmatrix} \right]\text{.}\) The real and imaginary parts of \(\vec{v} e^{2it}\) are
We can take any linear combination of them to get other solutions, which one we take depends on the initial conditions. Now note that the real part is a parametric equation for an ellipse. Same with the imaginary part and in fact any linear combination of the two. This is what happens in general when the eigenvalues are purely imaginary. So when the eigenvalues are purely imaginary, we get ellipses for the solutions. This type of picture is sometimes called a center. See FigureΒ 4.5.5.
Case 2. Now suppose the complex eigenvalues have a positive real part. That is, suppose the eigenvalues are \(a \pm ib\) for some \(a > 0\text{.}\) For example, let \(P =
\left[ \begin{smallmatrix} 1 & 1 \\ -4 & 1 \end{smallmatrix} \right]\text{.}\) The eigenvalues turn out to be \(1\pm 2i\) and eigenvectors are \(\left[ \begin{smallmatrix} 1 \\ 2i \end{smallmatrix} \right]\) and \(\left[ \begin{smallmatrix} 1 \\ -2i \end{smallmatrix} \right]\text{.}\) We take \(1 + 2i\) and its eigenvector \(\left[ \begin{smallmatrix} 1 \\ 2i \end{smallmatrix} \right]\) and find the real and imaginary parts of \(\vec{v} e^{(1+2i)t}\) are
Note the \(e^t\) in front of the solutions. The solutions grow in magnitude while spinning around the origin. Hence we get a spiral source. See FigureΒ 4.5.6.
Case 3. Finally suppose the complex eigenvalues have a negative real part. That is, suppose the eigenvalues are \(-a \pm ib\) for some \(a > 0\text{.}\) For example, let \(P =
\left[ \begin{smallmatrix} -1 & -1 \\ 4 & -1 \end{smallmatrix} \right]\text{.}\) The eigenvalues turn out to be \(-1\pm 2i\) and eigenvectors are \(\left[ \begin{smallmatrix} 1 \\ -2i \end{smallmatrix} \right]\) and \(\left[ \begin{smallmatrix} 1 \\ 2i \end{smallmatrix} \right]\text{.}\) We take \(-1 - 2i\) and its eigenvector \(\left[ \begin{smallmatrix} 1 \\ 2i \end{smallmatrix} \right]\) and find the real and imaginary parts of \(\vec{v} e^{(-1-2i)t}\) are
Note the \(e^{-t}\) in front of the solutions. The solutions shrink in magnitude while spinning around the origin. Hence we get a spiral sink. See FigureΒ 4.5.7.
There is one last important point to mention about drawing phase portraits, and thatβs how to determine which way the spiral is going to rotate. Whether the phase portrait is a center, spiral source, or spiral sink, it can rotate either clockwise or counterclockwise. There are two main ways that this can be determined. The first is using the real-valued solutions of the equation directly. We want to determine a few values of the individual solution curves to get an idea of which way they are rotating.
We want to pick some nice points on these curves to plot. \(t=0\) is always a nice point to start with, and we see that the \(C_1\) term of our general solution will be at the point \(\left[\begin{smallmatrix} 1 \\ 0 \end{smallmatrix}\right]\text{.}\) That point is nice because it makes cosine equal to 1 and sine equal to zero. The next \(t\) value we want to choose is the first one that makes the sine terms equal to 1 and the cosines equal to zero. Because we have a \(2t\) in the trigonometric functions, the point we want to look at is \(t = \frac{\pi}{4}\text{.}\) At this point, the \(C_1\) term of our solution is at \(e^{-\pi/4}\left[\begin{smallmatrix} 0 \\ 2 \end{smallmatrix}\right]\text{,}\) which will be in the direction of \(\left[\begin{smallmatrix} 0 \\ 2 \end{smallmatrix}\right]\text{,}\) but closer to the origin. So, the initial point is on the positive x axis, and the second point is on the positive \(y\) axis. Therefore, this solution is spiraling in a counter-clockwise direction. The reason that this works is because the first time that \(\cos(2t)\) is zero is at \(t = \frac{\pi}{4}\text{,}\) so it has to go directly to the positive y-axis in the counter-clockwise direction. You can also check the \(C_2\) term, and see that it is also going in the same direction.
The other way to determine the directionality is by looking at the bottom-left entry of the original matrix. For this case, that entry is a 4, which is positive. Therefore, the solution rotates in the βpositiveβ direction, which is counterclockwise. The reason that this works is because we can consider the point \(\left[\begin{smallmatrix} 1 \\ 0 \end{smallmatrix}\right]\) and see which way the graph is moving at that point. The rate of change (or the direction of motion) is given by the derivative, which is our differential equation. If we plug in the point \(\left[\begin{smallmatrix} 1 \\ 0 \end{smallmatrix}\right]\text{,}\) the direction of motion is given by the first column of the matrix. Therefore, starting along the \(x\)-axis, the y coordinate is changing at the rate of the bottom left entry of the matrix. So, if that value is positive, the \(y\) coordinate is increasing, which means the solution is moving in the counter-clockwise direction. If that value was negative, the \(y\) coordinate is decreasing, and so the solution is moving in the clockwise direction.
Both of these methods work equally well to determine which way the solution is going, and theyβll give the same answer every time. The direction of rotation is an important part of properly characterizing and drawing these phase portraits. This can be verified for the system drawn in FigureΒ 4.5.6 as well.
Find the general solution of \(x_1' = x_1 -2 x_2\text{,}\)\(x_2' = 2 x_1 + x_2\) using the eigenvalue method. Do not use complex exponentials in your solution.
A \(2\times 2\) matrix \(A\) has complex eigenvector \(\displaystyle \vec{v}=\begin{bmatrix} 1\\ i \end{bmatrix}\) corresponding to eigenvalue \(\lambda=-1+3i\text{.}\)
Figure4.5.12.Phase portrait sketch for the system \(\begin{bmatrix} x' \\ y' \end{bmatrix} = \begin{bmatrix} 1& -2 \\ 5 & -1 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix}.\)