Quote the improved Euler formula
yr+1=yr+21(k1+k2),k1=hf(xr,yr),k2=hf(xr+h,yr+k1) The gradients at the start and at the predicted end of the step are averaged, which is far more accurate than plain Euler.
Write down the step length and the starting values
h=0.1,x0=0,y0=1 5 steps of length 0.1 take x from 0 to 0.5.
List the x-values used
x0=0,x1=0.1,x2=0.2,x3=0.3,x4=0.4,x5=0.5 Each step advances x by h=0.1.
Find k1 for step 1
k1=hf(0,1.00000000)=0.1×1.00000000=0.10000000 k1 uses the gradient at the current point (0,1.00000000).
Find k2 for step 1
k2=hf(0.1,1.10000000)=0.1×1.09544512=0.10954451 k2 uses the gradient at the Euler-predicted point (0.1,1.10000000).
Average the two gradients to find y1
y1=1.00000000+21(0.10000000+0.10954451)=1.10477226 The mean of k1 and k2 is added to y0.
Find k1 for step 2
k1=hf(0.1,1.10477226)=0.1×1.09762118=0.10976212 k1 uses the gradient at the current point (0.1,1.10477226).
Find k2 for step 2
k2=hf(0.2,1.21453437)=0.1×1.18934199=0.11893420 k2 uses the gradient at the Euler-predicted point (0.2,1.21453437).
Average the two gradients to find y2
y2=1.10477226+21(0.10976212+0.11893420)=1.21912041 The mean of k1 and k2 is added to y1.
Find k1 for step 3
k1=hf(0.2,1.21912041)=0.1×1.19126841=0.11912684 k1 uses the gradient at the current point (0.2,1.21912041).
Find k2 for step 3
k2=hf(0.3,1.33824725)=0.1×1.27994033=0.12799403 k2 uses the gradient at the Euler-predicted point (0.3,1.33824725).
Average the two gradients to find y3
y3=1.21912041+21(0.11912684+0.12799403)=1.34268085 The mean of k1 and k2 is added to y2.
Find k1 for step 4
k1=hf(0.3,1.34268085)=0.1×1.28167112=0.12816711 k1 uses the gradient at the current point (0.3,1.34268085).
Find k2 for step 4
k2=hf(0.4,1.47084796)=0.1×1.36778944=0.13677894 k2 uses the gradient at the Euler-predicted point (0.4,1.47084796).
Average the two gradients to find y4
y4=1.34268085+21(0.12816711+0.13677894)=1.47515388 The mean of k1 and k2 is added to y3.
Find k1 for step 5
k1=hf(0.4,1.47515388)=0.1×1.36936258=0.13693626 k1 uses the gradient at the current point (0.4,1.47515388).
Find k2 for step 5
k2=hf(0.5,1.61209014)=0.1×1.45330318=0.14533032 k2 uses the gradient at the Euler-predicted point (0.5,1.61209014).
Average the two gradients to find y5
y5=1.47515388+21(0.13693626+0.14533032)=1.61628717 The mean of k1 and k2 is added to y4.
Select the option that matches this estimate
y(0.5)≈1.6163 The value after the final step, rounded to 4 decimal places.