


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Jeffrey Hellrung Friday, November 04, 2005 Math 269A, Assignment 05
method h ∈ forward Euler (0, 0 .005) 4 th^ order Runge-Kutta (0, 0 .006963) trapezoidal method (0, ∞) backward Euler (0, 0 .005)
dy dt
= f (y, t) y(t 0 ) = y 0 (D1)
whose solution is to be approximated using a general one-step method of the form
yn+1 = yn + dtΨ(yn, tn, dt) (M1).
Assume that the local truncation error is of order p + 1 so that
y(tn+1) = y(tn) + dtΨ(y(tn), tn, dt) + τndtp+
where y(t) is the solution of (D1) and τn is a constant that depends on derivatives of this solution.
(a) Derive an error estimate for the approximation obtained with (M1) of the form
|en| ≤ C 1 |e 0 | + C 2 dtp^ n = 1, 2 ,... , N
where C 1 and C 2 are constants and dt = tb− Nt a. Please state your assumptions concerning Ψ. (b) For a second order Runge-Kutta method of your choosing, give the explicit representation of Ψ(yn, tn, dt) that arises when the method is expressed in form (M1).
Solution
(a) We make a Lipschitz assumption on Ψ with respect to the first argument:
|Ψ(u, t, h) − Ψ(v, t, h)| ≤ L|u − v|
for some L ≥ 0. We further assume that the τn’s are bounded in absolute value by some M ≥ 0 (this occurs if the derivatives of the solution are bounded, for example). Then if we define
en = y(tn) − yn
we obtain the recurrence relation
|en+1| = |y(tn+1) − yn+1| ≤ |y(tn) − yn| + h |Ψ(y(tn), t, h) − Ψ(yn, t, h)| + |τn|hp+ ≤ (1 + Lh)|en| + |τn|hp+
The solution to the recurrence relation then gives
|en| ≤ (1 + Lh)n|e 0 | + hp+
n∑− 1
k=
|τk|(1 + Lh)n−k−^1 ≤ (1 + Lh)n|e 0 | + M hp+
n∑− 1
k=
(1 + Lh)k.
The summation is a geometric series, with sum
n∑− 1
k=
(1 + Lh)k^ =
(1 + Lh)n^ − 1 (1 + Lh) − 1
(1 + Lh)n^ − 1 Lh
for β between yk and yk + h 2 F (yk), so
yk+1 = yk + hF (yk) + h^2
Fy (yk)F (yk) + h^3
Fyy (β)F (yk)^2.
If yk = y(t), we get the local truncation error to be
τ = y(t + h) − yk+1 = h^3
y′′′(α) −
Fyy (β)F (yk)^2