Calculate the value ofandas follows:
Thus, the formula for the second order Runge-kutta method is written as follows:
The value ofandis calculated as follows:
The value ofandis calculated as follows:
The differential equationis of the form.
This implies that.
So, the value ofis 0 and the value ofis 2 .
To calculate the value ofsubstitutein equation (2).
Calculate the value ofandas follows:
Therefore, the value ofis 1.
role="math" localid="1668082561493"
Substitute the valueandin equation (3).
Therefore, the value ofis 2.12110.
It is given that the initial value is .