4.8.27 · D1Numerical Methods

Foundations — Systems of ODEs — RK4 for systems

1,939 words9 min readBack to topic

This page assumes zero prior notation. We build every symbol the parent note 4.8.27 leans on, one brick at a time, so that when you read the recipe there, every mark on the page already means something to you.


1. What a variable that moves in time looks like

Picture a single dot sliding along a vertical line as the clock ticks. At it sits at some height; a moment later it has moved. That motion is what all of this is about.

Figure — Systems of ODEs — RK4 for systems

Why we need this: the whole topic is about predicting where the dot will be next given where it is now and how fast it is moving.


2. The symbol — a rate of change (a slope)

Figure — Systems of ODEs — RK4 for systems

Why we need this: an ODE is a rule that tells us the slope. If we know the slope everywhere, we can march forward and trace the whole curve — that marching is the numerical method.


3. The symbol — the slope-rule

Why we need this: an ODE (Ordinary Differential Equation) is exactly one such rule. "Solving" it means finding the moving value whose slope always matches what demands.


4. The initial value — the symbol


5. The step size — the symbol

Small = tiny careful steps = more accurate but slower. The subscript in means "the value after steps", so .

Why we need this: computers cannot store infinitely many instants, so we walk the curve in discrete hops of length . Choosing trades accuracy against work — the theme of Local vs Global Truncation Error.


6. Many quantities at once — the symbol (bold)

Figure — Systems of ODEs — RK4 for systems

The number is how many quantities there are (the dimension). is the ordinary scalar case; is predator–prey or a pendulum.


7. The bold slope-machine and the system


8. "First-order" and the reduction trick

Why we need this: it means "RK4 for systems" secretly solves every ODE, of any order, once you reduce it.


9. The Greek and bracket marks you'll meet

Recall Why

is the headline number Question: if you halve the step , roughly how much smaller does RK4's global error get? Answer ::: About times smaller — that is the meaning of order-4 accuracy.


10. The four probe-slopes


Prerequisite map

time t

moving value y of t

slope y prime

slope rule f of t and y

initial value y at t0

step size h

vector y bold: a list

vector rule f bold: coupling

reduction of higher order

exact integral over one hop

four probe slopes k1 to k4

RK4 for systems

Everything on the left is a single number or idea; the two boldings (, ) turn the scalar story into the system story that feeds RK4.


Equipment checklist

Read what a symbol means
it maps to a picture; if not, reread that section.
the value of a moving quantity at time — a dot sliding along a line.
the rate of change of = the slope of its graph at an instant.
the slope-rule machine: input time and value, output the slope.
the starting point that selects which curve you're on (an IVP).
the size of one time-hop; smaller = more accurate, more work.
(bold)
a stacked list of several quantities treated as one moving object.
the vector slope-rule; each component may depend on all others (coupling).
Coupling
each equation's rate depends on the other unknowns, so you must advance all together.
Order of an ODE
the highest prime-count; second-order reduces to a first-order system.
Reduction trick
set so .
a trial slope-list; RK4 averages four of them with weights over .
the exact accumulated change over one hop, estimated by sampling slopes.
halving shrinks global error about .

Connections

  • Parent topic — Hinglish
  • RK4 for a single ODE — the scalar method these symbols generalise.
  • Euler's method for systems — one-peek cousin, good for building intuition.
  • Reducing higher-order ODEs to first-order systems
  • Local vs Global Truncation Error — meaning of .
  • Simpson's Rule — the sampling idea behind the weights.
  • Stiff systems and stability — where step size bites back.