Skip to main content
Logo image

Section 3.5 Two-dimensional systems and their vector fields

Note: 1 lecture, part of §6.2 in [EP], parts of §7.5 and §7.6 in [BD]
We take a moment to discuss constant-coefficient linear homogeneous systems in the plane. Much intuition can be obtained by studying this simple case. We use coordinates \((x,y)\) for the plane as usual, and suppose \(P = \left[ \begin{smallmatrix} a & b \\ c & d \end{smallmatrix} \right]\) is a \(2 \times 2\) matrix. Consider the system
\begin{equation} \begin{bmatrix} x \\ y \end{bmatrix} ' = P \begin{bmatrix} x \\ y \end{bmatrix} \qquad \text{or} \qquad \begin{bmatrix} x \\ y \end{bmatrix} ' = \begin{bmatrix} a & b \\ c & d \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} .\tag{3.3} \end{equation}
The system is autonomous (compare this section to Section 1.6), and so we draw a vector field (see the end of Section 3.1). We will be able to visually understand this vectorfield and the solutions of the ODE in terms of the eigenvalues and eigenvectors of the matrix \(P\text{.}\) For this section, we assume that \(P\) has two distinct eigenvalues and two corresponding eigenvectors. We will also assume that \(P\) is nonsingular, that is, neither eigenvalue is zero.
Case 1. Suppose that the eigenvalues of \(P\) are real and positive. We find two corresponding eigenvectors and plot them in the plane. For example, take the matrix \(\left[ \begin{smallmatrix} 1 & 1 \\ 0 & 2 \end{smallmatrix} \right]\text{.}\) The eigenvalues are 1 and 2 and corresponding eigenvectors are \(\left[ \begin{smallmatrix} 1 \\ 0 \end{smallmatrix} \right]\) and \(\left[ \begin{smallmatrix} 1 \\ 1 \end{smallmatrix} \right]\text{.}\) See Figure 3.4.

A diagram of the xy-plane with two lines representing the vectors (1,0) and (1,1) by showing two lines from the origin to those respective points.
Figure 3.4. Eigenvectors of \(P\text{.}\)

Let \((x,y)\) be a point on the line determined by an eigenvector \(\vec{v}\) for an eigenvalue \(\lambda\text{.}\) That is, \(\left[ \begin{smallmatrix} x \\ y \end{smallmatrix} \right] = \alpha \vec{v}\) for some scalar \(\alpha\text{.}\) Then
\begin{equation} \begin{bmatrix} x \\ y \end{bmatrix} ' = P \begin{bmatrix} x \\ y \end{bmatrix} = P ( \alpha \vec{v} ) = \alpha ( P \vec{v} ) = \alpha \lambda \vec{v} . \end{equation}
The derivative is a multiple of \(\vec{v}\) and hence points along the line determined by \(\vec{v}\text{.}\) As \(\lambda > 0\text{,}\) the derivative points in the direction of \(\vec{v}\) when \(\alpha\) is positive and in the opposite direction when \(\alpha\) is negative. We draw the lines determined by the eigenvectors and arrows on the lines to indicate the directions. See Figure 3.5.
We fill in the rest of the arrows for the vector field, and we draw a few solutions. See Figure 3.6. The picture looks like a source with arrows coming out from the origin. Hence we call this type of picture a source or sometimes an unstable node.

A diagram of the xy-plane with two red arrows representing two vectors (1,0) and (1,1), now with arrows pointing away from the origin and also black lines along the two arrows, one is the line x equals y and the other is the x-axis.
Figure 3.5. Eigenvectors of \(P\) with directions.

A diagram as the previous figure, but with arrows of the direction field added and several solution trajectories plotted. All the arrows of the direction field point away from the origin and the arrows are longer the further away from the origin that we get. The solution trajectories that are along the two lines given by the eigenvectors are again straight lines. The solution trajectories in other directions from the origin curve somewhat instead of simply following a straight line as if they want to eventually point in the same direction as the diagonal line.
Figure 3.6. Example source vector field with eigenvectors and solutions.

Case 2. Suppose both eigenvalues are negative. For example, take the negation of the matrix from case 1, \(\left[ \begin{smallmatrix} -1 & -1 \\ 0 & -2 \end{smallmatrix} \right]\text{.}\) The eigenvalues are \(-1\) and \(-2\) and corresponding eigenvectors are the same, \(\left[ \begin{smallmatrix} 1 \\ 0 \end{smallmatrix} \right]\) and \(\left[ \begin{smallmatrix} 1 \\ 1 \end{smallmatrix} \right]\text{.}\) The calculation and the picture are almost the same. The difference is that the eigenvalues are negative and arrows are reversed. We get the picture in Figure 3.7. We call this type of picture a sink or a stable node.

