Skip to content
LaTeX (KaTeX) templates

Math — Numerical Solution of ODEs

Euler and Runge–Kutta stepping.

Template previewLaTeX (KaTeX)
yn+1=yn+h f(xn,yn)  (Euler)y_{n+1} = y_n + h\,f(x_n, y_n) \;\text{(Euler)}RK4: weighted average of 4 slopes\text{RK4: weighted average of 4 slopes}Euler local error O(h2)\text{Euler local error } O(h^2)smaller h⇒more accurate\text{smaller } h \Rightarrow \text{more accurate}

What this template contains

Equations
4
Source
4 lines

Make it your own.

y_{n+1} = y_n + h\,f(x_n, y_n) \;\text{(Euler)}

\text{RK4: weighted average of 4 slopes}

\text{Euler local error } O(h^2)

\text{smaller } h \Rightarrow \text{more accurate}