]> AP Calculus AB - Chapter 06 Notes

6: Differential Equations and Mathematical Modeling

6.1: Antiderivatives and Slope Fields

Differential Equations

A differential equation is an equation which includes a derivative. When asked to solve a differential equation, you are to find an equation (function) that works when plugged into the differential equation. Since there are an infinite number of equations with the same derivative, there are typically many solutions to a differential equation. Since all of these equations differ by a constant, finding the equation (but not the constant) is called finding the general solution. If, however, you have some additional information that will allow you to also find the constant, then you are finding a specific (or particular) solution.

Solving Initial Value Problems

If the additional information is about when the independent variable equals zero, then we call the problem an initial value problem.

To solve such a problem, begin by isolating the derivative (this will often already be done). Next, find an antiderivative of the expression on the right—don't forget that unknown constant! Use the given information to solve for the unknown constant, and finally give your answer as an equation or function.

This should be familiar, as we already did some of these a while back…the problem is that you will only be able to do this if the derivative can be expressed solely in terms of the independent variable— d y d x = x 2  will work;  d y d x = x + 2 y  will not work!

Slope Fields

So—how do you find a solution to a differential equation if you can't find an antiderivative? Use your techno-tools, of course! The given information tells about the slope of some curve at any point in the plane—if we plot those slopes, we might be able to see (or find) an equation that has those slopes at those points.

Such a plot is called a slope field. As an example, here is the slope field for the differential equation  d y d x = x + 2 y :

An Image

If we know some additional information about a particular solution—say, the point  ( 1 2 , 5 9 )  is on the desired solution—then we can follow the slopes to find the solution.

An Image

Pay attention in class when we discuss this!

Antiderivatives and Indefinite Integrals

The process of finding the general solution to a differential equation is also called finding the indefinite integral. We denote this with an integral, but no numbers (limits of integration) on the integral sign.

If  f ( x ) = F ( x ) , then  F ( x ) d x = f ( x ) + C , where C is some real number.

Properties of Indefinite Integrals

Constants can be factored out; sums and differences can be split.

Any property of definite integrals that doesn't involve the limits of integration also holds for indefinite integrals.

Examples

[1.] Evaluate  ( x 3 + 6 x + 1 ) d x .

( x 3 + 6 x + 1 ) d x = 1 4 x 4 + 3 x 2 + x + C

 

[2.] Solve  d y d t = t 2  if  y ( 0 ) = 2 .

d y d t = t 2 t 2 d t = 1 3 t 3 + C ; since  y = 2  when  t = 0 2 = 1 3 0 3 + C C = 2 . Thus, the solution is  y = 1 3 t 3 + 2 .

 

[3.] The slope field for the differential equation d y d x = 15 3 y  is shown below. Sketch a possible solution curve if it is known that y ( 1 ) = 0 .

An Image

First of all, plot the given point:

An Image

Now, follow the slopes:

An Image

 

[4.] Plot nine slope segments (at the integers; centered on the origin) for the slope field of  d y d x = x sin ( y ) .

 

An Image

6.2: Integration by Substitution

The Power Rule for Integrals

One of the first things that we did for derivatives was to prove that d d x [ x n ] = n x n 1 …why not do the same thing for integrals?

If taking the derivative reduces the exponent by one, then integrating should increase it by one. Thus,  x n d x  ought to include  x n + 1 . However,  d d x [ x n + 1 ] = ( n + 1 ) x n ; there's a coefficient there that we don't want. How will we get rid of it?

Divide, of course!

x n d x = 1 n + 1 x n + C

This works for more than just x—it works for a power of any function whose derivative (like x) is 1.

Trigonometric Integrands

A quick note—if the integrand is a trigonometric function, then you just have to memorize its integral (just like you had to memorize the derivatives).

Substitution in Indefinite Integrals

Okay—back to the general power rule. I said that it works for powers of functions whose derivative is 1…what about other functions, whose derivatives are not 1?

Recall that  d d x [ f ( x ) n ] = n f ( x ) n 1 f ( x ) . Hence,  n f ( x ) n 1 f ( x ) d x = f ( x ) n + C . That's a little ugly—let's focus in on the important part. When working forward, you have to use the chain rule to finish up the derivative. When working backwards (doing integrals), the chain rule part has to already be there!

Unfortunately, this can be difficult to see…

Fortunately, there is a method! It's called u-substitution (by most people). The idea is to change variables so that the chain rule part gets "sucked up" into a function whose derivative is 1.

Let's say it this way: To find  f ( g ( x ) ) g ( x ) d x , let  u = g ( x ) , so that  d u d x = g ( x ) d u = g ( x ) d x . Now swap  g ( x )  for u, and  g ( x ) d x  for  d u . That makes the integral  f ( g ( x ) ) g ( x ) d x = f ( u ) d u .

Substitution in Definite Integrals

This substitution—this change of variables—causes problems when the integral is definite. In particular,  a b f ( g ( x ) ) g ( x ) d x = g ( a ) g ( b ) f ( u ) d u .

Separable Differential Equations

