Initial Value Variation and the Error in the Euler Method📂Numerical Analysis
Initial Value Variation and the Error in the Euler Method
Theorem
The solution Y(x) to the initial value problem {y′=f(x,y)y(x0)=Y0 defined in [x0,b]×R with respect to f, is Y∈C3[x0,b] if fy(x,y)=∂y∂f(x,y) and fyy(x,y)=∂y2∂2f(x,y) are both continuous and bounded. Let’s say the initial value yh(x0) satisfies Y0−yh(x0)=δ0h+O(h2). Then, the error produced by the Euler method satisfies the following for the solution D(x) to the linear initial value problem
⎩⎨⎧D’(x)=fy(x,Y(x))D(x)+21Y’’(x)D(x0)=δ0.
Y(xn)−yh(xn)=D(xn)h+O(h2)
Explanation
The statement that the initial value yh(x0) satisfies Y0−yh(x0)=δ0h+O(h2) implies that the initial value can slightly differ from the true value. Moreover, the error that arises from this difference can further be reduced if one can calculate D.
Strategy: Assume a strong Lipschitz condition and establish ϵn=O(h2), gn, and kn to prove it. The proof technique might seem a bit stubborn due to the extensive manipulation of formulas, which is quite common in numerical analysis. Though it might not be a beautiful proof, becoming familiar with this method itself is beneficial.
xi:=x0+ih, especially, xn+1−xn=h. For convenience, let’s use
Y(xn):=Yny(xn):=yn
and express the error at the nth step as ϵn like this.
ϵn:=Y(xn)−y(xn)
Part 1.
If we take the 3rd Taylor expansion of Y(xn+1) with respect to xn, for some xn≤ξn≤xn+1,
Yn+1=Yn+hY’n+2h2Y’’(xn)+6h3Y’’’(ξn)
from which we get the following formula using the Euler approximation.
ϵn+1=ϵn+h(f(xn,Yn)−f(xn,yn))+2h2Y’’(xn)+6h3Y’’’(ξn)
Viewing f(xn,yn) of (1) as a function of yn and taking its Taylor expansion, for some ζn∈H{yn,Yn},
f(xn,yn)=f(xn,Yn)+(yn−Yn)fy(xn,Yn)+21(yn−Yn)2fyy(xn,ζn)
Therefore,
ϵn+1=ϵn+h(ϵnfy(xn,Yn)−21ϵ2fyy(xn,ζn))+2h2Y’’(xn)+6h3Y’’’(ξn)
Summarizing,
ϵn+1=[1+fy(xn,Yn)]ϵn+2h2Y’’(xn)+6h3Y’’’(ξn)−21hfyy(xn,ζn)ϵn2
Since ϵ=O(h),
6h3Y’’’(ξn)−21hfyy(xn,ζn)ϵn2=O(h3)
and assuming O(h3) is sufficiently small, we can define gn+1 with O(h3) eliminated as follows.
gn+1:=[1+fy(xn,Yn)]gn+2h2Y’’(xn)
Given g0=hδ0 from the assumption, we set gn=hδn, and eliminating h from both sides gives
δn+1:=δn+h[fy(xn,Yn)δn+21Y’’(xn)]
Slightly organizing this gives
hδn+1−δn=fy(xn,Yn)δn+21Y’’(xn)
noticing the form of this equation, it resembles the linear initial value problem ⎩⎨⎧D’(x)=fy(x,Y(x))D(x)+21Y’’(x)D(x0)=δ0. Eventually, δn is the Euler approximate solution of D(xn), i.e., D(xn)−δn=O(h). By the definition of gn, multiplying both sides by h gives
gn=D(xn)h+O(h2)
Part 3.
If we set kn:=en−gn,
kn+1=[1+hfh(xn,yn)]kn+O(h3)
and since fy is bounded, for some K≥0,
∣kn+1∣≤(1+hK)∣kn∣+O(h3)
Unfolding recursively gives
∣kn∣=O(h2)+O(h3)=O(h2)
Therefore,
ϵn===gn+kn[hD(xn)+O(h2)]+O(h2)O(h2)
■
Atkinson. (1989). An Introduction to Numerical Analysis(2nd Edition): p352~354. ↩︎