Skip to main content

Coordinated Differential Equations

Section 5.2 Planar Systems

A first-order linear system of n equations and n variables is any system that can be written in the form
dx1dt=a11(t)x1(t)++a1n(t)xn(t)+f1(t),dx2dt=a21(t)x1(t)++a2n(t)xn(t)+f2(t),dxndt=an1(t)x1(t)++ann(t)xn(t)+fn(t).
If each of the coefficients is constant and the functions fi vanish, then we have a homogeneous first-order linear system with constant coefficients,
dx1dt=a11x1++a1nxndx2dt=a21x1++a2nxn,dxndt=an1x1++annxn.
We will concentrate on 2×2 homogeneous first-order linear systems or planar systems for the time being,
(5.2.1)dxdt=ax+by,(5.2.2)dydt=cx+dy.

Subsection 5.2.1 Planar Systems and 2×2 Matrices

We will use linear systems of differential equations to illustrate how we can use systems of differential equations to model how subtances flow back and forth between two or more compartments. Suppose that we have two tanks (A and B) between which a mixture of brine flows (Figure 5.2.1). Tank A contains 300 liters of water in which 100 kilograms of salt has been dissolved and Tank B contains 300 liters of pure water. Fresh water is pumped into Tank A at the rate of 500 liters per hour, and brine is pumped into Tank B from Tank A at the rate of 900 liters per hour. Brine is also pumped back into Tank A from Tank B at the rate of 400 liters per hour, and an additional 500 liters of brine per hour is drained from Tank B. All brine mixtures are well-stirred. If we let x=x(t) be the amount of salt in Tank A at time t and y=y(t) be the amount of salt in Tank B at time t, then we know that
x(0)=100y(0)=0
We know that the salt concentrations in the two tanks are x/300 kilograms per liter and y/300 kilograms per liter. Thus, we can describe the rate of change in each tank with a differential equation,
dxdt=900x300+400y300=3x+43y,dydt=900x300400y300500y300=3x3y.
described in detail following the image
two three hundred liter tanks connected with two pipes flowing between the first and second tanks with the first tank having an input pipe and the second having a drain pipe
Figure 5.2.1. Mixing example with two tanks
Matrix notation gives us a convenient way of representing the 2×2 system (5.2.1)(5.2.1). If we let
A=(abcd)andx(t)=(x(t)y(t)),
then we can rewrite our system as
(x(t)y(t))=(ax(t)+by(t)cx(t)+dy(t))=(abcd)(x(t)y(t)).
In other words, we can write our system as
dxdt=Ax,
where
x=dxdt=(x(t)y(t)).

Subsection 5.2.2 Systems of Differential Equations

A linear planar system
x=ax+byy=cx+dy
has an equilibrium solution at (x0,y0) if
ax0+by0=0,cx0+dy0=0.
The following proposition tells us exactly where to find the equilibrium solutions of a linear system with constant coefficients.
Now let us attack the problem of finding all of the solutions of the system x=Ax. Suppose that we can find a nonzero vector v0 such that Av0=λv0 for some real number λ. In this case, the matrix A just sends the vector v0 to a vector on the same line through the origin, λv0. This is a very special case of course; however, we claim that
x(t)=eλtv0
is a solution for our linear system if we can find such a vector. To see that this is indeed the case, we compute
x(t)=λeλtv0=eλt(λv0)=eλt(Av0)=A(eλtv0)=Ax(t).
In other words, the key to solving a linear system x=Ax is to be able to find eigenvalues and eigenvectors for the matrix A. We are now ready to state the results of our discussion in a theorem.
We say that the solution x(t)=eλtv0 is a straight-line solution. The vector eλtv0 lies on the same line for each value of t. Note that if v0 is an eigenvector for A, then any nonzero multiple of v0 is also an eigenvector for A,
A(αv0)=αAv0=α(λv0)=λ(αv0).

Example 5.2.4.

