4.8.22 · D1Numerical Methods

Foundations — ODE solvers — Euler's method (derivation, global error)

1,970 words9 min readBack to topic

This page builds every symbol the parent note fires at you — , , , , , , , , — starting from a smart 12-year-old who has never seen any of them. Read top to bottom; nothing appears before it is earned.


1. A function and its graph — the ground floor

Before anything else: a function is a machine. You feed it a number , it returns a number, which we call . We write : " equals of ."

  • Plain words: is the input (how far right), is the output (how high).
  • Picture: plot the point for every input. The dots join into a curve — the graph.
  • Why we need it: the whole topic is about finding an unknown curve . We must be crystal-clear that is a height that changes as moves.
Figure — ODE solvers — Euler's method (derivation, global error)

2. Slope — how steep, and which way

Pick two points on any straight line. Slope answers: for every 1 step right, how many steps up?

  • Plain words: rise over run. Positive = uphill, negative = downhill, zero = flat.
  • Picture: a right triangle hugging the line — horizontal leg is the run, vertical leg is the rise.
  • Why we need it: Euler's whole trick is "walk in the direction of the slope." If you can't read a slope off a triangle, nothing later makes sense.
Figure — ODE solvers — Euler's method (derivation, global error)

3. The derivative — the slope of a curve

A curve bends, so its steepness changes from point to point. The derivative is the slope of the curve at one single point — the slope of the tangent line just kissing the curve there.

We write it (read "y prime") or (read "dee-y by dee-x").

  • Plain words: = the instantaneous steepness of the curve at a point.
  • Picture: zoom into the curve until it looks straight; that straight line's slope is .
  • Why we need it: the differential equation is made of . It is the star of the whole show.

4. The tangent line — the object Euler actually walks along

Figure — ODE solvers — Euler's method (derivation, global error)
  • Plain words: the tangent is the straight line touching the curve at one point with the same slope as the curve there.
  • Picture (figure above): the curve in violet, its tangent in orange at one point. Notice the tangent leaves the curve as you move away — that gap is the seed of Euler's error.
  • Why we need it: Euler replaces the curve, over one small step, by its tangent. The gap between tangent and curve is the local truncation error the parent note names.

5. The function — a slope at every point

Here is the leap. Normally slope needs a curve first. But a differential equation flips it: it hands you a rule that spits out a slope at any point in the plane — before you know the curve.

  • Plain words: "the steepness of my unknown curve, whenever it passes through the point , equals ."
  • Picture: at a grid of points draw a tiny arrow with slope . This is a direction field — a whole meadow of little arrows.
  • Why we need it: is the only information we get. The curve is hidden; the arrows are given. Euler's job is to trace a path that stays tangent to these arrows.
Figure — ODE solvers — Euler's method (derivation, global error)

6. The Initial Value Problem — a starting pin

Arrows fill the whole plane, so infinitely many curves follow them (one through each height). To pick the curve we nail down one point:

  • Plain words: "at input , the height is " — a pin stuck in the meadow.
  • Picture: one dot the curve must pass through; only one arrow-following path threads that dot.
  • Why we need it: without the pin there is no unique answer to compute. are just the coordinates of the pin — the subscript means "the zeroth / starting one."

7. Subscripts and the step — the walker's footprints

Euler walks in equal horizontal strides. Name them:

  • = the step size, the fixed horizontal distance of one stride.

  • = the after strides: .

  • = our estimate of the height there (not the true height — a computed guess).

  • Plain words: is a counter (0, 1, 2, …). is the -th footprint.

  • Picture: a staircase of dots marching right, each apart horizontally.

  • Why we need it: the update formula is written entirely in these labels. = "next height," = "current height."


8. Big-O notation — measuring smallness

When we say the error is ("order h") we mean: halve , and the error roughly halves. means: halve , error drops to a quarter.

  • Plain words: = "shrinks like the -th power of the step."
  • Picture: plot error vs on a log-log graph — is a straight line of slope 1, a steeper slope-2 line.
  • Why we need it: the entire punchline — "Euler is first order" — is the statement global error is .

9. The leftover symbols: , , ,

These appear only in the error bound. Meet them so they're not scary.

  • (Greek "ksi") — some unknown point between and . Taylor's theorem promises the discarded term is exactly for one such point; we never need its value, only that it exists. Think "a mystery point living inside the step."
  • — the derivative of the derivative: how fast the slope itself changes, i.e. how much the curve bends (curvature). More bend = tangent leaves the curve faster = bigger error.
  • — a ceiling on the bending: everywhere on the interval. A single number bounding the worst curvature.
  • — the Lipschitz constant (see Lipschitz Continuity): a number saying "if two starting heights differ by , their slopes differ by at most ." It measures how fast nearby solution curves can spread apart.
  • — the exponential growth factor. Errors made early get re-amplified at each later step; the worst-case pile-up grows like this exponential. Bigger (curves fan out fast) = harsher amplification.

Prerequisite map

Function y = g of x

Slope rise over run

Derivative y prime slope at a point

Tangent line touches with same slope

Slope rule f of x and y

Direction field of arrows

IVP with starting pin x0 y0

Step h and footprints xn yn

Euler update walk the tangent

Taylor expansion

Big O notation of h

Global error is O of h

Lipschitz constant L

Euler method derivation and global error

This map feeds directly into the parent topic. The Taylor branch is developed in Taylor Series Expansion; the forward-difference view lives in Finite Difference Approximations; the amplification factor is bounded via Lipschitz Continuity; and where small still fails you meet Numerical Stability, Backward Euler & Implicit Methods, and the higher-order Runge-Kutta Methods.


Equipment checklist

Read a curve's height off its graph
Yes — is the point at horizontal , height .
Compute a slope from two points
rise over run = .
Say what means in words
the slope of the tangent to the curve at one point.
Read as the same thing
tiny change in divided by tiny change in — identical to .
Explain what gives you
the slope the solution must have when passing through .
Say why you can't just integrate
needs , which you don't yet know — hence a stepwise method.
State what the pin does
selects one curve from the whole direction field.
Distinguish from
= our estimate; = the true height.
Interpret vs
halve → error halves () vs error quarters ().
Say what measures
how fast the slope changes — the bending/curvature of the curve.
Say what the Lipschitz constant measures
how fast nearby solution curves can spread apart.
Explain where comes from
repeated per-step amplification .