I am sitting with a problem where I have to show that Heun's method is consistent w.r.t. properties which is not related to my question. Anyway.
I am given two different definitions and the above statement is easy to prove with
(1) $\phi (t,y;h) = \frac{1}{2}(f(t,y)+f(t+h,y+hf(t,y)))$ (Heuns method)
and for the second definition I am given I have that
(2) $\int_{x_{j}}^{x_{j+1}} f(t,y(t))dt \approx \frac{1}{2}h_{j}(f(x_{j},y_{j}) + f(x_{j+1},y_{j+1})) \\ \approx \frac{1}{2}h_{j}(f(x_{j},y_{j}) + f(x_{j+1},y_{j}+h_{j}f(x_{j},y_{j})))$
But I am confused about how these two different ways of expressing Heuns method are related, especially since notation (1) is given after the exercise where I have to use it