I am studying Runge-Kutta and step size control and came up with a few doubts. Because they are related with this integration method, I will divide it in two parts. First, allow me to introduce the problem.
$1^{st}$ part - questions about Runge-Kutta Method
Consider a $2^{nd}$ order Runge-Kutta with general form:
$k_{1}=hf(x_{n},y_{n})$
$k_{2}=hf(x_{n}+\frac{1}{2}h,y_{n}+\frac{1}{2}k_{1})$
$y_{n+1}=y_{n}+k_{2}+O(h^{3})$
where $f(x_{n},y_{n}) = y'(x_{n})$
Now, if we are to consider $4^{th}$ order Runge-Kutta we would get
$k_{1}=hf(x_{n},y_{n})$
$k_{2}=hf(x_{n}+\frac{1}{2}h,y_{n}+\frac{1}{2}k_{1})$
$k_{3}=hf(x_{n}+\frac{1}{2}h,y_{n}+\frac{1}{2}k_{2})$
$k_{4}=hf(x_{n}+h,y_{n}+k_{3})$
$y_{n+1}=y_{n}+\frac{1}{6}k_{1}+\frac{1}{3}k_{2}+\frac{1}{3}k_{3}+\frac{1}{6}k_{4}+O(h^{5})$
This leads me to the following questions:
- I understand why the 2nd order method has the $y_{n+1}$ indicated above. Yet, shouldn't the $4^{th}$ order version of the method be expressed only as $y_{n+1}=y_{n}+k_{4}+O(h^{5})$ given that $k_{4}$ implicitly has the values of $k_{1}$ to $k_{3}$?
- Why does the $4^{th}$ order version have those fractional coefficients?
$2^{nd}$ part - questions about step-size control
Consider the exact solution for an advance from $x$ to $x+2h$ by $y(x+2h)$ and the two approximate solutions by $y_{1}$ (one step 2h) and $y_{2}$ (two steps each of size $h$). Considering the $4^{th}$ order method we have:
$y(x+2h)=y_{1}+(2h)^{5}\phi+O(h^{6})+...$
$y(x+2h)=y_{1}+2(h)^{5}\phi+O(h^{6})+...$
The difference between these estimates permits estimating the truncation error:
$\Delta=y_{2}-y_{1}$
Which we then use to improve the numerical estimate of the true solution:
$y(x+2h)=y_{2}+\frac{\Delta}{15}+O(h^{6})$
This brings me to the following questions:
- In the two expressions of y(x+2h) at the top, does $\phi$ include the terms $k_{1}...k_{4}$ in the first part of this post?
- Why is the final expression $5^{th}$ order, if the original problem was $4^{th}$ order?
- Where does the coefficient $\frac{1}{15}$ come from?
Thank you for all the insight!