A diagram very similar to the last figure but now all the arrows simply point towards the origin rather than away from it.
Figure 3.7. Example sink vector field with eigenvectors and solutions.

A diagram of a saddle, here one of the black lines is still the x-axis, but the other line is a line with slope minus 3 through the origin. The arrow on the x-axis representing the eigenvector (1,0) points to the right, while the arrow representing the eigenvector (1, minus 3) now points towards the origin as the eigenvalue is negative. The arrows of the direction field in each 4 of the sectors between the two lines first go along the line with slope minus 3 towards the origin, and once the arrows get close enough to the x-axis they start going away from the origin in the direction of the x-axis. Several trajectories that follow these arrows are shown.
Figure 3.8. Example saddle vector field with eigenvectors and solutions.

Case 3. Suppose one eigenvalue is positive and one is negative. For example, consider \(P = \left[ \begin{smallmatrix} 1 & 1 \\ 0 & -2 \end{smallmatrix} \right]\text{.}\) The eigenvalues are 1 and \(-2\) and corresponding eigenvectors are \(\left[ \begin{smallmatrix} 1 \\ 0 \end{smallmatrix} \right]\) and \(\left[ \begin{smallmatrix} 1 \\ -3 \end{smallmatrix} \right]\text{.}\) We reverse the arrows on the line corresponding to the negative eigenvalue and we obtain the picture in Figure 3.8. We call this picture a saddle point.
For the next three cases, we will assume the eigenvalues are complex. In this case the eigenvectors are also complex and we cannot just plot them in the plane.
Case 4. Suppose the eigenvalues are purely imaginary, that is, \(\pm ib\text{.}\) For example, let \(P = \left[ \begin{smallmatrix} 0 & 1 \\ -4 & 0 \end{smallmatrix} \right]\text{.}\) The eigenvalues are \(\pm 2i\) and corresponding 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
\begin{equation} \operatorname{Re} \begin{bmatrix} 1 \\ 2i \end{bmatrix} e^{2it} = \begin{bmatrix} \cos (2t) \\ -2 \sin (2t) \end{bmatrix} , \qquad \operatorname{Im} \begin{bmatrix} 1 \\ 2i \end{bmatrix} e^{2it} = \begin{bmatrix} \sin (2t) \\ 2 \cos (2t) \end{bmatrix} . \end{equation}
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 3.9.

A direction field is shown where the arrows point in a way where following them would lead us along an ellipse that is taller than wider and in a clockwise direction. The arrows are longer the further away from the origin we get. Several such ellipses representing the trajectories are shown.
Figure 3.9. Example center vector field.

A direction field is shown where the arrows spiral out of the origin in a clockwise direction. The arrows get longer the further away from the origin we get. Several trajectories that are spirals out of the origin are shown.
Figure 3.10. Example spiral source vector field.

Case 5. 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
\begin{equation} \operatorname{Re} \begin{bmatrix} 1 \\ 2i \end{bmatrix} e^{(1+2i)t} = e^t \begin{bmatrix} \cos (2t) \\ -2 \sin (2t) \end{bmatrix} , \qquad \operatorname{Im} \begin{bmatrix} 1 \\ 2i \end{bmatrix} e^{(1+2i)t} = e^t \begin{bmatrix} \sin (2t) \\ 2 \cos (2t) \end{bmatrix} . \end{equation}
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 3.10.
Case 6. 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
\begin{equation} \operatorname{Re} \begin{bmatrix} 1 \\ 2i \end{bmatrix} e^{(-1-2i)t} = e^{-t} \begin{bmatrix} \cos (2t) \\ 2 \sin (2t) \end{bmatrix} , \qquad \operatorname{Im} \begin{bmatrix} 1 \\ 2i \end{bmatrix} e^{(-1-2i)t} = e^{-t} \begin{bmatrix} -\sin (2t) \\ 2 \cos (2t) \end{bmatrix} . \end{equation}
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 3.11.

A diagram of a direction field much like the previous figure but reversed. The arrows spiral in a counterclockwise direction into the origin. Several such spiral trajectories are shown.
Figure 3.11. Example spiral sink vector field.

We summarize the behavior of linear homogeneous two-dimensional systems given by a nonsingular matrix in Table 3.1. Systems where one of the eigenvalues is zero (the matrix is singular) come up in practice from time to time, see Example 3.1.2, and the pictures are somewhat different (simpler in a way). See the exercises. When the eigenvalues are real and repeated, the analysis is a little bit more difficult and we have not yet covered how to solve such systems, but the idea is roughly the same—a repeated positive eigenvalue means a source and a repeated negative eigenvalue means a sink.

