# 7.E: Differential Equations (Exercises)

- Page ID
- 5402

## 7.1: An Introduction to Differential Equations

Suppose that \(T(t)\) represents the temperature of a cup of coffee set out in a room, where \(T\) is expressed in degrees Fahrenheit and \(t\) in minutes. A physical principle known as Newton's Law of Cooling tells us that

- Supposes that \(T(0)=105\text{.}\) What does the differential equation give us for the value of \(\frac{dT}{dt}\vert_{T=105}\text{?}\) Explain in a complete sentence the meaning of these two facts.
- Is \(T\) increasing or decreasing at \(t=0\text{?}\)
- What is the approximate temperature at \(t=1\text{?}\)
- On the graph below, make a plot of \(dT/dt\) as a function of \(T\text{.}\)
- For which values of \(T\) does \(T\) increase? For which values of \(T\) does \(T\) decrease?
- What do you think is the temperature of the room? Explain your thinking.
- Verify that \(T(t) = 75 + 30e^{-t/15}\) is the solution to the differential equation with initial value \(T(0) = 105\text{.}\) What happens to this solution after a long time?

Suppose that the population of a particular species is described by the function \(P(t)\text{,}\) where \(P\) is expressed in millions. Suppose further that the population's rate of change is governed by the differential equation

where \(f(P)\) is the function graphed below.

- For which values of the population \(P\) does the population increase?
- For which values of the population \(P\) does the population decrease?
- If \(P(0) = 3\text{,}\) how will the population change in time?
- If the initial population satisfies \(0\lt P(0)\lt 1\text{,}\) what will happen to the population after a very long time?
- If the initial population satisfies \(1\lt P(0)\lt 3\text{,}\) what will happen to the population after a very long time?
- If the initial population satisfies \(3\lt P(0)\text{,}\) what will happen to the population after a very long time?
- This model for a population's growth is sometimes called “growth with a threshold.” Explain why this is an appropriate name.

In this problem, we test further what it means for a function to be a solution to a given differential equation.

- Consider the differential equation
\[ \frac{dy}{dt} = y - t\text{.} \nonumber \]
Determine whether the following functions are solutions to the given differential equation.

- \(\displaystyle y(t) = t + 1 + 2e^t\)
- \(\displaystyle y(t) = t + 1\)
- \(\displaystyle y(t) = t + 2\)

- When you weigh bananas in a scale at the grocery store, the height \(h\) of the bananas is described by the differential equation
\[ \frac{d^2h}{dt^2} = -kh \nonumber \]
where \(k\) is the

*spring constant*, a constant that depends on the properties of the spring in the scale. After you put the bananas in the scale, you (cleverly) observe that the height of the bananas is given by \(h(t) = 4\sin(3t)\text{.}\) What is the value of the spring constant?

## 7.2: Qualitative Behavior of Solutions to DE's

### Exercises 7.2.4 Exercises

Consider the differential equation

- Sketch a slope field on the axes at right.
- Sketch the solutions whose initial values are \(y(0)= -4, -3, \ldots, 4\text{.}\)
- What do your sketches suggest is the solution whose initial value is \(y(0) = -1\text{?}\) Verify that this is indeed the solution to this initial value problem.
- By considering the differential equation and the graphs you have sketched, what is the relationship between \(t\) and \(y\) at a point where a solution has a local minimum?

Consider the situation from problem 2 of Section 7.1: Suppose that the population of a particular species is described by the function \(P(t)\text{,}\) where \(P\) is expressed in millions. Suppose further that the population's rate of change is governed by the differential equation

where \(f(P)\) is the function graphed below.

- Sketch a slope field for this differential equation. You do not have enough information to determine the actual slopes, but you should have enough information to determine where slopes are positive, negative, zero, large, or small, and hence determine the qualitative behavior of solutions.
- Sketch some solutions to this differential equation when the initial population \(P(0) \gt 0\text{.}\)
- Identify any equilibrium solutions to the differential equation and classify them as stable or unstable.
- If \(P(0) \gt 1\text{,}\) what is the eventual fate of the species? if \(P(0) \lt 1\text{?}\)
- Remember that we referred to this model for population growth as “growth with a threshold.” Explain why this characterization makes sense by considering solutions whose inital value is close to 1.

