


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An analysis of the stability of explicit and implicit euler methods for solving the initial value problem of a first order ordinary differential equation (ode) y′ = −y + 1. How to find the region of absolute stability for each method, and discusses the behavior of the solutions when the step size h is equal to 0.5, 1.5, and 2.1.
Typology: Assignments
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Math 151B Homework #3 – due Friday 1/30, in class
Consider the intial value problem
y′^ = −y +
t
, 1 ≤ t ≤ 100 , y(1) = 1
a. Find the region of absolute stability for explicit Euler’s method. Answer: Explicit Euler’s method uses the discrete difference equation
yi+1 = yi + hf (ti, yi) = yi + h(−yi + 1/ti) = (1 − h)yi + h/ti
If we introduce an error of δi into the computation of yi, we get
yi+1 + δi+1 = (1 − h)(yi + δi) + h/ti
Subract the original equation from this and get
δi+1 = (1 − h)δi
As long as h ≤ 2, Euler’s method is absolutely stable. b. What do you expect to happen when h = 0.5? Answer: If h = 0.5, then (1 − h) is positive and less than 1. So the solution should be stable and free from overshoot.
c. What do you expect to happen when h = 1.5? Answer: If h = 1.5, then (1 − h) is negative and greater than −1. So the solution will be absolutely stable, but with overshoot problems.
d. What do you expect to happen when h = 2.1? Answer: If h > 2 then the solution will be unstable, and numerical errors will grow exponentially. e. Confirm the above numerically/graphically. Answer:
0
0 10 20 30 40 50 60 70 80 90 100 110
Exact Euler 0. Euler 1.
When h = 0.5, we get a very good approximation. When h = 1.5, we have some overshoot problems, but the absolute magnitude decays in time. Finally, when h = 2.1, the errors grow without bound.
0 10 20 30 40 50 60 70 80 90 100 110