Consider the system
x=x+3yy=xy.
We can rewrite this system in matrix form as x=Ax, where
A=(1311).
The matrix A has an eigenvector u=(3,1) with associated eigenvalue λ=2, since
Au=(1311)(31)=(62)=2(31)=λu.
Similarly, v=(1,1) is an eigenvector for A with associated eigenvalue μ=2. Thus, we have two solutions for our system: the equilibrium solution at the origin, the solution
x1(t)=e2t(31),
and the solution
x2(t)=e2t(11).
Since
ddt(c1x1(t)+c2x2(t))=c1ddtx1(t)+c2ddtx2(t)=c1Ax1(t)+c2Ax2(t)=A(c1x1(t)+c2x2(t)),
any linear combination of solutions to a linear system is also a solution. Thus, a general solution to our system is
x(t)=c1e2t(31)+c2e2t(11)
or
x(t)=3c1e2t+c2e2ty(t)=c1e2tc2e2t.
If we are given initial conditions, say x(0)=0 and y(0)=1, then we can determine c1 and c2 by solving the linear system of equations
3c1+c2=0c1c2=1
to get c1=1/4 and c2=3/4. Thus, the solution to our initial value problem is
x(t)=34e2t34e2ty(t)=14e2t+34e2t.

Example 5.2.5.

Solve the initial value problem
x=5xyy=7x+yx(0)=0y(0)=32
We can rewrite the system as x=Ax, where
A=(5171)
The characteristic polynomial is (5λ)(1λ)(1)(7)=λ2+4λ12, with zeros (and therefore eigenvalues) λ=6,2. Then
A(6)I=(5+6177)=(1177)
So an eigenvector associated to λ=6 is v=(11). Analogously,
A2I=(521712)=(7171)
So an eigenvector associated to λ=2 is (17).
Therefore, the full set of solutions to the differential equation (ignoring initial value conditions) is
c1e6t(11)+c2e2t(17)
We want x(0)=0,y(0)=32. We plug in t=0 into this equation, setting the top to zero and the bottom to 32, and arrive at the system
c1c2=0c1+7c2=32
Solving yields c1=4,c2=4. Therefore the solution is
(xy)=4e6t(11)+4e2t(17)
which can also be written as
x(t)=4e6t4e2ty(t)=4e6t+28e2t

Activity 5.2.1. Planar Systems with Distinct Real Eigenvalues.

Consider the initial value problem dx/dt=Ax, where
A=(23105022)x(0)=(33).
(a)
Find the eigenvalues of A. You should find distinct real eigenvalues λ and μ.
(b)
Find eigenvectors v1 and v2 for the eigenvalues λ and μ, respectively.
(c)
Find the straight-line solutions of dx/dt=Ax. Plot the solutions in the xy-plane.
(d)
Sketch the solution curve to the initial value problem in the xy-plane.
(e)
Show that x(t)=c1eλtv1+c2eμtv2 is a solution to the linear system dx/dt=Ax.
(f)
Use the fact that
x(0)=(12)
to find c1 and c2 such that x(t)=c1eλtv1+c2eμtv2 is a solution to the initial value problem. Does this solution agree with the solution that you plotted in Task 5.2.1.d?
If x1(t) and x2(t) are solutions to the linear system x=Ax, then
x1=Ax1x2=Ax2.
Thus, for any two real numbers c1 and c2,
ddt(c1x1(t)+c2x2(t))=αddtx1(t)+c2ddtx2(t)=c1Ax1(t)+c2Ax2(t)=A(c1x1(t)+c2x2(t)).
We state this result in the following theorem.
Revisiting the mixing problem that we posed at the beginning of this section, we have the following initial value problem,
dxdt=3x+43y,dydt=3x3y,x(0)=100,y(0)=0.
If we write our system in matrix form, x=Ax, then
A=(34/333).
It is easy to check that we have eigenvalues λ=1 and μ=5 with eigenvectors u=(2,3) and v=(2,3), respectively. Thus, we have two solutions to our system,
x1(t)=etu,x2(t)=e5tv.
Since any linear combination of solutions is also a solution,
x(t)=c1(2et3et)+c2(2e5t3e5t)
is a solution to our system. Using the initial values x(0)=100 and y(0)=0, we can determine that c1=25 and c2=25. We now have the solution that we seek,
x(t)=50et+50e5ty(t)=75et75e5t.

Subsection 5.2.3 Solving Linear Systems

Our goal is to prove the following theorem.

Proof.