The population of a species of fish in a lake is \(P(t)\) where \(P\) is measured in thousands of fish and \(t\) is measured in months. The growth of the population is described by the differential equation

- Sketch a graph of \(f(P) = P(6-P)\) and use it to determine the equilibrium solutions and whether they are stable or unstable. Write a complete sentence that describes the long-term behavior of the fish population.
- Suppose now that the owners of the lake allow fishers to remove 1000 fish from the lake every month (remember that \(P(t)\) is measured in
*thousands*of fish). Modify the differential equation to take this into account. Sketch the new graph of \(dP/dt\) versus \(P\text{.}\) Determine the new equilibrium solutions and decide whether they are stable or unstable. - Given the situation in part (b), give a description of the long-term behavior of the fish population.
- Suppose that fishermen remove \(h\) thousand fish per month. How is the differential equation modified?
- What is the largest number of fish that can be removed per month without eliminating the fish population? If fish are removed at this maximum rate, what is the eventual population of fish?

Let \(y(t)\) be the number of thousands of mice that live on a farm; assume time \(t\) is measured in years.^{ 1 }

- The population of the mice grows at a yearly rate that is twenty times the number of mice. Express this as a differential equation.
- At some point, the farmer brings \(C\) cats to the farm. The number of mice that the cats can eat in a year is
\[ M(y) = C\frac{y}{2+y} \nonumber \]
thousand mice per year. Explain how this modifies the differential equation that you found in part a).

- Sketch a graph of the function \(M(y)\) for a single cat \(C=1\) and explain its features by looking, for instance, at the behavior of \(M(y)\) when \(y\) is small and when \(y\) is large.
- Suppose that \(C=1\text{.}\) Find the equilibrium solutions and determine whether they are stable or unstable. Use this to explain the long-term behavior of the mice population depending on the initial population of the mice.
- Suppose that \(C=60\text{.}\) Find the equilibrium solutions and determine whether they are stable or unstable. Use this to explain the long-term behavior of the mice population depending on the initial population of the mice.
- What is the smallest number of cats you would need to keep the mice population from growing arbitrarily large?

This problem is based on an ecological analysis presented in a research paper by C.S. Hollings: The Components of Predation as Revealed by a Study of Small Mammal Predation of the European Pine Sawfly, *Canadian Entomology* *91*: 283-320.

## 7.3: Euler's Method

Newton's Law of Cooling says that the rate at which an object, such as a cup of coffee, cools is proportional to the difference in the object's temperature and room temperature. If \(T(t)\) is the object's temperature and \(T_r\) is room temperature, this law is expressed at

where \(k\) is a constant of proportionality. In this problem, temperature is measured in degrees Fahrenheit and time in minutes.

- Two calculus students, Alice and Bob, enter a 70\(^\circ\) classroom at the same time. Each has a cup of coffee that is 100\(^\circ\text{.}\) The differential equation for Alice has a constant of proportionality \(k=0.5\text{,}\) while the constant of proportionality for Bob is \(k=0.1\text{.}\) What is the initial rate of change for Alice's coffee? What is the initial rate of change for Bob's coffee?
- What feature of Alice's and Bob's cups of coffee could explain this difference?
- As the heating unit turns on and off in the room, the temperature in the room is
\[ T_r=70+10\sin t\text{.} \nonumber \]
Implement Euler's method with a step size of \(\Delta t = 0.1\) to approximate the temperature of Alice's coffee over the time interval \(0\leq t\leq 50\text{.}\) This will most easily be performed using a spreadsheet such as

