math 1526: introduction to differential equations · math 1526: introduction to differential...

7

Click here to load reader

Upload: lylien

Post on 22-Jul-2018

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Math 1526: Introduction to Differential Equations · Math 1526: Introduction to Differential Equations A differential equation is an equation that relates not only a dependent variable

Math 1526: Introduction to Differential Equations A differential equation is an equation that relates not only a dependent variable and an independent variable, but also one or more derivatives of that dependent variable. For example, x + y + y´ = 0 is a differential equation. After completing this project, you should be familiar with basic terminology related to differential equations, and should also be able to solve some simple differential equations. Introduction: Why are differential equations useful?

Differential equations allow us to model situations in which the rate of change of some quantity depends directly on the quantity itself. Here are some examples that should illustrate the difference:

• When you drive your car, you have the ability to independently choose your speed. The speed of the car doesn’t depend on how far the car has already traveled. Therefore, we would not want to use a differential equation to model this.

• When you inflate a balloon, there is a probability that the balloon will get too full and burst. That probability changes as you add air, and that rate of change depends on how much air you have already added previously. Therefore, we would want to use a differential equation to model this.

• You invest $10,000 in a long term, interest-bearing fund. Since your interest is compounded, the amount of interest you make in future years depends on how much interest you have already made. Therefore, we could use a differential equation to model this. (See Example 4.)

Next we’re going to look at some examples of differential equations.

Example 1: What is a differential equation, and what does it mean to ‘solve’ one?

Consider the equation y´´ – 2y´ = 3y. This is a differential equation, because some of the variables are derivatives of other variables. In order for a function to solve a differential equation, the equation must be true when the function and its correct derivatives are substituted into the equation.

• The function y = e3x is a solution to the differential equation y´´ – 2y´ = 3y:

y´ = 3e3x y´´ = 9e3x Substituting these into the original equation gives us: 9e3x – 2(3e3x) = 3(e3x) 9e3x – 6e3x = 3e3x 3e3x = 3e3x Since the left-hand side equals the right-hand side, the function y = e3x is a solution.

• The function y = x2 is not a solution to the differential equation y´´ – 2y´ = 3y: y´ = 2x y´´ = 2

Page 2: Math 1526: Introduction to Differential Equations · Math 1526: Introduction to Differential Equations A differential equation is an equation that relates not only a dependent variable

Technically, we get a constant on both sides, and then combine them into the one constant you see here.

Substituting these into the original equation gives us: 2 – 2(2x) = 3(x2) 2 – 4x = 3x2 Technically that last equation is true for some isolated values of x, (x ≈ 0.3874, for example), but it’s not generally a true statement like 3e3x = 3e3x obviously is. Therefore, we determine that y = x2 is not a solution to this differential equation.

Example 2: What do we mean when we talk about the ‘order’ of a differential equation?

The order of a differential equation is the highest derivative that appears within the differential equation. For example, y + 8x2 = 3xy´ + y´´ – y´´´ is a third-order differential equation (because it contains a y´´´ term.) For the remainder of this project, we focus exclusively on first-order differential equations that can be solved using a technique called separation of variables.

Example 3: How do we solve a first-order differential equation?

In this example, we’ll solve the differential equation yxy

23=′ . Solving differential equations

like this one requires four steps:

Step one: Rewrite the derivative y´ as dxdy . This gives us

yx

dxdy 23= .

Step two: Rearrange the terms of the equation so that all the terms containing y are on the left-hand side and all the terms containing x are on the right-hand side.

dxxdyy

yx

dxdy

2

2

3

3

=

=

(Note: It is not always possible to separate the y-terms from the x-terms like this. If that isn’t possible, the equation is called a non-separable differential equation. Solving non-separable equations is beyond the scope of this course.) Step three: Find the antiderivative of both sides. Be sure to include “+ C” on the right-hand side.

Cxy

dxxdyy

+=

= ∫∫3

2

2

2

3

