We first obtain
,
, and
of the RK4 method based on
and the Taylor series expansion of the two-variable
function
:
where
,
, and
are respectively the coefficients of the first,
second, and third order terms of
. To find these coefficients, we first
consider
We then substitute the expressions of
into
and
to get:
Now we have
where
,
, and
are respectively the coefficients of the first,
second, and third order terms of
. To find these coefficients, we first
consider
We then substitute the expressions of
into
and
to get:
Now we get
We can now substitute the expressions for
,
,
, and
into the RK4 iteration to get:
On the other hand, the solution of the given differential equation
can be Taylor expanded as shown below:
Substituting the derivatives in Eq. (235) into this we get
Eq. (241):
Finally, matching the coefficients in this Taylor expansion with those
in the RK4 iteration obtained above, we get a set of necessary and
sufficient conditions for the parameters of the RK4 method: