4.6.2 · D4Ordinary Differential Equations

Exercises — Direction fields and Euler's method — visual - numerical intuition first

2,590 words12 min readBack to topic

Before we touch a single problem, here is every symbol you will meet, in plain words:

Now that those exist, the whole method is three moves:

Two more pieces of shorthand we lean on throughout — define them before we use them:

Finally, one piece of vocabulary that names the tiny error Euler makes each single step — and where it comes from:


Level 1 — Recognition

L1.1 Read a slope

Recall Solution

"Slope at a point" means: plug that point into . Here . The dash at tilts upward at slope (a 45° line). ✔

L1.2 One Euler step

Recall Solution

Stand at . Slope . Step: , at . Notice this is the Euler approximation to — a slight undershoot. ✔


Level 2 — Application

L2.1 Two steps by hand

Recall Solution

Step 0 at : slope . , . Step 1 at : slope . , . Exact solution is , so . Euler undershoots. Figure s02 (below) shows these two straight tangent steps (coral, dashed) staying below the true curve (slate solid). ✔

Figure s02Coarse vs fine Euler walk against the true curve of . The slate solid curve is the exact solution . The coral dashed path with circle markers is the two-step Euler walk ending at ; the green dashed path with square markers is the four-step walk ending at ; the true endpoint is . Both Euler paths sit below the curve, and the finer (green) one hugs it more closely.

Figure — Direction fields and Euler's method — visual - numerical intuition first

L2.2 Finer step, same problem

Recall Solution

Walk four times, recomputing the slope at each landing point:

  • :
  • :
  • :
  • : Closer to than the coarse : halving shrinks the error, exactly the 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. ✔

L2.3 A step that moves left

Recall Solution

A negative just means we walk left. The formula is unchanged. Stand at : slope . , at .


Level 3 — Analysis

L3.1 Over- or under-shoot?

Recall Solution

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 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 s01Why a concave-down solution makes Euler over-shoot. The slate solid curve bends downward (). From the lavender start point , 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).

Figure — Direction fields and Euler's method — visual - numerical intuition first

L3.2 Predict the error scaling

Recall Solution

Euler's global error is — proportional to (recall : error under a straight line, so halving halves it). ✔ (This is a first-order method; contrast with RK4, where halving cuts error by .)

L3.3 Count the truncation contributions

Recall Solution

(a) Steps . (b) Local error per step . Accumulated . Cross-check with the formula: global . Same. ✔


Level 4 — Synthesis

L4.1 Compare Euler to the exact separable solution

Recall Solution

(a) Separate: . With , , so and . (b) : . : . (c) Error . Euler under-shoots the convex exponential (). ✔

L4.2 Back out an unknown step size

Recall Solution

Slope at : . Euler says : Then . ✔


Level 5 — Mastery

L5.1 Improved (Heun) vs plain Euler — a first taste of higher order

Recall Solution

. Predictor step: at . . Average the two slopes:

  • Plain Euler one step: (error ).
  • Heun: (error ). Averaging the leaving-slope and the arriving-slope cancels the leading term — the seed idea behind RK4. ✔

L5.2 Watch a stiff problem blow up

Recall Solution

Update: .

  • The magnitude explodes and the sign flips each step, while the true answer decays quietly to . Why: stability of explicit Euler on requires . Here , whose size , so errors grow. Fixing this needs a tiny or an implicit method — see Stability and Stiff Equations. ✔

L5.3 Where does a solution even exist?

Recall Solution

(a) as : the solution blows up in finite time. Existence is only guaranteed on — this is exactly the finite-time-escape that Existence and Uniqueness (Picard–Lindelöf) warns can happen even for smooth . (b) Euler happily returns finite numbers on both sides of and gives no warning — it just keeps stepping. Numerically:

  • :
  • : The values grow fast but stay finite; the method cannot "see" the vertical asymptote. Lesson: always check existence analytically — the numerics won't. ✔

L5.4 Why is Euler even guaranteed to converge?

Recall Solution

The convergence proof needs to be Lipschitz in : there is a constant such that What this buys you: if two nearby curves start close, the ODE cannot fling them apart faster than the factor . So the tiny per-step local truncation errors (defined at the top, straight from Taylor's Theorem) accumulate in a controlled way rather than exploding, and the total is bounded by (constant). 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: (L5.3) is not globally Lipschitz — its -slope grows without bound — so the guarantee is void and the solution can escape to infinity. No Lipschitz bound, no convergence promise. ✔


Recall summary

Recall Rapid self-test

One-step Euler formula ::: What does mean for the error? ::: Error constant ; halving halves it (first order) What is the local truncation error and where does it come from? ::: The one-step slip , the term Taylor's theorem keeps but Euler throws away; size What does tell you about the curve? ::: It bends downward (concave, a frown); Euler over-shoots What is in the test equation ? ::: A growth/decay rate; decays, grows Stability condition of explicit Euler on ::: Condition on that guarantees convergence ::: Lipschitz in : Heun's one-step value for :::


Connections