Docsity

Problem Set 3 for Math 4820: Stability and Numerical Methods in Differential Equations - P, Assignments of Differential Equations

Toggle sidebar
bg1
Math 4820
D. Schwendeman Problem Set 3
Due:
Monday, 2/22/10
1. Consider the constant coefficient system y0=Ayfor the two cases
(i)A="−4 1
2−3#,(ii )A="−1 5
−2−3#
(a) For each system, find the largest value of the step size hsuch that the Euler’s method
is absolutely stable.
(b) Repeat part (a) for the explicit midpoint method.
2. The trapezoidal method is an implicit 2-stage RK method which can be written in the
form
wn=wn−1+h
2[f(tn−1, wn−1) + f(tn, wn)]
(a) Apply the trapezoidal method to the test equation y0=λy to show that
wn=1 + hλ/2
1−hλ/2wn−1
(b) Show that the trapezoidal method is A-stable.
3. Consider the initial-value problem
d
dts(t) = −s+ (s+ 1) c s(0) = 1
d
dtc(t) = s−(s+ 2) c c(0) = 0
where is a positive constant. This IVP arises as a model of a biochemical system. Let us
take =.02, and consider the interval 0 ≤t≤1. Note that for small values of this is a
stiff problem. There is an initial layer on the time scale t∼O() whose solution satisfies
d
dtc(t) = s−(s+ 2) c, c(0) = 0,with s= 1 (1)
to a first approximation, and an “outer” solution on an O(1) time scale determined by the
equations
d
dts(t) = −s+ (s+ 1) c, s(0) = 1,with s−(s+ 2) c= 0. (2)
(a) Solve equations (1) and (2) to find c(t) and s(t) in the initial layer and outer region,
respectively.
(b) The backward Euler method for this IVP is
sn=sn−1−h[sn−(sn+ 1) cn]s0= 1
cn=cn−1+h
[sn−(sn+ 2) cn]c0= 0
Compute a solution for 0 ≤t≤1 using h= 1/100. Plot your numerical solution for s(t)
and c(t) versus tand compare it with the solutions found in part (a). Describe your results.
Are the solutions accurate and/or stable? (Hint: even though the backward Euler method
is implicit, you can solve for snand cnexplicitly for this problem. To do this, first eliminate
cnfrom the two equations. The resulting equation is quadratic in snand can by solved
using the quadratic formula.)
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Problem Set 3 for Math 4820: Stability and Numerical Methods in Differential Equations - P and more Assignments Differential Equations in PDF only on Docsity!

Math 4820

D. Schwendeman Problem Set 3

Due: Monday, 2/22/

  1. Consider the constant coefficient system y′^ = Ay for the two cases

(i) A =

[ − 4 1 2 − 3

] , (ii) A =

[ − 1 5 − 2 − 3

]

(a) For each system, find the largest value of the step size h such that the Euler’s method is absolutely stable.

(b) Repeat part (a) for the explicit midpoint method.

  1. The trapezoidal method is an implicit 2-stage RK method which can be written in the form

wn = wn− 1 +

h 2 [f (tn− 1 , wn− 1 ) + f (tn, wn)]

(a) Apply the trapezoidal method to the test equation y′^ = λy to show that

wn =

( (^) 1 + hλ/ 2 1 − hλ/ 2

) wn− 1

(b) Show that the trapezoidal method is A-stable.

  1. Consider the initial-value problem

d dt s(t) = −s + (s + 1) c s(0) = 1

 d dt

c(t) = s − (s + 2) c c(0) = 0

where  is a positive constant. This IVP arises as a model of a biochemical system. Let us take  = .02, and consider the interval 0 ≤ t ≤ 1. Note that for small values of  this is a stiff problem. There is an initial layer on the time scale t ∼ O() whose solution satisfies

 d dt

c(t) = s − (s + 2) c, c(0) = 0, with s = 1 (1)

to a first approximation, and an “outer” solution on an O(1) time scale determined by the equations

d dt

s(t) = −s + (s + 1) c, s(0) = 1, with s − (s + 2) c = 0. (2)

(a) Solve equations (1) and (2) to find c(t) and s(t) in the initial layer and outer region, respectively.

(b) The backward Euler method for this IVP is

sn = sn− 1 − h [sn − (sn + 1) cn] s 0 = 1

cn = cn− 1 + h 

[sn − (sn + 2) cn] c 0 = 0

Compute a solution for 0 ≤ t ≤ 1 using h = 1/100. Plot your numerical solution for s(t) and c(t) versus t and compare it with the solutions found in part (a). Describe your results. Are the solutions accurate and/or stable? (Hint: even though the backward Euler method is implicit, you can solve for sn and cn explicitly for this problem. To do this, first eliminate cn from the two equations. The resulting equation is quadratic in sn and can by solved using the quadratic formula.)