Lecture Notes 10 5
Lecture Notes 10 5
Lecture Notes 10 5
Since
dy
= y − 2x, then g(x, y) =
dx
1
(i) y − 2x (ii) 2x + 2 − ex (iii) 3e 2
y1 = y0 + g(x0, y0) h
(0.4, 1.4) y1 = 2x1 + 2 - ex1
= y0 + (y0 - 2x 0) h
= 2(1) + 2 - e1
= 1 + (1 - 2(0)) (0.4)
º 1.3
= 1.4
x1 = x 0 + h
= 0 + 0.4 = 0.4
dy
Figure 10.3 (Euler approximation to dx
= y − 2x, h = 0.4)
184 Chapter 10. Differential Equations (LECTURE NOTES 10)
dy
(b) approximate dx
= y − 2x, when subinterval h = 0.1
As before,
dy
= y − 2x, then g(x, y) =
dx
1
(i) y − 2x (ii) 2x + 2 − ex (iii) 3e 2
dy
2. Approximate dx
= xy, start f (1) = 3, over [1, 2], using 10 subintervals.
Since
dy
= xy, then g(x, y) =
dx
1 1 2
(i) 3e− 2 e 2 x (ii) 2x + 2 − ex (iii) xy
and so
y1 = y0 + g(x0 , y0 )h = 3 + 3(0.1) =
(i) 3.1 (ii) 3.3 (iii) 3.8,
TI-84 calculator: For Euler’s approximation, define Y1 = XY , initialize X and Y with 0.9 and 3, respectively:
0.9 → X, 3 → Y ; type Euler’s approximation: X + 0.1 → X : Y + Y1 × 0.1 → Y ENTER for 3.3, then
dy
ENTER for 3.66, and so on. Recall dx
= xy is a separable differential equation whose particular solution,
1 1 2
where (x, y) = (1, 3), is y = 3e− 2 e2x as explained in previous section 10.1 of the lecture notes. So, for actual
1 1 2
solution, define Y2 = 3e− 2 e 2 X , then VARS, Y-VARS ENTER Y2 ENTER Y2 (1.1) ENTER for 3.33, . . . .
Since
dy
= 0.02y(y + 1)(y + 3), then g(t, y) =
dt
(i) 0.02y(y − 1)(y + 3) (ii) 2x + 2 − et (iii) ty
y1 = y0 + g(t0 , y0 )h = 5 + 4.8(1) =
Section 4. Applications of Differential Equations (LECTURE NOTES 10) 187
and since h = 1,
Euler’s Approximation
y0 = 5
i ti yi = yi−1 + (0.02yi−1 (yi−1 + 1)(yi−1 + 3))(1), i ≥ 1
0 0 9.800
1 1 36.895
2 2 1152.471
3 3
For Euler’s approximation, define Y1 = 0.02Y (Y + 1)(Y + 3), initialize X and Y with -1 and 5, respectively:
−1 → X, 5 → Y ; type Euler’s approximation: X + 1 → X : Y + Y1 × 1 → Y ENTER for 9.8, then ENTER
dy
for 36.895, and so on. Notice there is no actual solution because, although dt
= 0.02y(y + 1)(y + 3) is a
50
separable differential equation where, with the aid of wolfram’s integrator web site, gives 3
ln y − 25 ln(y +
25
1) + 3
ln(y + 3) = t, there is no closed analytic solution for y that I am aware of.
1
dy = k dt separation of variables
N −y
1
Z Z
dy = k dt integrate both sides
N −y
1 0+1
− ln(N − y) = k · t + C notice − ln(N − y) not ln(N − y) because of −y
0+1
ln(N − y) = −kt + C
eln(N −y) = e−kt+C
N − y = e−kt+C
so e−10k = 14400
24000
or −10k = ln 0.6, so
k ≈ (i) 0.05108 (ii) 0.08244 (iii) 0.09232.
2. Application: logistic growth rate model, dy
dt
= k 1 − Ny y.
After 4 days, an initial butterfly population of 15 grows to 56. If the restricted
ecosystem supports 300 butterflies, how many butterflies will there be in 12
days? Assuming the butterfly population grows fastest when there are N2 =
300
2
= 150 butterflies, when does this happen?
N N − y0
y= , b=
1 + be−kt y0
in other words, since
N − y0 300 − 15
b= = = 19,
y0 15
N 300 300 300
so y = 1+be−kt
= (i) 1+19e−kt
(ii) 1+20e−kt
(iii) 1+21e−kt
dy dy/dt
=
dx dx/dt
dy 3y − 3xy
=
dx −2x + xy
dy y(3 − 3x)
=
dx x(−2 + y)
−2 + y 3 − 3x
dy = dx separation of variables
y x
Section 4. Applications of Differential Equations (LECTURE NOTES 10) 191
!
2 3
Z Z
− + 1 dy = − 3 dx
y x
1 0+1 3
−2 ln y + y = 3 ln x − x0+1 + C
1+0 1+0
so (i) 2 ln y + 12 y 2 = 3 ln x − 32 x3 + C
(ii) −2 ln y + y = 3 ln x − 3x + C
and so
C = (i) 2 (ii) 3 (iii) 4
3.5
2.5
y
(1,2)
2
1.5
1
(1,1)
0.5
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Equilibrium occurs when number of foxes and rabbits does not change;
when both differential equations equal zero:
dy
= 3y − 3xy = 0
dt
192 Chapter 10. Differential Equations (LECTURE NOTES 10)
dx
= −2x + xy = 0,
dt
either if both (x, y) = (0, 0) when there are no rabbits or foxes
or 3y − 3xy = 3y(1 − x) = 0 and −2x + xy = x(−2 + y) = 0 so
(a) Mixture equation. If y = f (t) is the amount of pepper in wine then change
in pepper over time is, since no pepper is being added,
dy
= (rate of pepper in) - (rate of pepper out)
dt
dy y
= 0− grams per liter (2 liters per hour) ,
dt V
dy 2y
= − ,
dt V
and also the change in volume of wine is
dV
= (rate of wine in) - (rate of wine out)
dt
dV
= 3−2 =1
dt
dV = 1 dt, separation of variables
Z Z
dV = 1 dt
V (t) = t + C,
200 = 0 + C since V = 200, t = 0
or
5 × 2002 5 × 2002
y= = ≈
(t + 200)2 (25 + 200)2