A differential equation is separable when you can arrange it so that the variables occur exclusively on opposite sides of the equals sign. Separable differential equations can be solved with indefinite integration of both sides of the equation. The other kinds of differential equations have other solution methods…for us, we'll generally use slope fields when we can't separate and integrate.

Examples

[5.] Evaluate  2 x ( x 2 + 3 ) 4 d x .

This is not a simple one—substitution is probably the way to go. So: look for a function raised to a power. I find  x 2 + 3 , so I'll try the substitution  u = x 2 + 3 . The implication of this is that  d u d x = 2 x d u = 2 x d x . Substituting:  2 x ( x 2 + 3 ) 4 d x = u 4 d u = 1 5 u 5 + C . Now, go back to the original variables:  1 5 u 5 + C = 1 5 ( x 2 + 3 ) 5 + C .

 

[6.] Evaluate  x 2 sec ( x 3 ) tan ( x 3 ) d x .

This is a little harder to see…let  u = x 3 . That makes  d u = 3 x 2 d x 1 3 d u = x 2 d x . Substituting:  x 2 sec ( x 3 ) tan ( x 3 ) d x = 1 3 sec ( u ) tan ( u ) d u . Pull out that coefficient and integrate! You do know what function has this as its derivative, don't you?  1 3 sec ( u ) tan ( u ) d u = 1 3 sec ( u ) + C . Finish up with a reverse substitution:  1 3 sec ( u ) + C = 1 3 sec ( x 3 ) + C .

 

[7.] Evaluate  0 2 1 ( 2 x 3 ) 2 d x .

The substitution should be easier to see:  u = 2 x 3 d u = 2 d x 1 2 d u = d x . That changes the limits of integration:  x = 0 u = 2 ( 0 ) 3 = 3 , and  x = 2 u = 2 ( 2 ) 3 = 1 . The integral becomes  1 2 3 1 1 u 2 d u . Work it out:  1 2 3 1 u 2 d u = 1 2 u 1 ] 3 1 = 1 2 ( 1 1 1 3 ) = 1 2 1 6 = 2 3 .

 

[8.] Solve  d y d x = x e y  if  y ( 1 ) = 0 .

Separate the variables:  d y d x = x e y d y e y = x d x e y d y = x d x . Integrate:  e y d y = x d x e y = 1 2 x 2 + C . Apply the initial condition:  e 0 = 1 2 ( 1 ) 2 + C 1 = 1 2 + C 3 2 = C . Now solve for y e y = 1 2 x 2 3 2 e y = 3 2 1 2 x 2 y = ln ( 3 2 1 2 x 2 ) . Watch carefully as I simply that a bit:  y = ln 3 2 1 2 x 2 .

6.4: Exponential Growth and Decay

Law of Exponential Change

Exponential growth and decay—which you've known and loved for many years—has a connection to calculus. In particular, some quantity y which experiences exponential growth or decay is the solution to the differential equation  d y d t = k y .

It is, really! Look:  d y d t = k y 1 y d y = d t 1 y d y = d t ln | y | = k t + C . Placing the constant of integration on the right side is just a convenience; it doesn't really matter which side its one. Keep going:  e ln | y | = e k t + C | y | = e k t e C y = ± e C e k t . Now, rather than writing  ± e C , let's just write A. That leaves  y = A e k t , where A is the initial value, and k is related to the rate of growth or decay. This is the same old equation that you may well have tattooed on yourself somewhere…anyway, on to some other applications!

Continuously Compounded Interest

This exponential equation works for any continuous process—like continuously compounded interest!

(Pert, anyone?)

Radioactivity

…or radioactive decay!

Note that the half-life of a radioactive substance is ln ( 2 ) k .

Newton's Law of Cooling

Newton's Law of Cooling says that the rate of change (cooling) of an object is proportional to the difference between the temperature of the object and the ambient (surrounding) temperature:  d T d t = k ( T T s ) , where T is the temperature of the object and  T s  is the ambient temperature.

The solution to this differential equation is T T s = ( T 0 T s ) e k t , where  T 0  is the initial temperature of the cooling object.

Resistance Proportional to Velocity

If the resistance to a moving object is proportional to the object's velocity, then  m d v d t = k v  (force is proportional to velocity), or  d v d t = k v m , where m is the mass of the object.

The solution to this differential equation is v = v 0 e k t m .

Examples

[9.] An E. Coli cell, in a nutrient-broth, divides into 2 cells every 20 minutes. If a colony of E. Coli begins with 60 cells, then what will the rate of growth be (cells per hour) after 3 hours?

Take a cue from radioactive decay—the doubling time equals ln ( 2 ) k ; thus  20 = ln ( 2 ) k k = ln ( 2 ) 20 . Since the colony doubles every 20 minutes, it will have doubled 9 times in 3 hours. That makes the population size  60 2 9 10240 .

Now we've got what we need! The rate of growth is proportional to the population size;  d P d t = k P . Since  k = ln ( 2 ) 20  and  P = 10240 , the rate of growth is  ln ( 2 ) 20 10240 = 512 ln ( 2 ) , or approximately 354.891 cells per minute.

 

[10.] A cup of fresh coffee has a temperature of 95°. When placed in a 20° room, the coffee begins to cool. When the coffee's temperature reaches 70°, it is cooling at the rate of 1° per minute. How long does it take the coffee to reach this point?