*Excel*. Graph the temperature of her coffee and room temperature over this interval. - In the same way, implement Euler's method to approximate the temperature of Bob's coffee over the same time interval. Graph the temperature of his coffee and room temperature over the interval.
- Explain the similarities and differences that you see in the behavior of Alice's and Bob's cups of coffee.

We have seen that the error in approximating the solution to an initial value problem is proportional to \(\Delta t\text{.}\) That is, if \(E_{\Delta t}\) is the Euler's method approximation to the solution to an initial value problem at \(\overline{t}\text{,}\) then

for some constant of proportionality \(K\text{.}\)

In this problem, we will see how to use this fact to improve our estimates, using an idea called *accelerated convergence*.

- We will create a new approximation by assuming the error is
*exactly*proportional to \(\Delta t\text{,}\) according to the formula\[ y(\overline{t})-E_{\Delta t} =K\Delta t\text{.} \nonumber \]Using our earlier results from the initial value problem \(dy/dt = y\) and \(y(0)=1\) with \(\Delta t = 0.2\) and \(\Delta t = 0.1\text{,}\) we have

\begin{align*} y(1) - 2.4883 =\mathstrut & 0.2K\\[4pt] y(1) - 2.5937 =\mathstrut & 0.1K\text{.} \end{align*}This is a system of two linear equations in the unknowns \(y(1)\) and \(K\text{.}\) Solve this system to find a new approximation for \(y(1)\text{.}\) (You may remember that the exact value is \(y(1) = e = 2.71828\ldots\text{.}\))

- Use the other data, \(E_{0.05} = 2.6533\) and \(E_{0.025} = 2.6851\) to do similar work as in (a) to obtain another approximation. Which gives the better approximation? Why do you think this is?
- Let's now study the initial value problem
\[ \frac{dy}{dt} = t-y, \ y(0) = 0\text{.} \nonumber \]
Approximate \(y(0.3)\) by applying Euler's method to find approximations \(E_{0.1}\) and \(E_{0.05}\text{.}\) Now use the idea of accelerated convergence to obtain a better approximation. (For the sake of comparison, you want to note that the actual value is \(y(0.3) = 0.0408\text{.}\))

In this problem, we'll modify Euler's method to obtain better approximations to solutions of initial value problems. This method is called the *Improved Euler's method.*

In Euler's method, we walk across an interval of width \(\Delta t\) using the slope obtained from the differential equation at the left endpoint of the interval. Of course, the slope of the solution will most likely change over this interval. We can improve our approximation by trying to incorporate the change in the slope over the interval.

Let's again consider the initial value problem \(dy/dt = y\) and \(y(0) = 1\text{,}\) which we will approximate using steps of width \(\Delta t = 0.2\text{.}\) Our first interval is therefore \(0\leq t \leq 0.2\text{.}\) At \(t=0\text{,}\) the differential equation tells us that the slope is 1, and the approximation we obtain from Euler's method is that \(y(0.2)\approx y_1= 1+ 1(0.2)= 1.2\text{.}\)

This gives us some idea for how the slope has changed over the interval \(0\leq t\leq 0.2\text{.}\) We know the slope at \(t=0\) is 1, while the slope at \(t=0.2\) is 1.2, trusting in the Euler's method approximation. We will therefore refine our estimate of the initial slope to be the average of these two slopes; that is, we will estimate the slope to be \((1+1.2)/2 = 1.1\text{.}\) This gives the new approximation \(y(1) = y_1 = 1 + 1.1(0.2) = 1.22\text{.}\)

The first few steps look like what is found in Table 7.3.15.

\(t_i\) | \(y_i\) | Slope at \((t_{i+1},y_{i+1})\) | Average slope |
---|---|---|---|

\(0.0\) | \(1.0000\) | \(1.2000\) | \(1.1000\) |

\(0.2\) | \(1.2200\) | \(1.4640\) | \(1.3420\) |

\(0.4\) | \(1.4884\) | \(1.7861\) | \(1.6372\) |

\(\vdots\) | \(\vdots\) | \(\vdots\) | \(\vdots\) |

