The correct option is A 0.063
Given, y′=f(x,y)=y+2x−x2,y(0)=1(0≤x<∞),h=0.1
Now by using runge-kutta method of 2nd order
y1=y0+12[k1=k2]
where,
k1=hf(x0,y0)
k2=hf(x0+h,y0+k1)
Here, x0=0,y0=1,h=0.1
∴k1=0.1[1+2(0)−02]=0.1
k2=0.1[(1+0.1)+2(0.1)−(0.1)2]
= 0.129
∴y1=1+12[0.1+0.129]=1+0.1145
= 1.1145
Now, the exact solution,
y(x)=x2+ex
⇒y(0.1)=(0.1)2+e0.1=0.01+1.1052
= 1.1152
∴ percentage difference
=1.1152−1.11451.1152×100%
= 0.063%