Table 3.1. Summary of behavior of linear homogeneous two-dimensional systems.
Eigenvalues   Behavior
real and both positive   source / unstable node
real and both negative   sink / stable node
real and opposite signs   saddle
purely imaginary   center point / ellipses
complex with positive real part   spiral source
complex with negative real part   spiral sink

Exercises Exercises

3.5.1.

Take the equation \(m x'' + c x' + kx = 0\text{,}\) with \(m > 0\text{,}\) \(c \geq 0\text{,}\) \(k > 0\) for the mass-spring system.
  1. Convert this to a system of first-order equations.
  2. Classify for what \(m, c, k\) do you get which behavior.
  3. Explain from physical intuition why you do not get all the different kinds of behavior here?

3.5.2.

What happens in the case when \(P = \left[ \begin{smallmatrix} 1 & 1 \\ 0 & 1 \end{smallmatrix} \right]\text{?}\) In this case the eigenvalue is repeated and there is only one independent eigenvector. Draw and describe the vector field.

3.5.3.

What happens in the case when \(P = \left[ \begin{smallmatrix} 1 & 1 \\ 1 & 1 \end{smallmatrix} \right]\text{?}\) Draw the vector field. Does this look like any of the pictures we have drawn?

3.5.4.

Which behaviors are possible if \(P\) is diagonal, that is, \(P = \left[ \begin{smallmatrix} a & 0 \\ 0 & b \end{smallmatrix} \right]\text{?}\) You can assume that \(a\) and \(b\) are not zero.

3.5.5.

Take the system from Example 3.1.2, \(x_1'=\frac{r}{V}(x_2-x_1)\text{,}\) \(x_2'=\frac{r}{V}(x_1-x_2)\text{.}\) As we said, one of the eigenvalues is zero. What is the other eigenvalue, how does the picture look like, and what happens when \(t\) goes to infinity.

3.5.101.

Describe the behavior of the following systems without solving:
  1. \(x' = x + y\text{,}\)     \(y' = x-y\text{.}\)
  2. \(x_1' = x_1 + x_2\text{,}\)     \(x_2' = 2 x_2\text{.}\)
  3. \(x_1' = -2x_2\text{,}\)     \(x_2' = 2 x_1\text{.}\)
  4. \(x' = x + 3y\text{,}\)     \(y' = -2x-4y\text{.}\)
  5. \(x' = x - 4y\text{,}\)     \(y' = -4x+y\text{.}\)
Answer.
a) Two eigenvalues: \(\pm \sqrt{2}\) so the behavior is a saddle.     b) Two eigenvalues: \(1\) and \(2\text{,}\) so the behavior is a source.     c) Two eigenvalues: \(\pm 2i\text{,}\) so the behavior is a center (ellipses).     d) Two eigenvalues: \(-1\) and \(-2\text{,}\) so the behavior is a sink.     e) Two eigenvalues: \(5\) and \(-3\text{,}\) so the behavior is a saddle.

3.5.102.

Suppose that \(\vec{x}\,' = P \vec{x}\) where \(P\) is a 2 by 2 matrix with eigenvalues \(2\pm i\text{.}\) Describe the behavior.
Answer.
Spiral source.

3.5.103.

Take \(\left[ \begin{smallmatrix} x \\ y \end{smallmatrix}\right] ' = \left[ \begin{smallmatrix} 0 & 1 \\ 0 & 0 \end{smallmatrix}\right] \left[ \begin{smallmatrix} x \\ y \end{smallmatrix}\right]\text{.}\) Draw the vector field and describe the behavior. Is it one of the behaviors that we have seen before?
Answer.
A direction field diagram where all arrows are horizontal. The arrows above the x-axis go right and arrows below the x-axis go left. The arrows are longer the further away from the x-axis that we get.
The solution does not move anywhere if \(y = 0\text{.}\) When \(y\) is positive, the solution moves (with constant speed) in the positive \(x\) direction. When \(y\) is negative, the solution moves (with constant speed) in the negative \(x\) direction. It is not one of the behaviors we saw.
Note that the matrix has a double eigenvalue 0 and the general solution is \(x = C_1 t + C_2\) and \(y = C_1\text{,}\) which agrees with the description above.
For a higher quality printout use the PDF version: https://www.jirka.org/diffyqs/diffyqs.pdf or https://jirilebl.github.io/diffyqs/diffyqs.pdf