2.6 Runge-Kutta Method
huge family of methods
we will look at Runge-Kutta order 4 method.
- \( k_1 = f(t_n, y_n) \) — slope at start (Euler)
- \( k_2 = f(t_n + \frac{1}{2}h, y_n + \frac{1}{2}k_1 h) \) — slope at mid pt using \( k_1 \) to get there
- \( k_3 = f(t_n + \frac{1}{2}h, y_n + \frac{1}{2}k_2 h) \) — slope at mid pt using \( k_2 \) to get there
- \( k_4 = f(t_n + h, y_n + k_3 h) \) — slope at end using \( k_3 \) to get there
\( \frac{1}{6}(k_1 + 2k_2 + 2k_3 + k_4) \) is weighted avg. of the slopes
(more weight to middle)