- Continue with this method to obtain an approximation for \(y(1) = e\text{.}\)
- Repeat this method with \(\Delta t = 0.1\) to obtain a better approximation for \(y(1)\text{.}\)
- We saw that the error in Euler's method is proportional to \(\Delta t\text{.}\) Using your results from parts (a) and (b), what power of \(\Delta t\) appears to be proportional to the error in the Improved Euler's Method?

## 7.4: Separable Differential Equations

The mass of a radioactive sample decays at a rate that is proportional to its mass.

- Express this fact as a differential equation for the mass \(M(t)\) using \(k\) for the constant of proportionality.
- If the initial mass is \(M_0\text{,}\) find an expression for the mass \(M(t)\text{.}\)
- The
*half-life*of the sample is the amount of time required for half of the mass to decay. Knowing that the half-life of Carbon-14 is 5730 years, find the value of \(k\) for a sample of Carbon-14. - How long does it take for a sample of Carbon-14 to be reduced to one-quarter its original mass?
- Carbon-14 naturally occurs in our environment; any living organism takes in Carbon-14 when it eats and breathes. Upon dying, however, the organism no longer takes in Carbon-14. Suppose that you find remnants of a pre-historic firepit. By analyzing the charred wood in the pit, you determine that the amount of Carbon-14 is only 30% of the amount in living trees. Estimate the age of the firepit.
^{ 2 }

Consider the initial value problem

- Find the solution of the initial value problem and sketch its graph.
- For what values of \(t\) is the solution defined?
- What is the value of \(y\) at the last time that the solution is defined?
- By looking at the differential equation, explain why we should not expect to find solutions with the value of \(y\) you noted in (c).

Suppose that a cylindrical water tank with a hole in the bottom is filled with water. The water, of course, will leak out and the height of the water will decrease. Let \(h(t)\) denote the height of the water. A physical principle called *Torricelli's Law* implies that the height decreases at a rate proportional to the square root of the height.

- Express this fact using \(k\) as the constant of proportionality.
- Suppose you have two tanks, one with \(k=-1\) and another with \(k=-10\text{.}\) What physical differences would you expect to find?
- Suppose you have a tank for which the height decreases at \(20\) inches per minute when the water is filled to a depth of \(100\) inches. Find the value of \(k\text{.}\)
- Solve the initial value problem for the tank in part (c), and graph the solution you determine.
- How long does it take for the water to run out of the tank?
- Is the solution that you found valid for all time \(t\text{?}\) If so, explain how you know this. If not, explain why not.

The *Gompertz equation* is a model that is used to describe the growth of certain populations. Suppose that \(P(t)\) is the population of some organism and that

- Sketch a slope field for \(P(t)\) over the range \(0\leq P\leq 6\text{.}\)
- Identify any equilibrium solutions and determine whether they are stable or unstable.
- Find the population \(P(t)\) assuming that \(P(0) = 1\) and sketch its graph. What happens to \(P(t)\) after a very long time?
- Find the population \(P(t)\) assuming that \(P(0) = 6\) and sketch its graph. What happens to \(P(t)\) after a very long time?
- Verify that the long-term behavior of your solutions agrees with what you predicted by looking at the slope field.

## 7.5: Modeling with Differential Equations

Congratulations, you just won the lottery! In one option presented to you, you will be paid one million dollars a year for the next 25 years. You can deposit this money in an account that will earn 5% each year.

- Set up a differential equation that describes the rate of change in the amount of money in the account. Two factors cause the amount to grow—first, you are depositing one millon dollars per year and second, you are earning 5% interest.
- If there is no amount of money in the account when you open it, how much money will you have in the account after 25 years?
- The second option presented to you is to take a lump sum of 10 million dollars, which you will deposit into a similar account. How much money will you have in that account after 25 years?
- Do you prefer the first or second option? Explain your thinking.
- At what time does the amount of money in the account under the first option overtake the amount of money in the account under the second option?