Step four: Solve for y.

Page 3: Math 1526: Introduction to Differential Equations · Math 1526: Introduction to Differential Equations A differential equation is an equation that relates not only a dependent variable

Q: When we multiplied by 2, why didn’t the C change to a 2C?

A: There’s nothing wrong with writing 2C here, but 2 times an unknown value is still an unknown value! Some people will use a new letter here, such as K, to show that the value of the constant has changed.

The antiderivative of A1 is

Aln . But since we know that balance must be positive (you can’t invest negative money!), we can safely omit the absolute value signs here.

Cxy

Cxy

Cxy

+±=

+=

+=

3

32

32

2

22

So, any function in the form Cxy +±= 32 will be a solution to the differential equation.

Example 4: How about a word problem?

Compound interest means that the rate of change in your balance is directly proportional to the

balance. That is, if you invested $10,000 at 6% interest, then AdtdA 06.0= . (Literally, that

equation reads “The rate of change in your balance over time, is equal to 0.06 — in other words, 6% — times your current balance.”) Solve this differential equation. Note that “Step one” from the previous example has already been done for us. Step two: Rearrange the terms of the equation so that all the terms containing A are on the left and all the terms containing t are on the right.

dtdAA

AdtdA

06.01

06.0

=

=

Step three: Find the antiderivative of both sides. Be sure to include “+ C” on the right-hand side.

CtA

dtdAA

+=

= ∫∫06.0ln

06.01

Step four: Solve for A.

Ct

CtA

eA

ee

CtA

+

+

=

=

+=

06.0

06.0ln

06.0ln

Page 4: Math 1526: Introduction to Differential Equations · Math 1526: Introduction to Differential Equations A differential equation is an equation that relates not only a dependent variable

If you’re rusty on the laws of exponents, the main point is that a + C in an exponent can be moved to a c in front of the term containing the exponent.

At this point, we could stop and say we were done, but our answer is not yet in simplest form. There’s a special trick we can apply when + C ends up in the exponent. Step five (only when + C is in the exponent): Use the laws of exponents to put the constant out front.

