INGENIA

ODE-23

Heun / RK2

Explicit two-stage RK.

Reading speed
GoverningHeun / RK2

Governing equation

y+=(k1+k2)h/2y+= (k_1+k_2)h/2

h∈[0.01,1]h \in \left[0.01, 1\right]

where

y
y (—)
h
h (—)
k1
k1 (—)
k2
k2 (—)
yn
Heun / RK2 (—)

The figure, part by part

Each numbered marker wears the color of its card. Hover a card to light the marker. Tap a marker to jump to that card. The slider walks a red point along the curve; Animate drawing traces it like a pen.

ODE-23 · curve
00:0 / 00:08
①

Governing law — red

y+=(k1+k2)h/2y+= (k_1+k_2)h/2

h∈[0.01,1]h \in \left[0.01, 1\right]

h=0.01h = 0.01yn=1.004yn = 1.004

②

Domain of the variable — blue

hmin⁡=0.01,hmax⁡=1h_{\min} = 0.01,\quad h_{\max} = 1

h∈[0.01,1]h \in \left[0.01, 1\right]

h=0.01h = 0.01h=0.01h = 0.01

③

Response curve — green

y+=(k1+k2)h/2y+= (k_1+k_2)h/2

h∈[0.01,1]h \in \left[0.01, 1\right]

h=0.01h = 0.01yn=1.004yn = 1.004

④

Rate of change — amber

dyndh\frac{\mathrm{d}yn}{\mathrm{d}h}

h∈[0.01,1]h \in \left[0.01, 1\right]

h=0.016h = 0.016yn′=0.45yn^{\prime} = 0.45

Lecture brief

Historical brief

Exponential decay, the harmonic oscillator, SIR epidemics, Lotka–Volterra and Bessel are the first solvable ODEs of nature and populations. The lab is rate, period and phase portrait in closed form. This sheet (ODE-23 — Heun / RK2) is the form associated with Heun / RK2. Working symbols: yy, hh, k1k1, k2k2 →\rightarrow ynyn. Explicit two-stage RK. Pedagogical SI sheet with a live model and a swept parameter.

Purpose

Purpose: compute ynyn from yy, hh, k1k1, k2k2 in Differential equations via y+=(k1+k2)h/2y+= (k_1+k_2)h/2 Explicit two-stage RK. Use it when a real differential equations question must be answered in SI before a code check.

Live realistic example

In symbols

Live case. Given y=1.000 —y = 1.000\,\mathrm{—}, h=0.200 —h = 0.200\,\mathrm{—}, k1=0.500 —k1 = 0.500\,\mathrm{—}, k2=0.400 —k2 = 0.400\,\mathrm{—}, the governing relation y+=(k1+k2)h/2y+= (k_1+k_2)h/2 yields yn=1.090 —yn = 1.090\,\mathrm{—}. One governing identity, SI units, a single sweep on the sheet. Move a slider: the numbers are this situation, not a canned story.

Calculator

Inputs

Outputs

  • Heun / RK2 yn1.090 —
Reading speed

Watch on YouTube

Free library

Full library

Free PDF / open book

YouTube channels

ODE-23 · curve
00:0 / 00:08

Narration of this film

One governing identity, SI units, a single sweep on the sheet.

Explicit two-stage RK. Pedagogical SI sheet with a live model and a swept parameter.

Reading speed

Watch on YouTube