Educerie

Educerie · AP · Calculus

AP Calculus AB and BC 7.1

Modeling Situations with Differential Equations

If you know how fast a quantity changes, how do you find the quantity itself?

What you will learn

  • Understand that a differential equation links a function to its derivative and has functions as its answers
  • Know how to turn words such as proportional, inversely proportional and jointly proportional into a derivative equation
  • Understand how the sign of the constant follows from whether the quantity grows or shrinks
  • Know that the equation gives the slope or rate at a point, so a slope can be found without solving

You must be able to

  1. Write a differential equation from a sentence about a rate of change
  2. Choose the sign of the constant of proportionality and say why
  3. Calculate the slope at a point from the equation and write the tangent line
  4. Describe in words what a given equation means, with units
  5. Decide whether a quantity is rising or falling from the sign of its rate
  6. Use letters other than x, y and t correctly in a modeled situation

In the exam. Section I multiple choice: pick the differential equation that matches a sentence, or read a short equation and say what it tells you about the quantity. Section II question 3 (shared by AB and BC) often opens with a differential equation set in a real situation. The first parts use the equation directly: find a slope at a point, or say whether a quantity is increasing. A common slip is writing a variable equal to a number, such as dydx=3\frac{dy}{dx}=3 where dydx∣(2,1)=3\frac{dy}{dx}\big|_{(2,1)}=3 was meant, and leaving out units.

1What a differential equation looks like

An ordinary equation such as x2−4=0x^2-4=0 has numbers as its answers. A differential equation has functions as its answers.

dydx=2x\frac{dy}{dx} = 2x

This equation says: the slope of yy at any point equals twice the xx-value there. The functions y=x2y=x^2, y=x2+5y=x^2+5 and y=x2−1y=x^2-1 all fit. Topic 7.2 shows how to check that, and Topic 7.4 shows why there are so many.

The right-hand side may use xx, yy, both, or neither.

  • dydx=2x\frac{dy}{dx}=2x depends on xx only.
  • dydt=0.5y\frac{dy}{dt}=0.5y depends on yy only.
  • dydx=x−y\frac{dy}{dx}=x-y depends on both.

The names change with the situation. A tank volume VV changing with time tt gives dVdt\frac{dV}{dt}. A depth hh gives dhdt\frac{dh}{dt}. Read the letters like any others: the symbol on top is the quantity, the symbol underneath is what it changes with respect to.

2Turning words into an equation

Every model uses the same three steps.

  1. Name the quantity and the variable it changes with. "The amount of dye DD in a tank at time tt" gives dDdt\frac{dD}{dt}.
  2. Write the rate on the left. "The rate of change of DD" is dDdt\frac{dD}{dt}.
  3. Write what it equals on the right. Use the words in the next table.
The sentence saysIt means
"is proportional to yy"=ky= ky, where kk is a constant
"is inversely proportional to yy"=ky= \frac{k}{y}
"is proportional to the square of yy"=ky2= ky^2
"is proportional to the square root of yy"=ky= k\sqrt y
"is jointly proportional to xx and yy"=kxy= kxy
"is twice the value of yy less 6"=2y−6= 2y-6
"the slope at each point equals the sum of its coordinates"dydx=x+y\frac{dy}{dx}=x+y

Why "proportional to yy" means kyky. Two quantities are proportional when their ratio never changes. If the rate dydt\frac{dy}{dt} is proportional to yy, then dydt\frac{dy}{dt} divided by yy is always the same number, which we call kk. Rearranging gives dydt=ky\frac{dy}{dt}=ky. In words: when there is twice as much, it changes twice as fast. That is the picture behind bacteria that breed in proportion to their number, or a drug that leaves the blood in proportion to how much is there. "Inversely proportional" means the product of the two never changes, so dydt⋅y=k\frac{dy}{dt}\cdot y=k.

The constant kk is the constant of proportionality. A sentence like "proportional to" gives you kk without a number. A sentence like "is 3% of" gives you the number: 0.030.03.

The sign of kk. Decide it from the situation, and say so.

  • If the quantity grows, dydt>0\frac{dy}{dt}>0. With y>0y>0, a positive kk in dydt=ky\frac{dy}{dt}=ky fits.
  • If the quantity shrinks, dydt<0\frac{dy}{dt}<0. Either write dydt=−ky\frac{dy}{dt}=-ky with k>0k>0, or write dydt=ky\frac{dy}{dt}=ky with k<0k<0. Both are correct if you state which.
  • Words such as "decreasing at a rate proportional to" put a minus sign in the equation or a negative kk. The exam accepts either if you are clear.

