7.5 Applying guess and check more broadly
As noted earlier, the guess and check method may seem to be trivial - if you have a differential equation, and solution, why verify it? Well, this method helps to introduce a useful solution technique to a differential equation, and one that we can build up through direct verification.
We are going to revisit the lynx hare model, but simplified a little bit. Here we are going to assume that lynx and hares both decline at a rate proportional to the population size, but the lynx population increases according to the rate of hare decline:
dHdt=−bHdLdt=bH−dL
Based on these simplified assumptions a good approach is to assume a solution that is exponential for both H and L:
˜H(t)=C1eλt˜L(t)=C2eλt
The form of this solution has three unknowns: C1, C2, and λ. If you have taken a course in Linear Algebra, you may recognize that we are assuming the solution is a vector of the form →v=→Ceλt . Let’s apply Guess and Check to solve these equations. By differentiation, we have the following:
d˜Hdt=λC1eλtd˜Ldt=λC2eλt.
Comparing to our differential equation we can show that
λC1eλt=−bC1eλt→(λ+δ)C1eλt=0λC2eλt=bC1eλt−dC2eλt
Let’s rearrange this expression a little bit:
(λ+b)C1eλt=0(λ+d)C2eλt=bC1eλt
Notice that for the second equation we can solve for C1eλt, or C1eλt=(λ+d)bC2eλt.
This allows for something neat to happen. We can substitute this expression for C1eλt into the first equation:
(λ+b)(λ+d)bC2eλt=0
If we assume that b≠0, then we have the following simplified expression:
(λ+b)(λ+d)C2eλt=0
Because the exponential function never equals zero, with this new equation, the only possibility is that (λ+b)(λ+d)=0, or that λ=−b or λ=−d. Remember: if expressions multiply to zero, then the only possibility is that at least one of them is zero. The process outlined here finds the eigenvalues and eigenvectors of a system of equations. We will study these concepts in Section 18.
Next we need to determine values of C1 and C2. We can do this by going back to the equation (λ+d)C2eλt=bC1eλt, or (λ+d)C2eλt−bC1eλt=0 rearranged.
Let’s analyze this equation for each of the values of λ:
7.5.1 Case λ=−d
For this situation, we have
(−d+d)C2e−dt−bC1e−dt=0→−bC1e−dt=0.
The only way for this equation to be consistent and remain zero is if C1=0. We don’t have any restrictions on C2, so the general solution will be
˜H(t)=0˜L(t)=C2e−dt.
7.5.2 Case λ=−d
For this situation, we have (−d+b)C2e−dt−dC1e−dt=0 which leads to the following equation: ((−d+b)C2−dC1)e−dt=0
The only way for this equation to be consistent and remain zero is if ((−d+b)C2−dC1)=0, or if C2=(d−d+b)C1. In this case, the general solution will be
˜H(t)=C1e−dt˜L(t)=(d−d+b)C1e−dt,
The parameter C2 can be determined by the initial condition. Notice that we need to have d≠b or our solution will be undefined.
Now we can write down a general solution to the system by combining our two solutions together. Here we can you the fact that two solutions can be added together (superposition) to generate a solution.
H(t)=C1e−dtL(t)=(d−d+b)C1e−dt+C2e−bt
This method only works on linear differential equations (i.e. it wouldn’t work if there was a term such as kHL in our dynamics. Later on in the course we will look a more systematic method (i.e eigenvalues) to determine solutions to linear systems of equations.