While preparing for an exam I revisited extrapolation methods for ODEs and I noticed that I don't understand it properly. Although I have an exercise-related question, there is a soft question: why do we do it and what exactly is done there?
As far as I understand it, we consider the same numerical method with different step sizes and then somehow interpolate (isn't it extrapolation?) them to somehow get a lower local truncation error. But I really do not see why it works and how it is done.
Let's consider a specific example. Say that, in order to compute the approximate solutions $u_k$ of a differential equation, you use the Euler method with one step of size $h$ and also the Euler method with two steps using a step size $\frac{h}{2}$. That is $$u_{j+1} = u_{j} + hf(t_j, u_j)$$ and $$u_{j+1} = u_{j+{\frac{h}{2}}} + \frac{h}{2}f(t_j + \frac{h}{2}, u_{j + \frac{h}{2}}).$$
Now you want to extrapolate those two somehow in order to get a better approximation. According to my solution, you would need to introduce the polynomial $$P_{01}(H) = \frac{(H - h)u^{(\frac{h}{2})}_{j+1} - (H - \frac{h}{2})u^{(h)}_{j+1}}{\frac{h}{2} - h}$$ and then evaluate the polynomial at $H = 0$ in order to get the modified Euler method. Why is that?
The more general question that comes up then is how to extrapolate $m$ different step sizes of one method. For example, what if we use the Euler method with 5 instead of two different step sizes, $h_{[n]} = \frac{1}{n}$ where $n = 1, ..., 5$ with $n$ steps. How would you come up with the according polynomial then?