← Return to lesson

Class materials · 7.1

Modeling Situations with Differential Equations

Lecture transcript

0:00

You pull an ice-cold soda out of the fridge and set it on your desk. Without a formula for its temperature, can we say how fast it's warming up? Differential equations sound heavy, like pages of solving. Not today. Put your integrals away: we solve nothing. Your job is translation. One sentence about a rate becomes one equation, and that equation tells you the rate. Hang on to that soda: we'll come back to it at the end. Let's go get that five.

0:32

Here's the room: seventy-five degrees Fahrenheit, the dashed line. The soda starts at thirty-five degrees Fahrenheit, right out of the fridge. At first it warms fast: look how steep the curve starts. Later, it warms more slowly. And near seventy-five, it's barely creeping up, and the curve is almost flat. So it's fast at first, and slow near seventy-five degrees. Why? Because fast or slow depends on one thing: the gap between the soda and the room.

1:05

Here are the numbers in our model. At the start, the gap is forty degrees, and the soda warms at four degrees per minute. That's the slope of the tangent line. Later, at fifty-five degrees, the gap is twenty, and it warms at two degrees per minute. Again, that's the slope of the tangent line. See the pattern? Cut the gap in half, and the warming rate gets cut in half too. Half the gap, half as fast. So our model says: the rate is zero point one times the gap.

1:39

Four is zero point one times forty, two is zero point one times twenty, and the model assumes it holds at every temperature. In calculus, the rate is d T d t, with t in minutes. It's zero point one times the gap, and the gap from T up to seventy-five is seventy-five minus T. Let's test the rule at one more temperature: sixty-five degrees. The gap to seventy-five is ten. So zero point one times ten gives one degree per minute.

2:13

The tangent line is much flatter now. Wait, where's the t? Notice there's no clock and no formula for T, only the temperature right now. Read a thermometer, plug in T, and the rule gives you the slope right where you are. An equation with a derivative in it, a rule that gives the slope from right where you are, has a name: a differential equation. In AP language, a rule like ours comes down to one phrase.

2:44

The rate is proportional to the gap. Proportional to means k times, just like y equals k x in algebra. For our soda, k is zero point one. What if bigger means slower? Think of ice on a pond, L centimeters thick. At two centimeters, it grows two centimeters a day. At four, only one a day. Thicker ice grows slower, because the ice itself keeps the cold out. Rate times thickness: two times two is four, one times four is four.

3:19

Our model keeps that product at four: the rate, times L, is always four. So d L d t equals four over L, with t in days. In AP language, that's inversely proportional to L: the L sits on the bottom. So here's the dictionary. Proportional to Q means k times Q. Inversely proportional to Q means k divided by that same Q. We write it with k on top and Q on the bottom.

3:51

And the rate of change of y with respect to x is d y d x. The variable after with respect to goes on the bottom. Back to our warming soda for a second, because there's one more thing to check: the sign. Same soda, but a friend writes k times the quantity T minus seventy-five. Is k still zero point one? It feels like it should be. Look at the picture. At fifty-five degrees, T minus seventy-five is negative twenty.

4:24

But the soda is warming, so the slope is plus two. So k times negative twenty is two, and k is negative zero point one. Flip the gap, and k flips its sign. Same soda, same rule. On the AP exam, you'll read sentences like this: y is decreasing at a rate proportional to y, and k is a positive constant. Then the minus sign goes in front: d y d t equals negative k y.

4:54

y stands for an amount, so it's positive. Decreasing means a negative slope, and k is positive, so the minus has to be written. An AP question about a changing amount can start with one sentence: the rate is proportional to something. Your job is to write the equation. Translate the words, then check the sign. Example one, A. P. style. A drug enters a patient's body through an IV at a constant rate of four milligrams per hour.

5:26

At the same time, the body removes the drug at a rate proportional to A, the amount in the body, in milligrams. Part a: write a differential equation for d A d t. Part b: when A is twenty, A is increasing at two milligrams per hour. Find the constant, the constant of proportionality. Part c: find d A d t when A is fifty, and explain what it means. Here are axes for the two rates.

5:57

The plan: rate in, minus rate out. Then find k. Then plug in A. Part a starts with what comes in: four, a plain number, because the drip is constant. Out goes k times A, because it's proportional to A, the amount. Those are rates, not amounts, so d A d t equals four, minus k A, because going out gets a minus, with k a positive constant.

6:28

That's part a, with t in hours, and there's nothing to solve. Part b says that when A is twenty, A is increasing at two, so d A d t is two. Four milligrams an hour come in, and A goes up by two. Common sense tells us that two must be going out. What goes out is k times A: k times twenty. So twenty k is two, and k is one tenth. That k is the constant of proportionality.

7:01

So the equation is d A d t equals four, minus A over ten. Right. Before I do part c, put fifty into that equation yourself, and work out what the answer means. Part c has us plug in fifty for A, then say what the number means. Fifty over ten is five. So the body now removes five milligrams an hour, more than the four coming in. Out beats in. So four minus five is negative one.

7:35

So what does it mean? Say it as a sentence: when there are fifty milligrams in the body, the amount of drug is decreasing. How fast? One milligram per hour. When, which way, how fast: that's what a question like this wants to hear. And it's decreasing at one, not at negative one: the word decreasing already carries the minus. Try another in-minus-out problem in your workbook, and set up the equation on paper before you compute anything.

8:07

So which variable goes in? This is where people lose points. Read this sentence: V is decreasing at a rate proportional to the square root of V. Out of habit, this answer plugs in t, the time, instead of V. Or it forgets k. The words already told us which variable. Look right after proportional to: the square root of V. So d V d t equals negative k, times the square root of V, with k positive, and the minus is for decreasing.

8:42

Whatever follows proportional to goes in, times k. Example two, multiple choice. The rate of change of y with respect to x is proportional to the product of x and y. A solution curve passes through the point one, two, where its slope is six. A solution curve is just a curve that follows the rule; there's nothing to solve. For the same equation, what is d y d x at the point two, three?

9:12

Six, nine, twelve, or eighteen? It's the same rhythm: words to an equation, then k from the first point, then the new point. The rate of change of y with respect to x is d y d x. Proportional to the product of x and y means k x y. At one, two, the slope is six, and slope is d y d x. Six equals k times one times two, so k is three.

9:44

Now plug in two, three: three times two times three is eighteen. Not six: that's the trap in A. k stays three, but the slope is worked out again from the new point's x and y. So the answer is D, eighteen. There's one more in your workbook: k from the first point, then use it at the next. So, back to that cold soda. Can we say how fast it warms, without a formula for its temperature? Yes.

10:17

We never found a formula for the temperature. No clock, no formula. We found a rule for its slope. d T d t equals zero point one times the quantity seventy-five minus T. Give it any temperature, and it tells you how fast. From the words, proportional means k times the quantity, and inversely proportional means k over it. Then check the sign: an amount that's decreasing, with k positive, gets the minus out front.

10:49

Next up, seven point two: someone hands you a function and says it solves a differential equation. We'll check whether it really does. See you there.