Docsity

Learning Differential Equations: Separable Equations, Growth, Decay, and Methods - Prof. D, Study notes of Mathematics

Toggle sidebar
bg1
4/27/2009
1
MATH 6102
Spring 2009
Differential Equations
What is a Differential Equation?
•Derivative measures rate of change at a point
•Derivative measures slope of tangent line to
function at the point
•If we knew rate of change at each point can we
reconstruct the original function?
•
Yes
up to a constant! Antidifferentiation
27-Apr-2009 MATH 6102 2
•
Yes
–
up to a constant! Antidifferentiation
•This leads to an equation
(, )
dy Fxy
dx
What is a Differential Equation?
A differential equation is an equation
involving an unknown function and its
derivatives. The order of the differential
equation is the order of the highest derivative
of the unknown function involved in the
equation A
linear differential equation
27-Apr-2009 MATH 6102 3
equation
.
A
linear differential equation
of order nis a differential equation written in
the following form:
Where en(x) is not the zero function.
1
110
1
() () () () ()

nn
nn
nn
dy d y dy
ex e x ex exy fx
dx dx dx
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14

Partial preview of the text

Download Learning Differential Equations: Separable Equations, Growth, Decay, and Methods - Prof. D and more Study notes Mathematics in PDF only on Docsity!

MATH 6102

Spring 2009

Differential Equations

What is a Differential Equation?

  • Derivative measures rate of change at a point
  • Derivative measures slope of tangent line to

function at the point

  • If we knew rate of change at each point can we

reconstruct the original function?

  • Yes up to a constant! Antidifferentiation

27-Apr-2009 MATH 6102 2

  • Yes – up to a constant! Antidifferentiation
  • This leads to an equation

dy

F x y

dx

What is a Differential Equation?

A differential equation is an equation

involving an unknown function and its

derivatives. The order of the differential

equation is the order of the highest derivative

of the unknown function involved in the

equation A linear differential equation

27-Apr-2009 MATH 6102 3

equation. A linear differential equation

of order n is a differential equation written in

the following form:

Where e n ( x ) is not the zero function.

1

n n

n (^) n n n

d y d y dy

e x e x e x e x y f x

dx dx dx

Examples

Exponential:

dy

ky

dt

y ky

Newton’s Law of Cooling: the rate of change

27-Apr-2009 MATH 6102 4

Newton s Law of Cooling: the rate of change

of the temperature difference between an

object and its surroundings is proportional

to the temperature difference itself

dy

k M y

dt

Examples

Logistic: y ( t ) = population density

r = reproductive rate

K = carrying capacity

(1) an equation in which the rate of reproduction is no

longer constant but declines with the density of the

27-Apr-2009 MATH 6102 5

longer constant but declines with the density of the

population

(2) if we expand out the equation suggests a process in

which the birth rate is still constant , but in which

there is a a mortality term, that dominates when the

population is high

dy ( K y ) r 2

ry ry y

dt K K

Solution to a Differential Equations

A solution to a differential equation is a function

defined on the domain of the equation that

makes the equation true.

IVP ( initial value problemp ) is a differential

equation together with a specific value that the

solution must satisfy at a particular point.

If no initial conditions are given, we call the

description of all solutions to the differential

equation the general solution.

27-Apr-2009 MATH 6102 6

Picard’s Method

Example 1:

Consider the differential equation:

y ′( x ) = x + y ( x ), y (0) = 0.

Step 1: Set y 0 ( x ) = 0. Then this satisfies the IVP.

Step 2: New solution –

y 1 ( x ) = y 0 + ∫ 0

x f ( t, y 0 ( x )) dt

= 0 + ∫

x t dt

27-Apr-2009 MATH 6102 10

= 0 + ∫ 0 t dt

= x

2 / 2

2 0 1 0 0

2 3

x x

t

y x y f t y t dt t dt

x x

Picard’s Method

2 3

3 0 2 0 0

2 3 4

( ) ( , ( )) 0 2 6

1 1 1

2 6 24

( ) ( ( ))

x x

x

t t y x y f t y t dt t dt

x x x

f d

      (^)      

  