When a skydiver jumps from a plane, gravity causes her downward velocity to increase at the rate of \(g\approx 9.8\) meters per second squared. At the same time, wind resistance causes her velocity to decrease at a rate proportional to the velocity.

- Using \(k\) to represent the constant of proportionality, write a differential equation that describes the rate of change of the skydiver's velocity.
- Find any equilibrium solutions and decide whether they are stable or unstable. Your result should depend on \(k\text{.}\)
- Suppose that the initial velocity is zero. Find the velocity \(v(t)\text{.}\)
- A typical terminal velocity for a skydiver falling face down is 54 meters per second. What is the value of \(k\) for this skydiver?
- How long does it take to reach 50% of the terminal velocity?

During the first few years of life, the rate at which a baby gains weight is proportional to the reciprocal of its weight.

- Express this fact as a differential equation.
- Suppose that a baby weighs 8 pounds at birth and 9 pounds one month later. How much will he weigh at one year?
- Do you think this is a realistic model for a long time?

Suppose that you have a water tank that holds 100 gallons of water. A briny solution, which contains 20 grams of salt per gallon, enters the tank at the rate of 3 gallons per minute.

At the same time, the solution is well mixed, and water is pumped out of the tank at the rate of 3 gallons per minute.

- Since 3 gallons enters the tank every minute and 3 gallons leaves every minute, what can you conclude about the volume of water in the tank.
- How many grams of salt enters the tank every minute?
- Suppose that \(S(t)\) denotes the number of grams of salt in the tank in minute \(t\text{.}\) How many grams are there in each gallon in minute \(t\text{?}\)
- Since water leaves the tank at 3 gallons per minute, how many grams of salt leave the tank each minute?
- Write a differential equation that expresses the total rate of change of \(S\text{.}\)
- Identify any equilibrium solutions and determine whether they are stable or unstable.
- Suppose that there is initially no salt in the tank. Find the amount of salt \(S(t)\) in minute \(t\text{.}\)
- What happens to \(S(t)\) after a very long time? Explain how you could have predicted this only knowing how much salt there is in each gallon of the briny solution that enters the tank.

## 7.6: Population Growth and the Logistic Equation

### Exercises 7.6.4 Exercises

The logistic equation may be used to model how a rumor spreads through a group of people. Suppose that \(p(t)\) is the fraction of people that have heard the rumor on day \(t\text{.}\) The equation

describes how \(p\) changes. Suppose initially that one-tenth of the people have heard the rumor; that is, \(p(0) = 0.1\text{.}\)

- What happens to \(p(t)\) after a very long time?
- Determine a formula for the function \(p(t)\text{.}\)
- At what time is \(p\) changing most rapidly?
- How long does it take before 80% of the people have heard the rumor?

Suppose that \(b(t)\) measures the number of bacteria living in a colony in a Petri dish, where \(b\) is measured in thousands and \(t\) is measured in days. One day, you measure that there are 6,000 bacteria and the per capita growth rate is 3. A few days later, you measure that there are 9,000 bacteria and the per capita growth rate is 2.

- Assume that the per capita growth rate \(\frac{db/dt}{b}\) is a linear function of \(b\text{.}\) Use the measurements to find this function and write a logistic equation to describe \(\frac{db}{dt}\text{.}\)
- What is the carrying capacity for the bacteria?
- At what population is the number of bacteria increasing most rapidly?
- If there are initially 1,000 bacteria, how long will it take to reach 80% of the carrying capacity?

Suppose that the population of a species of fish is controlled by the logistic equation

where \(P\) is measured in thousands of fish and \(t\) is measured in years.

- What is the carrying capacity of this population?
- Suppose that a long time has passed and that the fish population is stable at the carrying capacity. At this time, humans begin harvesting 20% of the fish every year. Modify the differential equation by adding a term to incorporate the harvesting of fish.
- What is the new carrying capacity?
- What will the fish population be one year after the harvesting begins?
- How long will it take for the population to be within 10% of the carrying capacity?