1Using a solution we know
Suppose ๐(๐ก,๐ฆ) and its partial derivative ๐๐ฆ(๐ก,๐ฆ) are continuous
everywhere, and consider the differential equation
๐ฆโฒ=(๐ฆโ2๐ก)๐(๐ก,๐ฆ)+2.
(a)Verify that ๐ฆ(๐ก) =2๐ก is a solution, regardless of the choice of ๐.
Solution
The derivative is ๐ฆโฒ =2. Substituting ๐ฆ =2๐ก into the right-hand side
gives
(2๐กโ2๐ก)๐(๐ก,2๐ก)+2=2,
so the equation holds for every ๐ก, whatever ๐ is.
(b)Check that the hypotheses of the local existence-and-uniqueness theorem
hold at every point.
Solution
Write ๐น(๐ก,๐ฆ) =(๐ฆ โ2๐ก)๐(๐ก,๐ฆ) +2. By the product rule,
๐น๐ฆ(๐ก,๐ฆ)=๐(๐ก,๐ฆ)+(๐ฆโ2๐ก)๐๐ฆ(๐ก,๐ฆ).
Both ๐น and ๐น๐ฆ are continuous everywhere by the assumptions on ๐.
Thus there is a unique local solution through every point.
(c)Let ๐ฆ(๐ก) be the solution with ๐ฆ(0) =1. Suppose this solution is defined
at ๐ก =10. Show that ๐ฆ(10) >20.
Solution
At ๐ก =0, our solution starts above the known solution 2๐ก, since
1 >0. Uniqueness prevents these two solutions from touching: if they
met, they would have to agree throughout their common interval, including
at ๐ก =0. Their order is therefore preserved while both exist:
๐ฆ(๐ก)>2๐ก.
Since our solution is defined at ๐ก =10, this gives ๐ฆ(10) >20.
We do not need to know ๐ or find a formula for ๐ฆ!
2Waiting before leaving
Consider the initial-value problem
๐ฆโฒ=2โ|๐ฆ|,๐ฆ(0)=0.
(a)Verify that ๐ฆ(๐ก) =0 solves this initial-value problem.
Solution
The constant function has derivative 0, and the equation prescribes
2โ|0| =0. It also has the required initial value ๐ฆ(0) =0.
(b)For any ๐ โฅ0, define
๐ฆ๐(๐ก)={0,๐กโค๐,(๐กโ๐)2,๐ก>๐.
Show that ๐ฆ๐ also solves the initial-value problem. Be sure to check
differentiability and the differential equation at ๐ก =๐.
Solution
For ๐ก <๐, both ๐ฆโฒ๐ and 2โ|๐ฆ๐| are zero. For ๐ก >๐,
๐ฆโฒ๐(๐ก)=2(๐กโ๐)=2โ(๐กโ๐)2=2โ|๐ฆ๐(๐ก)|,
where we used ๐ก โ๐ >0.
At the joining time, ๐ฆ๐(๐) =0 and both pieces approach zero, so the
function is continuous. The derivative formula on the left is 0, and
the derivative formula on the right is 2(๐ก โ๐). As we approach the join,
lim๐กโ๐โ๐ฆโฒ๐(๐ก)=0,lim๐กโ๐+๐ฆโฒ๐(๐ก)=lim๐กโ๐+2(๐กโ๐)=0.
The two limits agree, so the pieces join differentiably with derivative
zero. Thus ๐ฆโฒ๐(๐) =0 =2โ|๐ฆ๐(๐)|, so the
equation holds at the join too. Finally, ๐ โฅ0 puts the initial time
in the zero piece, giving ๐ฆ๐(0) =0. Each ๐ฆ๐ solves the IVP on all
of โ.
(c)These solutions agree for a while and then separate. Why does this not
contradict the existence-and-uniqueness theorem? Identify precisely which
hypothesis fails.
Solution
The right-hand side ๐น(๐ก,๐ฆ) =2โ|๐ฆ| is continuous everywhere, but
its derivative with respect to ๐ฆ is
๐น๐ฆ(๐ก,๐ฆ)={โ1/โโ๐ฆ,๐ฆ<0,1/โ๐ฆ,๐ฆ>0.
This derivative does not exist at ๐ฆ =0 and is unbounded near it.
Thus the hypothesis that ๐น๐ฆ be continuous near the initial point
fails, as it also does at every departure point (๐,0). The theorem
does not promise uniqueness there, so the different waiting times cause
no contradiction.
3How long does the solution exist?
Consider the two initial-value problems
๐ฆโฒ=๐ฆ2๐๐ก,๐ฆ(0)=1,
and
๐ฆโฒ=๐ก๐ฆ2,๐ฆ(0)=1.
(a)For each equation, check the hypotheses of the local
existence-and-uniqueness theorem. What does it guarantee about these
initial-value problems?
Solution
For the first equation,
๐น(๐ก,๐ฆ)=๐โ๐ก๐ฆ2,๐น๐ฆ(๐ก,๐ฆ)=2๐โ๐ก๐ฆ,
and for the second,
๐น(๐ก,๐ฆ)=๐ก๐ฆ2,๐น๐ฆ(๐ก,๐ฆ)=2๐ก๐ฆ.
All four functions are continuous everywhere. Each IVP therefore has a
unique solution on some open interval containing 0. This is a local
guarantee: it does not say that either solution exists for all time.
(b)Solve both problems by separating variables, and find the largest interval
containing 0 on which each solution exists.
Solution
Both equations have the equilibrium ๐ฆ =0. Our initial value is 1,
so uniqueness keeps the solution positive and allows us to divide by
๐ฆ2.
For the first equation, separation gives
๐๐ฆ๐ฆ2=๐โ๐ก๐๐กโนโ1๐ฆ=โ๐โ๐ก+๐ถ.
At ๐ก =0, ๐ฆ =1, so ๐ถ =0 and ๐ฆ =๐๐ก. This solution exists on
( โโ,โ). It grows without bound, but only as ๐ก โโ.
For the second equation,
๐๐ฆ๐ฆ2=๐ก๐๐กโนโ1๐ฆ=๐ก22+๐ถ.
The initial condition gives ๐ถ = โ1, so
๐ฆ=11โ๐ก2/2.
The denominator first vanishes at ๐ก = ยฑโ2. The solution tends to
+โ as either endpoint is approached from inside, so its largest
interval containing 0 is ( โโ2,โ2).
(c)Now suppose ๐(๐ก) is continuous for all real ๐ก, and ๐ โฅ2 is an
integer. Solve
๐ฆโฒ=๐(๐ก)๐ฆ๐,๐ฆ(0)=1.
Your answer may involve
๐ด(๐ก)=โซ๐ก0๐(๐ )๐๐ ,
and that is okay! Describe the largest interval containing 0 on which
your solution exists, in terms of ๐ด(๐ก). Explain why the solution must
remain positive throughout that interval.
Solution
Here ๐น(๐ก,๐ฆ) =๐(๐ก)๐ฆ๐ and ๐น๐ฆ(๐ก,๐ฆ) =๐๐(๐ก)๐ฆ๐โ1 are continuous
everywhere. The constant solution ๐ฆ =0 is therefore a barrier: a
solution starting at 1 cannot touch it, and cannot become negative
without passing through it. Thus ๐ฆ stays positive while it exists.
Separating and using the initial value to write definite integrals,
โซ๐ฆ(๐ก)1๐ขโ๐๐๐ข=โซ๐ก0๐(๐ )๐๐ =๐ด(๐ก).
Since ๐ โฅ2, this gives
๐ฆ(๐ก)1โ๐โ11โ๐=๐ด(๐ก)โน๐ฆ(๐ก)=[1โ(๐โ1)๐ด(๐ก)]โ1/(๐โ1).
We take the positive root, as required by ๐ฆ(0) =1. The largest
interval is the open interval containing 0 on which
1โ(๐โ1)๐ด(๐ก)>0,or equivalently๐ด(๐ก)<1๐โ1.
In each time direction, continue until the first time ๐ด(๐ก) reaches
1/(๐ โ1); if it never does, the interval extends infinitely in that
direction. At any finite endpoint the bracket tends to zero from above,
so ๐ฆ(๐ก) โ +โ and no continuation through that endpoint is
possible. Later intervals on which the bracket is positive cannot be
joined to the solution through ๐ก =0.
4Should we preheat the oven?
In this problem, use Newton's law of heating to compare two ways of heating
an object. The measurements and oven temperature history below are
illustrative.
(a)An object initially at 20โC is placed in an oven maintained
at 200โC. After 10 minutes, its temperature is
110โC. Assuming Newton's law of heating, determine the
constant ๐. How long after entering the oven will the object reach the
target temperature of 155โC?
Solution
With ๐ก in minutes, Newton's law gives
๐โฒ=๐(200โ๐),๐(0)=20,
whose solution is ๐(๐ก) =200 โ180๐โ๐๐ก. The measurement at ten minutes
says
110=200โ180๐โ10๐โน๐โ10๐=12.
Thus ๐ =(lnโก2)/10ย minโ1, approximately
0.0693ย minโ1, and ๐(๐ก) =200 โ180 2โ๐ก/10.
To reach 155โC, we need
2โ๐ก/10=200โ155180=14,
so the object takes 20 minutes after entering the preheated oven.
(b)Now suppose an identical object is placed in the oven before it is switched
on. Both initially have temperature 20โC, and the oven
warms according to
๐ด(๐ก)=200โ1802โ๐ก/5,
with ๐ก in minutes. Assume the same heating constant ๐ applies and that
the object does not appreciably affect the oven's temperature. Write and
solve the initial-value problem for the object's temperature.
Solution
The same law uses the oven's current temperature:
๐โฒ=๐(200โ1802โ๐ก/5โ๐),๐(0)=20,๐=lnโก210.
Since 2โ๐ก/5 =๐โ2๐๐ก, rearranging gives
๐โฒ +๐๐ =200๐ โ180๐๐โ2๐๐ก. Multiplication by ๐๐๐ก undoes the
product rule:
(๐๐๐ก๐)โฒ=200๐๐๐๐กโ180๐๐โ๐๐ก.
Integrating,
๐๐๐ก๐=200๐๐๐ก+180๐โ๐๐ก+๐ถ,๐=200+180๐โ2๐๐ก+๐ถ๐โ๐๐ก.
The initial condition gives 20 =380 +๐ถ, so ๐ถ = โ360. Therefore
๐(๐ก)=200โ3602โ๐ก/10+1802โ๐ก/5,๐กโฅ0.
In particular, ๐โฒ(0) =0: the object and oven initially have the same
temperature, so heating begins only as a temperature difference develops.
(c)How long after switching on the oven does the object reach
155โC? Compare with part (a). Here we are comparing the time
the object spends inside the oven; part (a) excludes the time spent
preheating the empty oven.
Solution
Set ๐ฅ =2โ๐ก/10. For ๐ก โฅ0, we have 0 <๐ฅ โค1, and the target
temperature gives
155=200โ360๐ฅ+180๐ฅ2โน๐ฅ2โ2๐ฅ+14=0.
The roots are ๐ฅ =1 ยฑโ3/2. Only the smaller root lies in
(0,1], so
๐ก=โ10lnโก2lnโก(1โโ32)โ29.00ย minutes.
The object spends about 9 more minutes in the warming oven than in
the preheated oven. This compares time inside the oven; the 20 minutes
in part (a) do not include preheating the empty oven.
5Zombies on campus
A campus contains ๐ people, some of whom have become zombies. Nobody
enters, leaves, or dies: becoming a zombie changes a person's condition but
does not change the total population. Let ๐(๐ก) be the number of zombies,
with time measured in days.
Suppose each zombie encounters people at a constant rate ๐ >0, and those
encounters are spread randomly across the population. An encounter with a
human turns that human into a zombie; an encounter with another zombie
changes nothing.
(a)If there are currently ๐ zombies, how many humans remain? What fraction
of encounters are with humans? Use this to write the rate at which one
zombie creates new zombies.
Solution
There are ๐ โ๐ humans, so the fraction of encounters that are with
humans is (๐ โ๐)/๐. One zombie has ๐ encounters per day, and only
this fraction produces new zombies. Its rate of creating zombies is
therefore
๐๐โ๐๐=๐(1โ๐๐).
(b)Use your answer to build a differential equation for ๐(๐ก). Explain each
factor in your equation. Check the model at ๐ =0 and ๐ =๐: what does it
predict, and does that make sense? What familiar population model have you
obtained?
Solution
There are ๐ zombies each creating new zombies at the rate above, so
๐โฒ=๐๐(1โ๐๐).
The factors count encounters per zombie per day, the number of zombies,
and the fraction of encounters that find a human. At ๐ =0 the rate
is zero because there are no zombies to spread the condition. At ๐ =๐
the rate is also zero because no humans remain. Both predictions make
sense. This is logistic growth, with growth parameter ๐ and carrying
capacity ๐.
(c)Sprinklers spray an antidote across campus. Each zombie encounters the
spray once per day on average. Let 0 โค๐ โค1 describe its effectiveness:
๐ =0.87 means that 87% of zombies encountering the spray are cured. Cured
zombies become human again.
Revise your differential equation to include the spray, and explain the
new term. Does treatment change your expression for the number of humans?
Solution
Each zombie encounters the spray at a rate of once per day, and a
fraction ๐ of these encounters produces a cure. Thus the cure rate is
(1ย dayโ1)๐๐. With time measured in days, the revised
equation is
๐โฒ=๐๐(1โ๐๐)โ๐๐.
The new term removes cured zombies from ๐ and returns them to the
human population. Nobody leaves the campus, so the number of humans is
still ๐ โ๐.
(d)How effective must the spray be to make the zombie population decrease
for every initial population 0 <๐(0) โค๐? Remember that 0 โค๐ โค1.
Is it always possible for the spray to be effective enough? If the spray is less effective
than this, can your model support a constant positive population of
zombies? Find that population and explain how new infections and cures
balance there. You do not need to solve the differential equation.
Solution
Factoring gives
๐โฒ=๐(๐โ๐โ๐๐๐).
For every ๐ >0, this is negative if ๐ โฅ๐. Equality is enough:
when ๐ =๐, the equation becomes ๐โฒ = โ(๐/๐)๐2 <0 for every
positive population. If ๐ <๐, sufficiently small positive populations
instead have ๐โฒ >0, so the required condition is exactly ๐ โฅ๐.
Here ๐ is the numerical encounter rate per day, and ๐ gives the
numerical cure rate because each zombie encounters spray once per day.
Since ๐ โค1, this is possible only when ๐ โค1. If ๐ >1, even a
100% effective spray used at this encounter rate cannot make every
positive population decrease.
When ๐ <๐, a positive equilibrium is obtained by setting the remaining
factor to zero:
๐โ=๐(1โ๐๐).
This lies in (0,๐]. At this population, the human fraction is
1 โ๐โ/๐ =๐/๐, so the infection rate is
๐๐โ(๐/๐) =๐๐โ, exactly the cure rate. For ๐ =0 this is the
all-zombie state ๐โ =๐, where both rates vanish. For 0 <๐ <๐,
infections and cures continue at equal positive rates, keeping the
zombie population constant.