








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!









Math 4820
Due: Thursday, 2/11/
wn = wn− 1 + h 4
[ f (tn− 1 , wn− 1 ) + 3f
( tn− 1 +
h , wn− 1 +
hf (tn− 1 , wn− 1 )
)] ,
which is a single-step method for the ODE y′^ = f (t, y).
(a) Find the stepping function φ(t, y, h) for Heun’s method.
(b) Show that the truncation error has the form τn = Cnhp^ +... as h → 0. Find Cn and the order of accuracy p.
(c) Show that the stepping function satisfies a Lipschitz condition in the variable y assuming that f (t, y) satisfies a Lipschitz condition in y with constant L > 0.
(d) Write a code based on Heun’s method to solve the IVP
y′^ = e−t^ − y, 0 ≤ t ≤ 4 , y(0) = 0.
Solve the IVP numerically for h = 4/N , N = 20, 40, 80 and 160. Find the global error for each case and verify the order of accuracy found in part (b).
y′ 1 = y 1 −
y 1 y 2
y′ 2 = −
y 2 +
y 1 y 2
^ for 0^ ≤^ t^ ≤^ 15,
with initial conditions y 1 (0) = 3 and y 2 (0) = α, 0 < α < 2. It is well known that solutions for the two populations of this predator-prey model oscillate in time t with period T (that depends of the choice for α). Write a code to solve the IVP based on standard Runge- Kutta order 4 (RK4) using h = 15/N , where N = 1500. Consider the cases α = 0.5, 1. 0 and 1.5. Plot the populations versus time and estimate T for each case. (It is known that T → 2 π
√ 4 /3 as α → 2.)
y′′^ + 2y′^ + y = 0, 0 ≤ t ≤ 4 , y(0) = 0, y′(0) = 1/,
where > 0 is a parameter.
(a) Find the exact solution. Plot y(t) for = 0.5 and = 0.1. Describe the solution behavior for each value of . (Work out the exact solution by hand, but then you can make the plots using Maple or Matlab, for example.)
(b) Write the second-order ODE as a system of two first-order ODEs. Solve the correspond- ing IVP using Euler’s method with h = 4/N , where N = 20, 40 and 80. Plot the numerical solution versus the exact solution for each N and for each value of . Describe the behavior of the numerical solution for each case.