To find k, I'll use the information about the rate of cooling. d T d t = k ( T T s ) 1 = k ( 70 20 ) k = 1 50 . Now I need the solution to the differential equation (since I need to solve for time):  T T s = ( T 0 T s ) e k t 70 20 = ( 95 20 ) e 1 50 t 50 = 75 e 1 50 t 2 3 = e 1 50 t ln ( 2 3 ) = 1 50 t t = 50 ln ( 2 3 )

It takes  50 ln ( 2 3 ) 20.273  minutes.

6.5: Population Growth

Exponential Model

Even though population growth is discrete (you can't gain or lose half a person!), it can typically be modeled with an exponential equation…which is what was done in the previous section.

If the rate of growth is proportional to the population size, then the relative growth of the population is constant:  d P d t = k P 1 P d P d t = k .

Logistic Growth Model

The real problem with using an exponential equation to model population growth is that exponential equations keep growing forever. This does not ever occur in nature; at some point, the size of the population grows to the point that it uses all of the surrounding resources, and cannot support any additional members. This number is the carrying capacity—the largest population size that nature and surrounding resources can support.

Since there is an upper limit, an exponential model doesn't really work in the long run. The rate of growth of a population is proportional to the size of the population relative to the carrying capacity—or, to the relative amount of the carrying capacity remaining:  1 P M . Thus, a better model is  1 P d P d t = k ( 1 P M ) , or  d P d t = k P ( 1 P M ) . This is called a logistic model.

This differential equation is separable—with a little (!) work, you can find the general solution to be  M P P = A e k t .

Example

[11.] The Pacific halibut fishery is modeled by the differential equation d y d t = k y ( 1 y C ) , where y is the biomass (total mass of the fish) in kilograms and time is measured in years. The carrying capacity C is estimated to be 80000000, and k = 0.71 . If the initial biomass is 20000000 kilograms, how long should it take the biomass to reach 40000000 kilograms?

I'll go ahead and use the general solution from above—I just need to find A.

80000000 20000000 20000000 = A e 0.71 ( 0 ) A = 30000000 ;

80000000 40000000 40000000 = 30000000 e 0.71 t

1 = 30000000 e 0.71 t 1 30000000 = e 0.71 t

ln ( 1 30000000 ) = 0.71 t t = ln ( 1 30000000 ) 0.71 24.249

It should take about 24.249 years for this hatchery to reach a total biomass of 40 million kilograms.

6.6: Numerical Methods

Euler's Method

Sometimes it is difficult to solve a differential equation…many minds have taken to the task of finding ways to solve them. One of mathematics' All-Stars devised a method: Leonhard Euler (Swiss; 1707-1783). His idea was to use the linearization of the solution curve to create a bunch of small line segments that approximate the solution curve.

Given a differential equation  d y d x = f ( x , y )  and an initial condition  y ( x 0 ) = y 0 , the linearization of the solution curve  y = y ( x )  is  L ( x ) = y ( x 0 ) + y ( x x 0 ) = y ( x 0 ) + f ( x 0 , y 0 ) ( x x 0 ) . Note that  f ( x 0 , y 0 )  is the slope at the point  ( x 0 , y 0 ) —which is the slope shown in a slope field at that point!

This linearization can be used to approximate a second point on the solution curve (for some value of x which is relatively close to x 0 )…which can be used to make another line, which can be used to approximate another point, which can be used to make another line…and so on. Of course, the potential error gets larger the farther away from the initial point you go…

Numerical Solutions

You can automate this line-point-line-point method; this will create a table of points, or a numerical solution to the differential equation.

Example

[12.] Use Euler's method to estimate  y ( 0.4 )  if  y = y  and  y ( 0 ) = 1 .

The initial point is  ( 0 , 1 ) , and the slope of the curve at that point is 1.

The initial line is  y 1 = 1 + 1 ( x 1 0 ) = 1 + x 1 . I'll choose  x 1 = 0.1 , which makes  y 1 = 1 + 0.1 = 1.1 .

The next point is  ( 0.1 , 1.1 ) , and the slope is 1.1. The next line is  y 2 = 1.1 + 1.1 ( x 2 0.1 ) = 0.99 + 1.1 x 2 . Let  x 2 = 0.2 , so that  y 2 = 0.99 + 1.1 ( 0.2 ) = 0.99 + 2.2 = 3.19 .

The next line is  y 3 = 3.19 + 3.19 ( x 3 0.2 ) = 2.552 + 3.19 x 3 . Let  x 3 = 0.3 , which makes  y 3 = 3.509 . The final line is  y 4 = 3.509 + 3.509 ( x 4 0.3 ) = 2.5463 + 3.509 x 4 . Allowing  y 4 = 3.509 + 3.509 ( x 4 0.3 ) = 2.5463 + 3.509 x 4 = 0.4  (which was what we were aiming for in the first place!) gives y 4 = 3.8599 .

Thus,  y ( 0.4 ) 3.8599 .


Valid MathML 2.0! Valid CSS Level 2!

Page last validated 2010-08-15