Exercise: AB2 and order estimation

Solving a logistic IVP (Verhulst) with AB2 started with Heun and estimating the order numerically by doubling the number of subintervals.

Estimating the order

For the IVP y(t)=(30.1y)yy'(t)=(3-0.1\,y)\,y, t[0,2]t\in[0,2], y(0)=10y(0)=10 (Verhulst model, the same as in the one-step methods exercise), solve with AB2 for N={2,4,8,16,32,64}N=\{2,4,8,16,32,64\} subintervals, starting y1y_1 with Heun, and estimate the order from the ratio of maximum errors when doubling NN.

NMaximum error ENE_Nlog2(EN/2/EN)\log_2(E_{N/2}/E_N)
210.1480n/a
44.52301.1658
80.63242.8384
160.19381.7064
320.05431.8365
640.01441.9178