Consider the initial value problem {y′=1−y^2,t>0, y(0)=e−1/e+1}. Is there a way I find a limit on the mesh-size h such that the explicit Euler method is stable? Do I need to solve the IVP to find it?
oopsteekwe
Answered question
2022-10-21
Consider the initial value problem
Is there a way I find a limit on the mesh-size such that the explicit Euler method is stable? Do I need to solve the IVP to find it? Thanks in advance. Edit: After looking through a number of textbooks and online resources I can see that they apply a method to a linear test problem and then solve . Is there any way I can do something similar to solve for in this nonlinear case.
Answer & Explanation
elulamami
Beginner2022-10-22Added 22 answers
If you have an explicit global Lipschitz constant, then you can go through the linear development in more or less the same manner, but when you don't that won't work. And here there is no global Lipschitz constant at all, much less one you can compute.
That said here you can view things in a rather elementary manner. The point is that the true IVP stays in if it begins there, so you'll have stability if your method does the same. Since while you are in , that means that as you go forward in time you want when is any number between −1 and 1. From here you can readily infer a condition on . If you want backward-in-time stability (which the true IVP also has) then you want , which winds up resulting in the same condition on h in the end.
This is not much different from the stability analysis of with explicit Euler, where everything is OK going forward in time as long as you avoid crossing the -axis. Note that like that simpler problem, what I've said here does not imply you will have blowup if the method exits . In particular, you could have oscillation around , or you could just decay to from above instead of below. In other words the condition we generate here is sufficient, not necessary, for stability.