Heun’s Method improves the estimation of the slope done by Euler’s Method by calculating an average slope over the interval . This is a predictor/corrector method.
Starting on the left side, we can evaluate the slope using the equation and our initial condition (the predictor).
The right side (the corrector) has slope:
This is more difficult since we don’t know to begin. We can estimate to begin, using the same extrapolation as the Euler’s method to get , an intermediate value.
Then, we find the average slope over the interval:
This average slope is then used to extrapolate to the next point:
Example
Let’s say we have , , with an I.C. of .
The left slope (predictor) would be:
Then:
Then, the slope at is :
Then:
and