This page builds every piece of vocabulary the parent note RK4 derivation leans on — starting from things a 12-year-old already knows and adding exactly one new idea at a time. Nothing here is assumed; if a symbol appears, it was defined a line earlier.
The letter x is the horizontal position (how far right we've walked). The letter y is the vertical position (the height). So f(x,y) is a rule that, given where you are on a map (a right-distance and a height), hands you back a single number.
In our topic that returned number is a slope — how tilted the path is at that spot. Look at Figure 1: at every point of the plane, f paints a little arrow showing which way to lean.
Picture a ramp. If for every 1 metre you walk right you rise 2 metres, the slope is 2. We give this "rate of rising" a shorthand symbol:
So the whole problem of our topic is a sentence:
y′=f(x,y)
which reads: "the slope of my curve, at any point, is given by the machine f." We know the slope-rule everywhere; we do not know the curve itself. Our job is to reconstruct the curve.
Knowing the slope everywhere still isn't enough — infinitely many curves have the same slope-field, just shifted up or down. We must nail down one starting point.
A slope-rule plus a starting point is called an Initial Value Problem (IVP). Figure 1's arrows are the slope-rule; a single dot pins the curve. From that dot, the arrows tell you where to go next.
Local errorO(h5): the mistake made in one single step.
Global errorO(h4): the total mistake after crossing a whole interval. Crossing takes about 1/h steps, so per-step O(h5) errors pile up into O(h4) — one power is lost. (More in Local vs Global Truncation Error.)
The parent note tunes RK4 to match the Taylor series of the real curve. What is that?
Here y′′ ("y double-prime") is the slope of the slope — how fast the tilt itself is changing (the curve's bending). RK4's cleverness: it reproduces those terms without ever computing y′′,y′′′,… — it fakes them with extra evaluations of f. See Taylor Series Methods for the version that computes them directly.
You don't need to derive these here — the parent note does. You only need to read ki as "a walked-height guess from one peek at the slope."Modified Euler / Heun's Method uses just two peeks (edges); RK4 uses four.