Stand at (x0,y0)=(0,1). Slope =f(0,1)=1.
Step: y1=y0+hf=1+0.1(1)=1.1, at x1=0.1.
Notice this is the Euler approximation to e0.1≈1.1052 — a slight undershoot. ✔
Step 0 at (0,1): slope =0+1=1. y1=1+0.5(1)=1.5, x1=0.5.
Step 1 at (0.5,1.5): slope =0.5+1.5=2. y2=1.5+0.5(2)=2.5, x2=1.
y(1)≈2.5.
Exact solution is y=2ex−x−1, so y(1)=2e−2≈3.44. Euler undershoots.
Figure s02 (below) shows these two straight tangent steps (coral, dashed) staying below the true curve (slate solid). ✔
Figure s02 — Coarse vs fine Euler walk against the true curve of y′=x+y,y(0)=1. The slate solid curve is the exact solution y=2ex−x−1. The coral dashed path with circle markers is the h=0.5 two-step Euler walk ending at 2.5; the green dashed path with square markers is the h=0.25 four-step walk ending at 2.88; the true endpoint is 3.44. Both Euler paths sit below the curve, and the finer (green) one hugs it more closely.
(0.75,2.15625): f=2.90625⇒y4=2.15625+0.25(2.90625)=2.8828125y(1)≈2.883.
Closer to 3.44 than the coarse 2.5: halving h shrinks the error, exactly the O(h) behaviour.
In figure s02 above, this four-step walk is the green square-marker path — its shorter, more frequent steps hug the true curve much more tightly than the coarse two-step walk. ✔
A negativeh just means we walk left. The formula is unchanged.
Stand at (1,2): slope =f(1,2)=1⋅2=2.
y1=y0+hf=2+(−0.5)(2)=2−1=1, at x1=1+(−0.5)=0.5.
y(0.5)≈1. ✔
Euler walks along the tangent line at each point. For a concave-down curve, the curve bends below its tangents, so the tangent step lands above the true curve: Euler over-shoots.
(Mirror of the parent's convex example, where y′′>0 made tangents lie below and Euler under-shot.)
Figure s01 (below) shows the true solution (slate) as a frown; the coral tangent step from the start point shoots off above it, and the butter double-arrow marks the over-shoot gap. ✔
Figure s01 — Why a concave-down solution makes Euler over-shoot. The slate solid curve y=1+x−0.4x2 bends downward (y′′<0). From the lavender start point (xn,yn), the coral dashed tangent step overshoots to a point above the curve; the butter double-headed arrow measures the vertical over-shoot gap between Euler's landing (coral) and the true value (green).
Euler's global error is O(h) — proportional to h (recall O(h): error under a straight line, so halving h halves it).
error(0.05)≈21(0.020)=0.010. ✔
(This is a first-order method; contrast with RK4, where halving h cuts error by ∼16.)
(a) Steps N=L/h=2/0.01=200.
(b) Local error per step ≈ch2=0.5(0.01)2=0.5×10−4.
Accumulated ≈N⋅ch2=200×0.5×10−4=0.01.
Cross-check with the O(h) formula: global ≈cLh=0.5⋅2⋅0.01=0.01. Same. ✔
y3=−3(9)=−27
The magnitude explodes and the sign flips each step, while the true answer decays quietly to 0.
Why: stability of explicit Euler on y′=λy requires ∣1+hλ∣<1. Here 1+hλ=1−4=−3, whose size 3>1, so errors grow. Fixing this needs a tiny h or an implicit method — see Stability and Stiff Equations. ✔
(a) y=1−x1→∞ as x→1−: the solution blows up in finite time. Existence is only guaranteed on x<1 — this is exactly the finite-time-escape that Existence and Uniqueness (Picard–Lindelöf) warns can happen even for smooth f.
(b) Euler happily returns finite numbers on both sides of x=1 and gives no warning — it just keeps stepping. Numerically:
(0,1): f=1⇒y1=1+0.25(1)=1.25
(0.25,1.25): f=1.5625⇒y2=1.25+0.25(1.5625)=1.640625
The values grow fast but stay finite; the method cannot "see" the vertical asymptote. Lesson: always check existence analytically — the numerics won't. ✔
The convergence proof needs f to be Lipschitz in y: there is a constant M such that
∣f(x,y1)−f(x,y2)∣≤M∣y1−y2∣for all y1,y2.What this buys you: if two nearby curves start close, the ODE cannot fling them apart faster than the factor eM(x−x0). So the tiny per-step local truncation errors2h2y′′(ξ) (defined at the top, straight from Taylor's Theorem) accumulate in a controlled way rather than exploding, and the total is bounded by (constant)×h=O(h). This is the same Lipschitz condition that Existence and Uniqueness (Picard–Lindelöf) uses to guarantee a single solution curve exists in the first place.
What breaks it:f(x,y)=y2 (L5.3) is not globally Lipschitz — its y-slope 2y grows without bound — so the guarantee is void and the solution can escape to infinity. No Lipschitz bound, no convergence promise. ✔
One-step Euler formula ::: yn+1=yn+hf(xn,yn)
What does O(h) mean for the error? ::: Error ≤ constant ×h; halving h halves it (first order)
What is the local truncation error and where does it come from? ::: The one-step slip 2h2y′′(ξ), the term Taylor's theorem keeps but Euler throws away; size O(h2)
What does y′′<0 tell you about the curve? ::: It bends downward (concave, a frown); Euler over-shoots
What is λ in the test equation y′=λy? ::: A growth/decay rate; λ<0 decays, λ>0 grows
Stability condition of explicit Euler on y′=λy ::: ∣1+hλ∣<1
Condition on f that guarantees convergence ::: Lipschitz in y: ∣f(x,y1)−f(x,y2)∣≤M∣y1−y2∣
Heun's one-step value for y′=x+y,y(0)=1,h=1 ::: 3