Professional Documents
Culture Documents
The variables that measure the quantities in our models fall into three basic types:
1. the independent variable,
2. the dependent variable or variables, and
3. often the parameters.
In this course the independent variable almost always measures time.
Each dependent variable measures a quantity that is a function of the independent
variable.
Parameters are quantities that do not change with time (or with the independent
variable) but that can be adjusted, perhaps by natural causes or by a scientist
running the experiment.
Example. Consider the motion of a skydiver falling through the air before she
opens her parachute.
Independent variable: t for time (measured in seconds)
Dependent variable: v for velocity (measured in meters per second)
Parameters:
1. g is the gravitational constant (measured in meters per second squared)
2. m is the mass of the skydiver (measured in kilograms)
3. k is the drag coefficient (measured in kilograms per meter)
kv 2 ,
kv 2 = m
dv
.
dt
1850
1900
1950
2000
p
300
250
200
150
100
50
1850
1900
1950
2000
dp
p
=kp 1
.
dt
N
What can we say about the long-term behavior of the solutions?
Qualitative analysis:
dp
dt
dp
dt
p=N
p
p=0
dp
dt
p=N
p
p=0
U.S. Population
1790
1800
1810
3.9
5.3
7.2
U.S. Pop
3.9
5.3
7.2
9.6
12.9
17.1
23.2
31.4
38.6
50.2
63.0
76.3
Rel Growth
0.03113
0.02986
0.02969
0.02907
0.03012
0.03082
0.02452
0.02435
0.02430
0.02071
0.01900
Year
1910
1920
1930
1940
1950
1960
1970
1980
1990
2000
2010
U.S. Pop
92.0
105.7
122.8
131.7
151.3
179.3
203.3
226.5
248.7
281.4
308.7
Rel Growth
0.01598
0.01457
0.01059
0.01082
0.01573
0.01450
0.01161
0.01002
0.01104
0.01066
0.02
0.01
p
50
100
150
200
250
300
350
0.02
0.01
p
50
100
150
200
250
300
350
dy
= f (t, y ) ?
dt
y (t0 ) = y0 ?
y
dy
= f (t, y (t))
dt
for all t in the interval a < t < b and
(b) y (t0 ) = y0 .
3. Be careful about notation: The distinction between the independent and the
dependent variables is important.
Example 1.
dy
= 2t
dt
Example 2.
dy
= 2y
dt
y (t) = t 2 + c,
y (t) = y0 e2t ,
dy
= 2t
dt
Example 2.
dy
= 2y
dt
6. Even some relatively simple looking differential equations have solutions that
cannot be expressed in terms of the functions that we know and love.
y
y (0) = 0.
-2
-1
-1
-2
Example 2.
Z
cos t 2 (2t) dt is easier.
A differential equation
dy
= f (t, y )
dt
is separable if it can be written in the form
dy
= (f1 (t)) (f2 (y )) .
dt
A separable differential equation can be solved using the method of substitution
by separating variables:
1
dy
= f1 (t)
f2 (y )
dt
Example 1.
dy
= 2ty 2
dt
Example 2.
dy
= y3 + t2
dt
dy
= 2ty 2 .
dt
Recall the No wrong answers principle: Lets apply it to the family of functions
y (t) =
t2
1
.
+k
Example.
dy
= 2ty 2
dt
1
2
1
t2 + 2
t2
1
2
Example.
dy
= 2ty 2
dt
t2
1
+2
<
t
<
2. For the
2
<
t
<
2,
and
for
the
third
initial
dy
= 2ty 2 ?
dt
dT
= 0.1(T 20).
dt
Use the solution T (t) = 20 + 50e0.1t to find t such that T (t) = 40.
80
80
60
60
40
40
20
20
10
20
30
10
20
30
Slope Fields
A slope field in the ty -plane is a
picture of a first-order differential
equation
dy
= f (t, y ).
dt
The right-hand side f (t, y ) of the differential equation defines a slope field, and the
graph of a solution must be everywhere tangent to it.
f (t, y )
y 0 (t)
(0, 2)
2
1,
3
8
9
8
9
2
1,
3
8
9
8
9
dy
= 2ty 2 ,
dt
y (0) = 2.
Example.
dy
=y t
dt
y
3
General solution:
y (t) = 1 + t + ket
-3
-3
dy
= f (t)
dt
Example.
dy
= cos t
dt
y
2
General solution:
y (t) = (sin t) + k
where k is an arbitrary
constant
-6
-3
3
-1
-2
2.
dy
= f (y )
dt
(autonomous)
Example.
dy
= y (1
dt
y)
One solution:
1
et
y (t) =
1 + et
Note that y (0) = 12 .
-8
-4
-1
Slope Field A
Slope Field B
-3
-2
-1
-3
-2
-1
-1
-1
-2
-2
-3
-3
Slope Field C
Slope Field D
-3
-2
-1
-3
-2
-1
-1
-1
-2
-2
-3
-3
3.
4.
5.
6.
dy
=y +1
dt
Slope Field C
dy
=1y
dt
dy
= y2 + y
dt
dy
= y (y 2 1)
dt
Slope Field D
-3
-2
-1
-3
-2
-1
-1
-1
-2
-2
-3
-3
1.
2.
7.
8.
dy
=t 1
dt
Slope Field A
dy
=t +1
dt
dy
=y t
dt
dy
=y +t
dt
Slope Field B
-3
-2
-1
-3
-2
-1
-1
-1
-2
-2
-3
-3
Eulers method
In Module 2, we discussed the following example to illustrate the fact that some
solutions cannot be expressed in terms of the typical functions that are used in
calculus.
y
y (0) = 0.
-2
-1
-1
-2
If we dont know a formula for the solution, how did we obtain the graph?
t,
y ( 1) =
1
.
2
-2
10
-3
Lets see what Eulers method does in this case. At first well use a ridiculously
large step size so that that we can distinguish between the actual solution and
the approximation produced by the algorithm.
tk
yk
1.0
0.50
mk
0.5
1
2
3
-1.0
-0.5
0.5
4
-0.5
1.0
tk
yk
1.0
0.50
mk
0.5
1.250
1
2
3
-1.0
-0.5
0.5
4
-0.5
1.0
tk
yk
1.0
0.50
0.5
0.12
mk
0.5
1.250
2
3
-1.0
-0.5
0.5
4
-0.5
1.0
tk
yk
1.0
0.50
1.250
0.5
0.12
0.516
mk
0.5
2
3
-1.0
-0.5
0.5
4
-0.5
1.0
tk
yk
1.0
0.50
1.250
0.5
0.12
0.516
0.0
0.38
mk
0.5
-1.0
-0.5
0.5
4
-0.5
1.0
tk
yk
1.0
0.50
1.250
0.5
0.12
0.516
0.0
0.38
0.147
0.5
0.46
mk
0.5
-1.0
-0.5
0.5
4
-0.5
1.0
dy
= f (t, y ), y (t0 ) = y0
dt
using the step size t.
y0
t0
t1
t2
t3
t4
Lets look more closely at one step of Eulers method and the key triangle:
Note the repeated use of the word usually on the last slide. There are
initial-value problems that are not amenable to any fixed-step-size algorithm.
Example. Consider the initial-value
problem
y
3
2
dy
= et sin y ,
dt
y (0) = 5.
0
-
-2
-3
y (0) = 5.
y
2
y
2
dy
= y3 + t2
dt
-2
-1
-1
-2
Example 2.
y
2
dy
= y2
dt
1
-1
-1
-2
Example 3.
y
2
dy
y
=
dt
t
1
-2
-1
-1
-2
y
d
y (t0 ) = y0
dy
= 1 + y 2,
dt
y (0) = 0
Example.
y
3
dy
= 1 + y 2,
dt
y (0) = 0
2
- 2
-1
-2
-3
dy
= 3 y sin 2t,
dt
y (0) = 0
y2 (t) =
8
sin3 t,
27
r
and
y3 (t) =
8
sin3 t.
27
1
2
-2
1
2
-2
- 12
1
2
- 12
y2 (t) =
8
27
q
8
y3 (t) = 27
sin3 t
1
2
-
- 12
-2
-2
- 12
y (t0 ) = y0
for all t in the interval t0 < t < t0 + (where is some positive number), then
y1 (t) = y2 (t)
for t0 < t < t0 + . That is, the solution to the initial-value problem is unique.
y
2
dy
= 3 y sin 2t,
dt
1
-2
Example 2.
dy
= y(1
dt
y)
-8
-4
-1
Example 3.
dy
= et sin y
dt
y
2p
Recall that every autonomous equation is separable, but the integrals may be
impossible to calculate in terms of standard functions.
Basic Fact: Given the graph of one solution to an autonomous equation, we can
get the graphs of many other solutions by translating that graph left or right.
Example.
y
2
dy
= y (1 y )
dt
1
-8
-4
-1
The slope field has so much redundant information that we can replace it with the
phase line.
Example.
y
2
dy
= y (1 y )
dt
1
-8
-4
-1
y 2 cosHyL
12
source
6
s y = 3
2
?
sink
-5
node
source
y=
6
s y =0
6
s y =
2
sink
-12
y=
3
2
y
6
source
6
s y = 3
2
?
sink
-6
node
source
y=
6
s y =0
6
s y =
3
2
sink
-6
y=
dy
= y (1 y ) a.
dt
1
dy
= y (1 y )
Example. Consider
dt
8
1
a=
.
8
dy
dt
1
4
?
s
s
?
a=0
a=
1
8
1
dy
= y (1 y )
Example. Consider
dt
4
1
a=
.
4
dy
dt
1
4
?
s
?
s
6
s
s
?
?
a=0
a=
1
8
a=
1
4
dy
3
Example. Consider
= y (1 y )
dt
8
3
a=
.
8
dy
dt
1
4
?
s
?
s
?
s
6
s
?
?
a=0
a=
1
8
a=
1
4
a=
3
8
dy
= y(1
dt
y)
1
4
?
s
6
s
a=0
?
s
6
s
a=
1
8
a=
1
4
a=
3
8
y
1
1
4
y)
a,
we say that
1. All of the systems (differential equations and their phase lines) with a < 1/4
are qualitatively equivalent, and
2. all of the systems with a > 1/4 are qualitatively equivalent.
3. The value a = 1/4 is a bifurcation value for this one-parameter family.
Note: Some one-parameter families of differential equations have more than one
bifurcation value.
p
dp
= kp 1
Bifurcation diagram for
C
dt
N
dp
dt
p
dp
= kp 1
C
dt
N
p
N
kN
4
A 200 liter tank initially contains 100 liters of salt water containing 1000 grams of
salt. Suppose salt water that contains 35 grams of salt per liter is pumped into the
tank at the rate of 4 liters per minute, while a well-mixed solution leaves the tank at
a rate of 2 liters per minute. How much salt is in the tank when the tank fills up?
ds
= (rate in) (rate out)
dt
A 200 liter tank initially contains 100 liters of salt water containing 1000 grams of
salt. Suppose salt water that contains 35 grams of salt per liter is pumped into the
tank at the rate of 4 liters per minute, while a well-mixed solution leaves the tank at
a rate of 2 liters per minute. How much salt is in the tank when the tank fills up?
ds
= (rate in) (rate out)
dt
= 140
s
50 + t
Linear:
dy
dy
= f (t, y ) can be written as
= a(t)y + b(t)
dt
dt
dy
= (cos t)y
dt
dy
= t cos y
dt
dy
= y t2
dt
dy
= y2 t
dt
dy
= y t2
dt
ds
s
= 140
dt
50 + t
Example.
dy
ty
=
dt
1 + t2
y
5
-3
-5
Linearity Principles
Why are linear equations so much more amenable to analytic techniques than
nonlinear equations? One reason is that their solutions satisfy important linearity
principles.
Lets begin with homogeneous linear equations:
The Linearity Principle for Homogeneous Equations. If yh (t) is a solution of a
homogeneous linear differential equation
dy
= a(t)y ,
dt
then any constant multiple yk (t) = k yh (t) of yh (t) is also a solution. In other
words, given a constant k 6= 1 and a nonzero solution yh (t), we obtain another
solution by multiplying yh (t) by k .
Example.
dy
ty
=
dt
1 + t2
y
5
General solution:
y (t) =
k
1 + t2
-3
There are at least two ways to prove the Linearity Principle for homogeneous
equations. Heres one: Assuming that yh (t) is one solution to the equation and
yk (t) = k yh (t), we have
Note that the Linearity Principle is not true for nonlinear equations. For example,
consider the nonlinear equation
dy
= y 2.
dt
We can check that the function y1 (t) =
1
is a solution:
1t
2
is not a solution:
1t
dy
= a(t) y .
dt
of the associated
solution of the
of a
+
=
homogeneous
nonhomogeneous
nonhomogeneous
equation
linear
equation
linear
equation
Example.
dy
ty
2t 2 + 1
=
+
dt
1 + t 2 4t 2 + 4
Example.
y
5
2t 2 + 1
dy
ty
+
=
dt
1 + t 2 4t 2 + 4
General solution:
y (t) =
-3
t
k
+
4
1 + t2
-5
Example 1.
dy
= 2y + 3et/2
dt
Example 1.
y
8
dy
= 2y + 3et/2
dt
6
4
General solution:
2
-2
-1
1
-2
Example 2.
dy
= y + 2 cos 4t
dt
+ 4 = 2
4 + = 0.
Example 2.
dy
= y + 2 cos 4t
dt
General solution:
y (t) =
2
8
cos 4t +
sin 4t
17
17
+ k et
y
2
-1
-2
Example 3.
dy
= 3y + 2e3t
dt
Example 3.
y
4
dy
= 3y + 2e3t
dt
General solution:
-1
-4
as
dy
+ g(t)y = b(t).
dt
g(t) dt )
d
((t) y ) = (t) b(t).
dt
Example.
dy
y
= + t cos t
dt
t
y
30
-10
10
-30
dy
= 3y + 2e3t
dt
Now that we know the secret of the magic function we can solve the mixing
problem from the beginning of Module 9.1.
A 200 liter tank initially contains 100 liters of salt water containing 1000 grams of
salt. Suppose salt water that contains 35 grams of salt per liter is pumped into the
tank at the rate of 4 liters per minute, while a well-mixed solution leaves the tank at
a rate of 2 liters per minute. How much salt is in the tank when the tank fills up?
ds
s
= 140
,
dt
50 + t
s(0) = 1000
S
P
l
tia
en s
er on
iff ti
D ua
q
E
b
u
P
g
in
sh
li
d/ De
ar
Blanch
vaney/
Halll
l
tia
en s
er on
iff ti
D ua
q
E
evaney
ard /D
Blanch
W
P
b
u
P
g
in
sh
li
/Halllll
d 2x
It has the form
=f
dt 2
dx
d 2y
dy
x,
or
= f y,
.
dt
dt
dt 2
Other examples:
d 2x
dx
(1 x 2 )
+x =0
dt
dt 2
d 2x
dx
+b
+ kx + x 3 = 0
2
dt
dt
Predator-prey system
We begin our discussion of first-order systems of equations with the most basic
predator-prey system. The prey are often referred to as rabbits and the predators
are often referred to as foxes. The most basic predator-prey system is based on
the following four assumptions:
I
The foxes eat the rabbits, and the rate at which the rabbits are eaten is
proportional to the rate at which the foxes and rabbits interact.
The rate at which foxes are born is proportional to the number of rabbits eaten
by foxes which, by the second assumption, is proportional to the rate at which
the foxes and rabbits interact.
The foxes eat the rabbits, and the rate at which the rabbits are eaten is
proportional to the rate at which the foxes and rabbits interact.
The rate at which foxes are born is proportional to the number of rabbits eaten
by foxes which, by the second assumption, is proportional to the rate at which
the foxes and rabbits interact.
These two differential equations taken together form the predator-prey system
dR
= aR bRF
dt
dF
= cF + dRF
dt
where a, b, c, and d are positive parameters.
If the dependent variables are x and y , the first-order system has the form
dx
= f (x, y )
dt
dy
= g(x, y ).
dt
Lets discuss some terminology for systems of differential equations, and well do
that using the predator-prey system with the parameters a = 2, b = 1.2, c = 1,
and d = 0.9.
Initial condition:
Solution to an initial-value problem:
More terminology:
I
component graphs
=
More terminology:
I
phase plane
=
More terminology:
I
More terminology:
I
More terminology:
F
I
phase portrait
4
Reduction of order
Although these two systems seem quite different, they have more in common than
you might think at first. In particular, the mass-spring system can also be written
as a first-order system by introducing the new variable v (which is just dy /dt).
We get
Since the mass-spring system can be expressed as a system, all of the terms that
we discussed for the predator-prey system apply to the mass-spring system as
well:
I
component graphs
solution curve
phase plane
equilibrium solutions
phase portrait
y2 (t) = 2 sin t,
1. y1 (t) = sin t
2. y2 (t) = 2 sin t
3. y3 (t) = cos t
Consider the solution (y3 (t), v3 (t)) = (cos t, sin t) that we discussed in the
previous module. Lets express it in vector notation:
dY
= F(Y)
dt
where
F(Y) = F
y
v
v
y
x, y
dx
= 2x 1
dt
dy
= 3y 1
dt
x
2
y
3
xy
2xy .
x, y
t
x, y
We start with the mass-spring system and add a term that models damping.
Assumption: The damping force is proportional to the speed of the mass and it
acts as a restoring force.
d 2y
dy
+b
+ ky = 0
2
dt
dt
d 2y
dy
+ ky = 0.
+b
2
dt
dt
d 2y
dy
+ 2y = 0.
+3
2
dt
dt