27-Apr-2009 MATH 6102 11

4 0 3 0 2 3 4 5

2 3 4 5 1

( ) ( , ( ))

2 3! 4! 5!

( ) 2 3! 4! 5! ( 1)!

n

n

y x y f t y t dt

x x x x

x x x x x y x n

Picard’s Method

2 3 4 5 1

1

0

1

( ) lim 1

n

n

n k

k

n k

x x x x x y x n

x x k

x y x x

27-Apr-2009 MATH 6102 12

0 0

0

( ) lim 1 !

n k

n

n x

y x x k

x x n

y x x e

 

Picard’s Method

Example:

Consider the differential equation:

y ′( x ) = x + ( y ( x ))

2 , y (0) = 0.

Step 1: Set y 0 ( x ) = 0. Then this satisfies the IVP.

Step 2: New solution –

y 1 ( x ) = y 0 + ∫ 0

x f ( t, y 0 ( x )) dt

= 0 + ∫

x t dt

27-Apr-2009 MATH 6102 13

= 0 + ∫ 0 t dt

= x

2 / 2 2

2 0 1 0

0

2 5

x

x

t

y x y f t y t dt t dt

x x

 ^ 

Picard’s Method

2 5 2

3 0 2 0 0

2 5 8 11

( ) ( , ( )) 0 2 20

1 1 1 1

2 20 160 4400

( ) ( ( ))

x x

x

t t y x y f t y t dt t dt

x x x x

f t t dt

 (^)         (^)       ^ 

   

   

27-Apr-2009 MATH 6102 14

4 0 3 0 2 5 8 11 14

17 20 11

( ) ( , ( ))

3

2 20 160 4,400 49,

87

23,936,000 7,040,000 445,280,

y x y f t y t dt

x x x x x

x x x

 

    

  

Picard’s Method

3/ 2 2/

( ) lim ( )?

3 (1, ) (1, ) (according to ) 3 ( ) ( )

2

3 ( ) ( )

y x (^) n y n x

AiryAi x AiryBi x Maple AiryAi x AiryBi x

ix x I

where I x i J ix and



 

      

     

27-Apr-2009 MATH 6102 15

3/ 3/ 1/

2

0

, ( ) ( ) 2

3

( 1) ( ) ! ( 1) 2

k^ m

k

where I x i J ix and ix ix I

x J x k k

  

 

 

         

    (^)      (^)  

Even though we have a solution, it is not very helpful!

Solution by Series

If we know that a solution exists, it is clearly differentiable

since it satisfies a differential equation. We can assume

that it is analytic and approximate it by a power series:

0

n n n

y x a x

 (^) 

27-Apr-2009 MATH 6102 19

Now, use this for the function in the differential equation

and look for relationships among the coefficients.

Solution by Series

Consider the differential equation:

y ′′( x ) – y ( x ) = 0.

0

1

n n n

n n

y x a x

y x na x

  

27-Apr-2009 MATH 6102 20

1

2

2

n

n n n

y x n n a x

  

 (^)  (^)  

2

2 0 2 2 0 3 1 4 2

n n n n n n

y x y x

n n a x a x

a a a a x a a x

  

 

 

Solution by Series

2 0 2 0

3 1 3 1

4 2 4 2 0

a a a a

a a a a

a a a a a

27-Apr-2009 MATH 6102 21

( 1) 2 0 0 if is even /! 1 if is odd

n n n

n n a a n a a n n

   ^   

2 2 1

0 1 0 0

0 1

( ) cosh( ) sinh( )

n n

n n

x x y x a a n n

y x a x a x

 ^ 

 

 

Solution by Series

Let’s return to the differential equation:

y ′( x ) = x + ( y ( x ))

2 .

0

1

1

n n n

n n n

y x a x

y x na x

  

27-Apr-2009 MATH 6102 22

  (^)    

   

 

  ^ 

1 (^2 2 2 2 ) 0 0 1 0 2 1 0 3 1 2

2 4 5 0 4 1 3 2 0 5 1 4 2 3

2

1 2 2 2 3 0 0 1 0 2 1 0 3 1 2 1