Worked example 1 (invented). The number NN of bacteria in a dish grows at a rate proportional to the number present. Write a differential equation for NN with time tt in hours.

dNdt=kN,k>0\frac{dN}{dt} = kN, \qquad k > 0

The units of kk are "per hour". dNdt\frac{dN}{dt} is in bacteria per hour and NN is in bacteria, so kk must be per hour.

Worked example 2 (invented). Water drains from a tank. The depth hh of the water, in centimeters, falls at a rate proportional to the square root of the depth. Write the equation, with tt in minutes.

The depth falls, so the rate is negative. Using k>0k>0 for the constant:

dhdt=−kh\frac{dh}{dt} = -k\sqrt{h}

Worked example 3 (invented). A curve passes through points (x,y)(x,y) in the first quadrant. At each point the slope of the tangent line equals yy divided by xx. Write the differential equation.

"The slope of the tangent line" is dydx\frac{dy}{dx}. So:

dydx=yx\frac{dy}{dx} = \frac{y}{x}

3Reading an equation back into words

You will also go the other way. An exam may give an equation and ask what it says.

Worked example 4 (invented). The amount MM of a medicine in a patient's blood, in milligrams, changes with time tt in hours according to

dMdt=−0.4M+20\frac{dM}{dt} = -0.4M + 20

Read each term.

  • −0.4M-0.4M: the medicine leaves at a rate of 40% of the amount present each hour.
  • +20+20: new medicine enters at a constant 20 milligrams per hour.
  • The whole right-hand side is the net rate in milligrams per hour.

Now use it. The sign of dMdt\frac{dM}{dt} tells you whether MM is rising or falling, without solving.

  • When M=30M=30: dMdt=−12+20=8>0\frac{dM}{dt}=-12+20=8>0. The amount is increasing.
  • When M=60M=60: dMdt=−24+20=−4<0\frac{dM}{dt}=-24+20=-4<0. The amount is decreasing.
  • When M=50M=50: dMdt=−20+20=0\frac{dM}{dt}=-20+20=0. The amount is not changing at that moment.

Every statement above comes from the equation alone. That is the key skill in this topic.

4Using the equation as a slope

If a differential equation has dydx\frac{dy}{dx} alone on one side, putting in a point (x,y)(x,y) gives the slope of the solution there.

Worked example 5. A function y=f(x)y=f(x) satisfies dydx=x2−y\frac{dy}{dx}=x^2-y, and its graph passes through (1,3)(1,3). Find the slope there, and write the tangent line.

dydx∣(1,3)=12−3=−2\left.\frac{dy}{dx}\right|_{(1,3)} = 1^2 - 3 = -2

The tangent line at (1,3)(1,3) is:

y=3−2(x−1)y = 3 - 2(x-1)

Use the tangent line to estimate f(1.1)f(1.1): 3−2(0.1)=2.83-2(0.1)=2.8.

Look at how the slope was written. It carries the point: dydx∣(1,3)=−2\left.\frac{dy}{dx}\right|_{(1,3)}=-2. Writing dydx=−2\frac{dy}{dx}=-2 alone is the "variable equals a number" mistake. The slope is −2-2 at (1,3)(1,3) and not everywhere.

Notice also that you never needed ff. The equation held everything you needed.

5Common situations

Three kinds of sentence appear again and again in this unit.

  • "Proportional to the amount present." This gives dydt=ky\frac{dy}{dt}=ky. It is the exponential model, solved in Topic 7.8. Population growth, decay of a substance and interest compounded continuously all take this form.
  • "Proportional to the difference from a target." For example, a tank filling toward a capacity of CC liters at a rate proportional to the room left: dVdt=k(C−V)\frac{dV}{dt}=k(C-V). This is a separable equation, solved in Topic 7.7.
  • "Jointly proportional to yy and to a−ya-y." This gives dydt=ky(a−y)\frac{dy}{dt}=ky(a-y), the logistic model. It is on the BC exam only and is the subject of Topic 7.9.

You need to recognize the form from the words. You are not asked to derive these models from first principles.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.