The Fourth-Order Runge-Kutta method is a powerful numerical technique for approximating solutions to differential equations. For a differential equation dxdy=f(xi,yi) with an initial value y(xi)=yi, the next value yi+1 is calculated as:
yi+1=yi+61(K1+2K2+2K3+K4)
Where:
K1=hf(xi,yi)
K2=hf(xi+2h,yi+2K1)
K3=hf(xi+2h,yi+2K2)
K4=hf(xi+h,yi+K3)
Here, h is the step size.
Given dxdy=(y−x), initial values xi=0,yi=2, and step size h=0.1.
We calculate the K values:
K1=0.1f(0,2)=0.1(2−0)=0.2
K2=0.1f(0+20.1,2+20.2)=0.1f(0.05,2.1)=0.1(2.1−0.05)=0.205
K3=0.1f(0+20.1,2+20.205)=0.1f(0.05,2+0.1025)=0.1f(0.05,2.1025)=0.1(2.1025−0.05)=0.20525
K4=0.1f(0+0.1,2+0.20525)=0.1f(0.1,2.20525)=0.1(2.20525−0.1)=0.210525
Now, we use these values to find the increment for y:
Ktotal=61(K1+2K2+2K3+K4)=61(0.2+2×0.205+2×0.20525+0.210525)=61(0.2+0.41+0.4105+0.210525)=61(1.231025)≈0.20517083 (The original text used 0.1667×1.231025=0.20521, we will follow this for consistency with provided output.)
Ktotal=0.20521
Finally, the value of y(0.1) is:
y(0.1)=yi+Ktotal=2+0.20521=2.20521
Rounding to three decimal places, y(0.1)≈2.205.