n

n n n

y x a a a x a a a x a a a a x

a a a a a x a a a a a a x

y x x y x

na x x a a a x a a a x a a a a x

 

 ^ ^ ^ ^ ^ ^ ^ 

Solution by Series

 ^ ^ ^  

1 2 2 2 3 0 0 1 0 2 1 0 3 1 2 1 2 1 0

0 1 3 2 0

(^2 ) 1 0

n n n

na x x a a a x a a a x a a a a x

a a

a a a a

a a (^) a a a

 

 

27-Apr-2009 MATH 6102 23

 

(^1 0 0 2 ) 3 0 0 2 0 1 2 3 0 2 1 0 3 1 2 2 5 4 0 0

2 0 4 1 3 2 5

a a a a a a a a a

a a a a a a^ a a a a a

a a a a a a

3 6 0 0

a a

Solution by Series

Use series to find a solution to the differential equation:

y ′( x ) = 3 y ( x ) + 6, y (0)=

27-Apr-2009 MATH 6102 24

Are there other ways to solve DE’s?

There are multiple techniques for solving differential equations

but that is for a DE course. The idea here is to see how these

objects are related to what we have been studying, thus the

power series solutions.

We will look at one type of DE that is easy to solve.

27-Apr-2009 MATH 6102 28

The other way of thinking about differential equations is

geometrically. The derivative measures the slope of the

tangent line. How can we use this?

Separable Differential Equations

Assume that the right hand side of the first order DE can be

written as a product of a function of x and a function of y. If

dy

F x y f x g y

dx

We have a differential equation of the form.

27-Apr-2009 MATH 6102 29

this is true, the equation is said to be separable.

If this is the case, there is a chance that the equation can be

solved by antiderivatives.

Separable Differential Equations

dy

f x g y

dx

dy

f x dx

g y

dy

27-Apr-2009 MATH 6102 30

dy

f x dx

g y

If both antiderivatives can be found and if the antiderivative of

the left is invertible, there is an explicit solution for y(x).

Otherwise, you may only have an implicit relationship.

Separable Differential Equations

2 2

2 2

2

dy dy x y xy dx dx

dy dy x dx x dx y y

dy dy d d

 (^)   

27-Apr-2009 MATH 6102 31

3 3

2 2

2 3

/3 /

2

ln( ) (^3 )

x C x

y y x dx x dx y y

x y x C (^) C y

y x e Ae y x x K

 

Separable Differential Equations

ln

dy xy

dx y

Find the solution of the differential equation.

that passes through the point (0, e

2 ).

27-Apr-2009 MATH 6102 32

Separable Differential Equations

ln

dy xy

dx y

Find the solution of the differential equation.

that passes through the point (0, e^2 ).

dy xy

27-Apr-2009 MATH 6102 33

2 2

ln

ln

(ln ) 2 2

y y

dx y

y dy x dx y

y x C

Slope Fields

Consider this geometrically

dy ky M y dx

27-Apr-2009 MATH 6102 37

Slope Fields

Consider the DE

dy x

dx y

27-Apr-2009 MATH 6102 38

Slope Fields

Consider the DE

dy

27-Apr-2009 MATH 6102 39

dy x y dx

Slope Fields

Consider the DE

dy x y dx

27-Apr-2009 MATH 6102 40

Slope Fields

Consider the DE

dy (^) 2 x y dx

27-Apr-2009 MATH 6102 41

Slope Fields

Consider the DE

dy (^) 2 x y dx

27-Apr-2009 MATH 6102 42

Slope Fields

Consider the DE

ln

dy xy

dx y

27-Apr-2009 MATH 6102 46

Euler’s Method

Consider the DE

graphically and

numerically. If

dy (^) 2 x y dx

Then starting at

27-Apr-2009 MATH 6102 47

Then starting at

(0,0) we can move

along the tangent

line by a small step

and see where we

end up.

Euler’s Method

At (0,0) the slope of the tangent line is m = 0 + 0^2 = 0. The

equation of the tangent line is y – 0 = m ( x -0) or

y = 0.

Now, let x increase by 0.1. Where does that put us on the