.)e (define 06.0

06.0

06.0

Ct

Ct

Ct

cceA

eeA

eA

==

×=

= +

At this point, we’ve solved the equation. But in fact, we have enough information in this problem to figure out the value of c as well. Since our initial balance (when t = 0) was $10,000:

10000)1(10000

10000 006.0

=== ×

ccce

Therefore, A = 10000e0.06t. This shouldn’t be a surprising result, since we learned this formula back in 1525 for solving compound interest problems. Now you know where it comes from!

A pair of values that allows us to solve for c—for example, the pair t = 0, A = 10,000 in the previous example—is called an initial value condition. Not all problems will have initial value conditions, however. Example 5: One more application: Newton’s Law of Cooling

Three hundred years ago, Isaac Newton discovered the Law of Cooling, which gives a formula for the rate at which objects cool down to room temperature when removed from an oven. This law can also be used in marketing applications, and here is an example: A business normally enjoys sales of $6000 per day. The owner decides to invest in a two-week series of television spots, and while those spots are running, her sales increase to $10000 per day. Three days after the advertising campaign ends, however, her sales decline to $8000 that day. What sales level should she expect seven days after the campaign ends? Here’s one way to “visualize” the problem: Her usual sales were at one level: $6000 per day (we’ll call this usual level S). Advertising caused her sales to “heat up” to a higher level of $10000 per day. Once the advertising ends, those sales start to “cool back down” to their usual

Example 5

5

6

7

8

9

10

0 2 4 6 8 10

days since end of ad campaign

sale

s pe

r day

(in

thou

sand

s of

dol

lars

)

usual sales level

Page 5: Math 1526: Introduction to Differential Equations · Math 1526: Introduction to Differential Equations A differential equation is an equation that relates not only a dependent variable

ln(y – S) is an antiderivative

of Sy −

1 whenever S is a

constant. (You can check this by taking the derivative of the answer.)

Be careful! Don’t write

2

2k− on this side. k is a

constant in this problem!

level (see the graph). Newton’s Law says that the rate of cooling over time is directly proportional to the difference between the current sales level and S. In other words,

)( Sykdtdy −−=

where k is the rate of cooling, y is the current (temporary) sales level, S is the usual sales level, and t is the number of days since the end of the promotion. Note that k and S are constants in this problem; t and y are our only variables. Let’s solve this differential equation. Once again, “step one” has already been done for us: Step two: Rearrange the terms of the equation so that all the terms containing y are on the left and all the terms containing t are on the right:

dtkdySy

Sykdtdy

−=−

−−=

1

)(

Step three: Find the antiderivative of both sides. Be sure to include “+ C” on the right-hand side.

CktSy

dtkdySy

+−=−

−=− ∫∫

)ln(

1

Step four: Solve for y.

Ckt

Ckt

eSy

eSy

CktSy

+−

+−

+=

=−

+−=− )ln(

Step five (only when + C is in the exponent): Use the laws of exponents to put the constant out front.

kt

Ckt

ceSy

eSy−

+−

+=

+=

Now we know what formula to use, y = S + ce–kt. Here are what the different letters in the formula stand for:

Page 6: Math 1526: Introduction to Differential Equations · Math 1526: Introduction to Differential Equations A differential equation is an equation that relates not only a dependent variable

• S represents her usual sales level, $6000 per day in this problem. Let’s choose

“thousands of dollars” as our unit—to make the numbers smaller—and set S = 6.

• c represents the amount of boost that the advertising created. Since the advertising temporarily raised her sales to $10,000 per day, that’s a $4000 boost over her usual level, so c = 4.

• t and y are the variables, representing the number of days since the end of the advertising campaign, and the amount of sales that day, respectively.

• k represents the rate of cooling. We need to solve for k in order to finish this problem. To solve for k, we’ll use the fact that on the third day (t = 3), the sales were only $8000 (y = 8). You will always need to use an intermediate value to solve for k—the starting or ending sales levels won’t work!

231.03

ln

3ln21

42

468

21

21

3

3

)3(

≈−

=

−=

=

=

+=

+=

k

k

e

e

e

ceSy

k

k

k

kt

Now that we know what k is, we can answer the original question: What sales should she expect on the seventh day after the campaign ends?

794.646 )7)(231.0(

≈+=

+=−

yey

ceSy kt

Therefore, her sales on the seventh day should be approximately $6,794.

Page 7: Math 1526: Introduction to Differential Equations · Math 1526: Introduction to Differential Equations A differential equation is an equation that relates not only a dependent variable

Differential Equations: Problems to turn in:

• Work through the example problems in the introduction before attempting these problems. Do not turn in the worked examples from the introduction. Also, do not hand in this document with your lab.

• Work all problems in order. Do not say “see attached” or other notation referring the grader to another location in the lab for part of a problem.

• Label problems and parts of problems with appropriate numbers and/or letters. • You may write your answers neatly by hand for this project.

1. You are investing $50,000 in an interest-bearing account at 8% interest. Write a differential

equation that models the balance in your account after t years (Hint: See Example 4), and solve that equation completely.

2. Solve the following differential equations. You do not need to solve for C in these problems, but

you do need to remove C from the exponent when appropriate. In part c, you have an initial value condition, which will allow you to solve for the constant.

a. yxy

32'= c. y´ = 9x2y.

For part c, the initial value condition b. xy´ = 3 is that when x = 2, y = 20.

3. A locally owned grocery store has an average sales level of $8000 per day. One week the owner

announced that he would split that week’s profits 50-50 with the local school system, and sales that week skyrocketed to $20000 per day. However, four days after the promotion ended, sales were already back down to $13000 per day. What level of sales should the owner expect ten days after the end of the promotion? (Use thousands of dollars for your units, as in the example).