If v1 and v2 are linearly dependent, then there exists α0 such that
(5.2.3)v1=αv2.
Multiplying both sides of this equation by A, we have
(5.2.4)λ1v1=Av1=αAv2=αλ2v2.
On the other hand, we obtain
(5.2.5)λ2v1=αλ2v2
if we multiply both sides of (5.2.3) by λ2. Using (5.2.4) and (5.2.5), we can conclude that
(λ1λ2)v1=α(λ2λ2)v2=0v2=0.
However, this contradicts the assumption that λ1 and λ2 are distinct.
We can now proceed to the proof of the theorem. Suppose that we have a linear system x=Ax such that A has a pair of distinct real eigenvalues, λ1 and λ2, with associated eigenvectors v1 and v2. By the Principle of Superposition, we know that
x(t)=c1eλ1tv1+c2eλ2tv2.
is a solution to the linear system x=Ax. To show that this is the general solution, we must show that we can choose c1 and c2 to satisfy a given initial condition x0=x(0)=(x0,y0). By Lemma 5.2.8, we know that v1 and v2 form a basis for R2. That is, we can write x0 as a linear combination of v1 and v2. In other words, we can find c1 and c2 such that
x0=x(0)=c1v1+c2v2.
It remains to show that x(t)=c1eλ1tv1+c2eλ2tv2 is the unique solution to the system
x(t)=Ax(t),x(0)=x0.
Suppose that there is another solution y(t) such that y(0)=x0. Then we can write
y(t)=f(t)v1+g(t)v2,
where
f(0)=c1,g(0)=c2.
Since y(t) is a solution to our system of equations, we know that
Ay(t)=y(t)=f(t)v1+g(t)v2.
On the other hand,
Ay(t)=f(t)Av1+g(t)Av2=λ1f(t)v1+λ2g(t)v2.
Consequently, we have two first-order initial value problems,
f(t)=λ1f(t),f(0)=c1,
and
g(t)=λ2g(t),g(0)=c2.
The solutions of these initial value problems are
f(t)=c1eλ1t,g(t)=c2eλ2t,
respectively. Thus, y(t)=x(t), and proof our theorem is complete.

Subsection 5.2.4 Important Lessons

  • If v1 and v2 are eigenvectors of two distinct real eigenvalues of a matrix A, then v1 and v2 are linearly independent.
  • The Principle of Superposition tells us that any linear combination of solutions to the linear system x=Ax is also a solution.
  • Let A be a 2×2 matrix. If A has a pair of distinct real eigenvalues, λ1 and λ2, with associated eigenvectors v1 and v2, then the general solution of the linear system x=Ax is given by
    x(t)=αeλ1tv1+βeλ2tv2.

Reading Questions 5.2.5 Reading Questions

1.

What is a 2×2 linear system of differential equations?

2.

What is the Principle of Superposition?

Exercises 5.2.6 Exercises

Solving Linear Systems with Distinct Real Eigenvalues.

Find the general solution of each of the linear systems in Exercise Group 5.2.6.1–4.

Solving Initial Value Problems.

Solve each of the following linear systems for the given initial values. in Exercise Group 5.2.6.5–8.
5.
x=x+2yy=x+4yx(0)=3y(0)=2
6.
x=x+2yy=2x+2yx(0)=19y(0)=8
7.
x=3x+4yy=3x2yx(0)=1y(0)=3
8.
x=6x+4yy=8x6yx(0)=1y(0)=3

9.

Consider the nonhomogeneous system of linear differential equations
(5.2.6)x=a(t)x+b(t)y+f(t)(5.2.7)y=c(t)x+d(t)y+g(t)
and assume that the general solution of
x=a(t)x+b(t)yy=c(t)x+d(t)y
is given by
xh=(x(t)y(t))=c1(u1(t)u2(t))+c2(v1(t)v2(t)).
xp=(ϕ1(t)ϕ2(t))
is a particular solution of (5.2.6), show that
xh+xp=(x(t)+ϕ1(t)y(t)+ϕ2(t))
is the general solution to the system. Thus, to solve a nonhomogeneous system of linear differential equations, we need to find the solution of the corresponding homogeneous system and one particular solution of the nonhomogeneous system.

10.

Consider the linear system
x=x+3y+(t3t2)y=xy+(2t+t2)x(0)=1y(0)=1.
  1. Find the general solution of the homogeneous system
    x=x+3yy=xy
  2. Find a particular solution for
    x=x+3y+(t3t2)y=xy+(2t+t2)
  3. Find the solution of
    x=x+3y+(t3t2)y=xy+(2t+t2)x(0)=1y(0)=1.
Hint.
Assume that your solution must be of the form
xp=(a2t2+a1t+a0b2t2+b1t+b0.)
This is called the method of undetermined coefficients.

11.

Consider the system
x=ax+yy=2ax+2y,
where aR. For what values of a do you find a bifurcation (a change in the type of phase portrait)? Sketch typical phase portraits for a values of a above and below the bifurcation point.

12.

Prove that
αeλt(10)+βeλt(t1)
is the general solution of
x=(λ10λ)x.