t t li?

dy (^) 2 x y dx

27-Apr-2009 MATH 6102 48

tangent line?

x 1 = x 0 + 0.1 = 0.

y 1 = y ( x 1 ) = 0

So ( x 1 , y 1 ) = (0.1,0).

At ( x 1 , y 1 ) we need to compute the new slope:

m 1 = (0.1) + 0^2 = 0.1. The equation of the tangent line is

y – 0 = m ( x – 0.1)=0.1 x – 0.

Euler’s Method

Now, let x increase by 0.1. Where does that put us on the

tangent line?

x 2 = x 1 + 0.1 = 0.

y 2 = y 1 ( x 2 ) = 0.

So ( x 2 , y 2 ) = (0.2,0.01).

At ( x 2 , y 2 ) we need to compute the new slope:

m = (0 2) + (0 01)^2 = 0 2001 The equation of the tangent

27-Apr-2009 MATH 6102 49

m 2 = (0.2) + (0.01) = 0.2001. The equation of the tangent

line is

y – 0.01 = m ( x – 0.2)=0.2001 x – 0.

y =0.2001 x – 0.

We iterate this process until we get to the desired point.

Euler’s Method

n xn =xold yn =yold m (^) n Δx Δy xnew ynew

0 0 0 0 0.1 0 0.1 0

1 0.1 0 0.1 0.1 0.01 0.2 0.

2 0.2 0.01 0.2001 0.1 0.02001 0.3 0.

3 0.3 0.03001 0.300900 0.1 0.0300901 0.4 0.

4 0 4 0 06010 0 403612 0 1 0 0403612 0 5 0 100461

27-Apr-2009 MATH 6102 50

4 0.4 0.06010 0.403612 0.1 0.0403612 0.5 0.

5 0.5 0.100461 0.510092 0.1 0.0510092 0.6 0.

6 0.6 0.151470 0.622943 0.1 0.0622943 0.7 0.

7 0.7 0.213765 0.745695 0.1 0.0745695 0.8 0.

8 0.8 0.288334 0.883136 0.1 0.0883136 0.9 0.

9 0.9 0.376648 1.041863 0.1 0.1041863 1.0 0.

10 1.0 0.464962 0.

Euler’s Method

27-Apr-2009 MATH 6102 51

          

(1,0.464962)

Euler’s Method

2 2 1

dy x y dx

xold yold m Δ x Δ y xnew ynew

0.00 1.00 0.00 0.25 0.00 0.25 1.

0.25 1.00 0.0625 0.25 0.15625 0.50 1.

0 50 1 15625 0 274414 0 25 0 0686035 0 75 1 0876465

27-Apr-2009 MATH 6102 55

0.50 1.15625 -0.274414 0.25 -0.0686035 0.75 1.

0.75 1.0876465 0.379525 0.25 0.0948812 1.00 1.

1.00 1.

Euler’s Method

2 2 1

dy x y dx

y

(1,0)

27-Apr-2009 MATH 6102 56

x

Euler’s Method

2 2 1

dy x y dx

xold yold m Δ x Δ y xnew ynew

0.0 1.00 0.00 0.1 0.00 0.1 1.

0.1 1.00 0.01 0.1 0.001 0.2 1.

0.2 1.001 0.037999 0.1 0.0037999 0.3 1.

0 3 1 0048 0 080377 0 1 0 0080377 0 4 1 012837

27-Apr-2009 MATH 6102 57

0.3 1.0048 0.080377 0.1 0.0080377 0.4 1.

0.4 1.012837 0.13416 0.1 0.013416 0.5 1.

0.5 1.026254 0.196803 0.1 0.0196803 0.6 1.

0.6 1.045934 0.266022 0.1 0.0266022 0.7 1.

0.7 1.072536 0.339666 0.1 0.0339666 0.8 1.

0.8 1.106502 0.415651 0.1 0.0415651 0.9 1.

0.9 1.148067 0.49194 0.1 0.049194 1.0 1.

1.0 1.

Euler’s Method

2 2 1

dy x y dx

y

(1,0)

27-Apr-2009 MATH 6102 58

x