3006 IVP's Longer Examples
The fish population in a lake is not reproducing fast enough and the population is decaying exponentially with decay rate k. A program is started to stock the lake with fish. Three different scenarios are discussed below.
Example 1. A program is started to stock the lake with fish at a constant rate of r units of fish/year. Unfortunately, after 1/2 year the funding is cut and the program ends. Model this situation and solve the resulting DE for the fish population as a function of time.
Solution. Let x(t) be the fish population and let A=x(0−) be the initial population. Exponential decay means the population is modeled by
x′+kx=f(t),x(0−)=A
where f(t) is the rate fish are being added to the lake. In this case
f(t)={r for 0<t<1/20 for 1/2<t
First, write f in 'u-format': f(t)=r(1−u(t−1/2)).
Next, take the Laplace transform and solve for X(s).
F(s)=L(f)(s)=rs−rse−s/2\rArrsX−X(0−)+kX=F(s)\rArr(s+k)X−A=rs(1−e−s/2)\rArrX(s)=As+k+rs(s+k)(1−e−s/2)
To find x(t) we temporarily ignore the factor of e−s/2 and take Laplace inverse of what's left. (using partial fractions).
L−1(As+k)=Ae−kt,L−1(rs(s+k))=rk(1−e−kt)
The t-translation formula says
L−1(re−s/2s(s+k))=u(t−1/2)rk(1−e−k(t−1/2))
Putting it all together we get (in u and cases format).
x(t)=Ae−kt+rk(1−e−kt)−u(t−1/2)rk(1−e−k(t−1/2))={Ae−kt+rk(1−e−kt) for 0<t<1/2Ae−kt+rk(e−kt−e−k(t−1/2)) for 1/2<t
Example 2. (Periodic on/off) The program is refunded and the have enough money to stock at a constant rate of r for the first half of each year. Find x(t) in this case.
Solution. All that's changed from example 1 is the input function f(t). We write it in cases-format and translate that to u-format so we can take the Laplace transform.
f(t)={r for 0<t<1/20 for 1/2<t<1r for 1<t<3/20 for 3/2<t<2⋯=r(1−u(t−12)+u(t−1)−u(t−32)+⋯)
The computations from here are essentially the same as in the previous example.
L(f)=rs(1−e−1/2+e−1−e−3/2+⋯)\rArrX=As+k+rs(s+k)(1−e−1/2+e−1−⋯)\rArrx(t)=Ae−kt+rk[(1−e−kt)−u(t−1/2)(1−e−k(t−1/2))+⋯]\rArrx(t)={Ae−kt+rk−rke−kt for 0<t<1/2Ae−kt−rk(e−kt−e−k(t−1/2)) for 1/2<t<1⋯Ae−kt+rk−rk(e−kt−e−k(t−1/2)+…+e−k(t−n)) for n<t<n+1/2Ae−kt−rk(e−kt−e−k(t−1/2)+…−e−k(t−n−1/2)) for n+1/2<t<n+1⋯
Factoring out e−kt gives:
x(t)={Ae−kt+rk−rke−kt(1−ek/2+ek−e3k/2+…+ekn) for n<t<n+1/2Ae−kt−rke−kt(1−ek/2+ek−…−ek(n+1/2)) for n+1/2<t<n+1
Note that the constant term r/k is only present during periods of stocking.
Example 3. (Impulse train) The answer to the previous example is a little hard to read. We know from experience that impulsive input usually leads to simpler output. In this scenario suppose that once a year r/2 units of fish are dumped all at once into the lake. Find x(t) in this case.
Solution. Once again, all that's changed from example 1 is the input function f(t). The IVP is still given by equation (1).
f(t)=r2(δ(t)+δ(t−1)+δ(t−2)+δ(t−3)+⋯
This is called an impulse train. Its Laplace transform is easy to find.
F(s)=r2(1+e−s+e−2s+e−3s+⋯)
One nice thing about delta functions is that they don't introduce any new terms into the partial fractions part of the problem.
sX(s)−X(0−)+kX(s)=r2(1+e−s+e−2s+e−3s+⋯)\rArrX(s)=As+k+r2(s+k)(1+e−s+e−2s+e−3s+⋯)
Laplace inverse is easy:
L−1(1s+k)=e−kt\rArrL−1(e−nss+k)=u(t−n)e−k(t−n)
Thus,
x(t)=Ae−kt+r2e−kt+r2u(t−1)e−k(t−1)+r2u(t−2)e−k(t−2)++r2u(t−3)e−k(t−3)+⋯
Here are graphs of the solutions to examples 2 and 3 (with A=0,k=1,r=2). Notice how they settle down to periodic behavior.