9 differential equations. 9.1 modeling with differential equations

24
9 Differential Equations

Upload: helen-dean

Post on 25-Dec-2015

373 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: 9 Differential Equations. 9.1 Modeling with Differential Equations

9 Differential Equations

Page 2: 9 Differential Equations. 9.1 Modeling with Differential Equations

9.1Modeling with Differential

Equations

Page 3: 9 Differential Equations. 9.1 Modeling with Differential Equations

Models of Population Growth

Page 4: 9 Differential Equations. 9.1 Modeling with Differential Equations

Models of Population Growth

One model for the growth of a population is based on the assumption that the population grows at a rate proportional to the size of the population.

the variables are:

• t = time (the independent variable)

• P = the number of individuals in the population (the dependent variable)

• Then the rate of growth is: where k is the proportionality constant

Page 5: 9 Differential Equations. 9.1 Modeling with Differential Equations

Solution of this differential equation:

so where A is a constant

orfinally: where C is a constant

• At t = 0, we get P(0) = Cek(0) = C, so the constant C turns out to be the initial population, P(0).

• Therefore:

Page 6: 9 Differential Equations. 9.1 Modeling with Differential Equations

Models of Population Growth• This model is appropriate for population growth

under ideal conditions, but we have to recognize that a more realistic model must reflect the fact that a given environment has limited resources.

• Many populations start by increasing in an exponential manner, but the population levels off when it approaches its carrying capacity M (or decreases toward M if it ever exceeds M).

Page 7: 9 Differential Equations. 9.1 Modeling with Differential Equations

Models of Population GrowthFor a model to take into account both trends, we make twoassumptions:

Initially: if P is small (the growth rate is proportional to P.)

Later: if P > M (P decreases if it ever exceeds M so growth rate becomes negative.)

A simple expression that incorporates both assumptions is given by the equation:

“ “logistic differential equation”

Page 8: 9 Differential Equations. 9.1 Modeling with Differential Equations

Models of Population Growth• If P is small compared with M, then P/M is close to 0 and so dP/dt kP.

• If P > M, then (1 – P/M) is negative and so dP/dt < 0.

• Notice that the constant functions P(t) = 0 and P(t) = M are solutions These two constant solutions are called equilibrium solutions.

Page 9: 9 Differential Equations. 9.1 Modeling with Differential Equations

Models of Population Growth

• If the initial population P(0) lies between 0 and M, then the right side of is positive, so dP/dt > 0 and the population increases. But if the population exceeds the carrying capacity (P > M), then 1 – P/M is negative, so dP/dt < 0 and the population decreases.

• So in either case, if the population approaches the carrying capacity

• (P M), then dP/dt 0, which means the population levels off.

Page 10: 9 Differential Equations. 9.1 Modeling with Differential Equations

Solution of the logistic equation:• We use a method called “separation of variables”

(section 9.3)

Solutions of the logistic equation

Page 11: 9 Differential Equations. 9.1 Modeling with Differential Equations

A Model for the Motion of a Spring

Page 12: 9 Differential Equations. 9.1 Modeling with Differential Equations

A Model for the Motion of a Spring

• Let’s now look at an example of a model from the physical sciences. We consider the motion of an object with mass m at the end of a vertical spring

Page 13: 9 Differential Equations. 9.1 Modeling with Differential Equations

A Model for the Motion of a Spring

• Hooke’s Law says that if the spring is stretched (or compressed) x units from its natural length, then it exerts a force that is proportional to x:

restoring force = –kx

where k is a positive constant (called the spring constant). If we ignore any external resisting forces (due to air resistance or friction) then, by Newton’s Second Law (force equals mass times acceleration), we have

Page 14: 9 Differential Equations. 9.1 Modeling with Differential Equations

A Model for the Motion of a Spring

• This is an example of what is called a second-order differential equation because it involves second derivatives.

• Let’s see what we can guess about the form of the solution directly from the equation. We can rewrite it in the form:

which says that the second derivative of x is proportional to x but has the opposite sign.

• Solve by integrating twice.

Page 15: 9 Differential Equations. 9.1 Modeling with Differential Equations

General Differential Equations

Page 16: 9 Differential Equations. 9.1 Modeling with Differential Equations

DefinitionA differential equation is an equation containing an unknown function and its derivatives.

32 xdx

dy

032

2

aydx

dy

dx

yd

364

3

3

ydx

dy

dx

yd

Examples:

y is the dependent variable and x is independent variable.

1.

2.

3.

Ordinary Differential Equations

Page 17: 9 Differential Equations. 9.1 Modeling with Differential Equations

Partial Differential Equation

• Examples: 02

2

2

2

y

u

x

u

04

4

4

4

t

u

x

u

t

u

t

u

x

u

2

2

2

2

u is the dependent variable and x and y are independent variables.

u is dependent variable and x and t are independent variables

1.

2.

3.

Page 18: 9 Differential Equations. 9.1 Modeling with Differential Equations

Order of a Differential Equation

• The order of the differential equation is the order of the highest derivative in the differential equation.

Differential Equation ORDER

32 x

dx

dy

0932

2

ydx

dy

dx

yd

364

3

3

ydx

dy

dx

yd

1

2

3

Page 19: 9 Differential Equations. 9.1 Modeling with Differential Equations

Degree of Differential Equation

Differential Equation Degree

032

2

aydx

dy

dx

yd

364

3

3

ydx

dy

dx

yd

0353

2

2

dx

dy

dx

yd

1

1

3

The degree of a differential equation is the power of the highest order derivative term in the differential equation.

Page 20: 9 Differential Equations. 9.1 Modeling with Differential Equations

Linear Differential Equation (section 9.5)

364

3

3

ydx

dy

dx

ydnon-linear

.0932

2

ydx

dy

dx

ydExamples: linear

A linear differential equation is any differential equation that can be written in the following form:                                                                                                                                                                                                                                                                                                                                                                                                                                 

The important thing to note about linear differential equations is that there are no products of the function, and its derivatives and neither the function or its derivatives occur to any power other than the first power.

non-linear

linear

32

22 x

dx

dyy

dx

ydx

ydx

dysin

non-linear

non-linear

Page 21: 9 Differential Equations. 9.1 Modeling with Differential Equations

21

Solving Differential EquationsSolving Differential Equations

Page 22: 9 Differential Equations. 9.1 Modeling with Differential Equations

The most general first order differential equation can be written as:

There is no general formula for the solution. We will look at two types of these and how to solve them:

Separable Equations (9.3)Linear Equations (9.5)

First Order Differential Equations

Page 23: 9 Differential Equations. 9.1 Modeling with Differential Equations

Differential Equations: Separable Equations

A separable differential equation is any differential equation that we can write in the following form

Now rewrite the differential equation as:

Integrate both sides. Use the initial condition to find the constant of integration.

Page 24: 9 Differential Equations. 9.1 Modeling with Differential Equations

Solve with y(0) = 1.Practice Example:

Step1:Divide through by y. We get:

Step2: Integrate both sides:

Step3: Solving for y gives: where

Step4: Use the initial condition: to get: A = 1 So the solution to the problem is: