Académique Documents
Professionnel Documents
Culture Documents
Runge-Kutta Methods
In this appendix we will analyze the conditions on the coecients of
an explicit Runge-Kutta Method that are necessary and sucient to
guarantee convergence with accuracy of order . In particular, we
will establish the connection between these conditions and the set of
rooted trees with no more than nodes. As a consequence, we will
be able to show that there are -stage methods of order for 4
but not for > 4.
We begin by briey considering more general one-step methods,
+1 = ( , , , ), for approximating solutions of the scalar ODE
= (, ()).
The local truncation error at is the quantity dened by
(+1 ) := ( , ( ), , ) + .
From our discussion following the convergence analysis of Eulers
Method in the body of the text, we can show that a 0-stable one-step
method will converge to a solution of the ODE +1 [ , + ]
with global order of accuracy if +1 for some > 0
depending only on max( , + ) ( +1) ().
One approach to constructing methods satisfying such an esti-
mate is to dene them using Taylors Theorem with Remainder by
()
letting ( , , , ) = =0 ( )/! be the Taylor polyno-
mial of degree for () centered at and evaluated at +1 . To
implement this idea, we must be able to express () ( ) in terms
of and its derivatives evaluated at ( , ). The resulting one-step
methods are known as Taylor Methods. Taylor Methods are an option
263
264 H. Runge-Kutta Methods
if the vector eld that denes the ODE is given in a form that can be
dierentiated symbolically, which is not always the case.
To demonstrate how this would be carried out, and for later use,
we examine the expressions for the rst few derivatives of in terms
of and its derivatives. We ignore the dierential equation at rst
and dierentiate () = (, ()) and use multi-index notation for
mixed partial derivatives,
+
, = , (, ) = .
In this form, we can distinguish terms arising from dierentiating
from those that arise by dierentiating factors of coming from the
chain ruleterms that we will eventually also write in terms of .
Because of equality of mixed partial derivatives, these terms exhibit
a binomial pattern,
= ,
= 1,0 + 0,1 , (H.1)
2,0 1,1 2 0,2 1,0 0,1 0,1
= [ + 2 + ] + [( + ) ].
2 21
.. .. ..
. . .
1 (1)
1 2
The Butcher tableau for the midpoint method is
0
1 1
2 2
0 1
The modied trapezoidal method is displayed in this format as
0
1 1
1 1
2 2
If we expanded ,2 to higher order, we would discover that three
parameters do not provide enough freedom to obtain a method of
order 3. In order to satisfy the two additional 3 conditions appearing
in square brackets in the expression (H.1) for , another stage is
needed.
The form of an explicit Runge-Kutta Method with = 3 stages
is
,1 = ( , ),
,2 = ( + 21 , + 21 ,1 ),
,3 = ( + (31 + 32 ), + (31 ,1 + 32 ,2 )),
+1 = + (1 ,1 + 2 ,2 + 3 ,3 ).
H. Runge-Kutta Methods 267
4
The coecient of 4! in the Taylor expansion of ( + ) in terms of
and its derivatives is
(4) = [ 3,0 + 3 2,1 + 3 2 1,2 + 3 0,3 ]
+ [3( 1,0 + 0,1 )( 1,1 + 0,2 )]
+ [( 2,0 + 2 1,1 + 2 0,2 + ( 1,0 + 0,1 ) 0,1 ) 0,1 ].
where
1
y, = f (y, ), with y, = y + , y, . (H.4)
=1
and then give the representation of its terms using rooted trees. We
wish to represent the derivatives y() () in terms of f and its deriva-
tives. Here, in the column on the left, we list successive derivatives
of the function g() = f (y()) where again at rst we ignore the dif-
ferential equation:
g() = f (y()) = f , y , 1,
g () = fy y , y , 1,
g () = fyy y2 + fy y , y , 1 + 1 = 2,
g () = fyyy y3 + 3fyy y y + fy y , y(4) , 1 + 1 + 2 = 4,
g(4) ()= fyyyy y4 + 6fyyy y2 y
+3fyy y y
+4fyy y y + fy y(4) , y(5) , 1 + 1 + 1 + 2 + 4 = 9.
In the column on the right, we list the correspondence between each
derivative of g and the next higher derivative of . We also list the
number of terms that each row represents as a sum. The terms of
the sum refer recursively to terms from previous rows that appear
in subsequent rows and the numbers of terms they represent. Recall
that the th derivative of f with respect to y is a symmetric -linear
function from (R ) R . For > 1, the symmetry is nontrivial
and decreases the number of its independent coecients with respect
to a basis from +1 accordingly. For example, when = 2 there are
(( + 1))/2 independent components.
Next we expand the rows recursively to write the Taylor expan-
sion as a linear combination of elementary dierentials. These are
multilinear operator compositions that express y() in terms of f and
its derivatives evaluated at . Since fy...y is an operator with ar-
guments, we will use a naturally related notation for lists that will
be familiar to those who have encountered the articial intelligence
programming language LISP. For our purposes, a list begins with an
open parentheses and the rst element, the th partial derivative of
with respect to for some 0, followed by sublists, then a close
parentheses. If a sublist has zero sublists, we omit its parentheses,
and we can close all open parentheses with a right square bracket.
(Our convention will be to do so when more than two are open.)
H. Runge-Kutta Methods 269
f
fyy fy fy f
fy f f
f
1 1 1 1
11 : (f ), 1!
12 : (fy f ), 2!
13 : (fyy f f ), 3!
23 : (fy (fy f )), 3!
f
fyyy fy f f
f fyy fy fyy
f f f
1 3 1
14 : (fyyy f f f ), 4!
24 : (fyy (fy f ) f ), 4!
34 : (fy (fyy f f )), 4
f
fy f
f
fyyyy fyyy
f f
fy fy fy f
f f
1 1 6
44 : (fy (fy (fy f ], 4!
15 : (fyyyy f f f f ), 5!
25 : (fyyy (fy f ) f f ), 5!
H. Runge-Kutta Methods 271
f
fy f fyy fy fy
fyy f f
fyy fyy
fy f f f
3 4 4
35 : (fyy (fy f )(fy f )), 5!
45 : (fyy (fyy f f ) f ), 5!
55 : (fyy (fy (fy f )) f ), 5!
f
fy fyyy fy f
f fy fyy
f f
1 3
65 : (fy (fyyy f f f )), 5!
75 : (fy (fyy (fy f ) f )), 5!
f
fy fy fyy fy fy fy fy f
f
1 1
85 : (fy (fy (fyy f f ], 5!
95 : (fy (fy (fy (fy f ], 5!
y,2 = f (y + (21 y,1 )) = f (y + (21 f ))
= f + (fy (21 f ))
fyy fyyy
+( (21 f )2 ) + ( (21 f )3 ) +
2! 3!
2 2 3 3
= f + 21 (fy f ) + 21 (fyy f f ) + 21 (fyyy f f f ) + ,
2! 3!
y,3 = f (y + (31 y,1 + 32 y,2 ))
= f (y + (31 + 32 )f
3
+ 2 32 21 (fy f ) + 2
32 21 (fyy f f ) + )
2!
H. Runge-Kutta Methods 273
= f + (fy ((31 + 32 )f
3
+ 2 32 21 (fy f ) + 2
32 21 (fyy f f ) + ))
2!
fyy
+( ((31 + 32 )f + 2 32 21 (fy f ) + )2 )
2!
fyyy
+( ((31 + 32 )f + )3 ) +
3!
= f + (31 + 32 )(fy f ) + 2 32 21 (fy (fy f ))
3 2
+ 32 21 (fy (fyy f f )) +
2!
2
+ (31 + 32 )2 (fyy f f )
2!
23
+ (31 + 32 )32 21 (fyy (fy f ) f )
2!
3
+ (31 + 32 )3 (fyyy f f f ) + ,
3!
y,4 = f (y + (41 y,1 + 42 y,2 + 43 y,3 ))
= f (y +(41 +42 +43 )f + 2 (42 21 + 43 (31 + 32 ))(fy f )
3
+ (243 32 21 (fy (fy f ))
2!
2
+ (42 21 + 43 (31 + 32 )2 )(fyy f f )) + )
= f + (fy ((41 +42 +43 )f +2 (42 21 +43 (31 +32 ))(fy f )
3
+ (243 32 21 (fy (fy f ))
2!
2
+ (42 21 + 43 (31 + 32 )2 )(fyy f f )) + ))
fyy
+( ((41 + 42 + 43 )f
2!
+ 2 (42 21 + 43 (31 + 32 ))(fy f ) + ))2
fyyy
+( ((41 + 42 + 43 )f + ))3 +
3!
274 H. Runge-Kutta Methods
= f + (41 + 42 + 43 )(fy f )
+ 2 (42 21 + 43 (31 + 32 ))(fy (fy f ))
3
+ (243 32 21 (fy (fy (fy f )))
2!
2
+ (42 21 + 43 (31 + 32 )2 )(fy (fyy f f ) + ))
2
+ (41 + 42 + 43 )2 (fyy f f )
2!
23
+ (41 +42 +43 )(42 21 +43 (31 +32 ))(fyy (fy f ) f )+
2!
3
+ ((41 + 42 + 43 )3 (fyyy f f f ) + ).
3!
Below is a summary of the elementary dierential terms that ap-
peared in the expansion, according to their order in . The notation
, identies the order , the order of the leading derivative of f ,
and the index among such terms. Next to this is the of the cor-
responding term in the Taylor expansion, followed by the equation
of coecients from the respective expansions. Recall the notation
= 1 =1 for expressions that appear repeatedly in the expan-
sion.
,
Elementary coecient
Dierential
, = coecient
1
1 (f ) 1
1,1 11 1 + 2 + 3 + 4 = 1!
1
2 (fy f ) 2
1,1 12 2 2 + 3 3 + 4 4 = 2!
1 1
3 (fyy f f ) 2
2,1 13 ( 2 + 3 23 + 4 24 )
2! 2 2
= 3!
1
3 (fy (fy f )) 3
1,1 23 3 32 2 + 4 (42 2 + 43 3 ) = 3!
1 1
4 (fyyy f f f ) 2
3,1 14 ( 3 + 3 33 + 4 34 )
3! 2 2
= 4!
1 1
4 (fy (fyy f f )) 3
1,2 34 ( + 4 (42 22 + 43 23 ))
2! 3 32 2
2 = 4!
3
4 (fyy (fy f ) f ) 3
2,1 34 3 3 32 2 + 4 4 (42 2 + 43 3 ) = 4!
1
4 (fy (fy (fy f ] 4
1,1 44 4 43 32 2 = 4!
The rooted trees , corresponding to elementary dierentials
up to order = 4 are shown below in order of their occurrence in
stages = 1, . . . , 4 of the Runge-Kutta approximation. Within a
H. Runge-Kutta Methods 275
stage, we have listed trees by the order of the -fold product that
produces them, i.e., by how many previously existing trees are at-
tached to a new root node in order to construct the tree.
1
2
1 2
1
1,1 : = 1 1,1 : = 2 2,1 : 2 = 3
2
1
1
1
3,1 : 3 = 3
3
1,1 : = 6
3
1,2 : 2 = 12
3
1 4
1
2,1 : = 8 1,1 : = 24
directly from their trees using the following simple algorithm. The
density of any leaf, a rooted tree of order one arising from evaluat-
ing f in the rst stage, is 1. At every subsequent stage, at which we
attach one or more trees to a new root node, the density of the result-
ing trees is the product of the densities of the trees being attached,
3
times the order of the resulting tree. For example, the tree 2,1 is a
rooted tree with four nodes corresponding to the elementary dier-
ential (fyy (fy f ) f ). It is rst obtained at the = 3rd stage of the
Runge-Kutta expansion in the = 2nd-order term of the expansion,
by joining the trees corresponding to (fy f ) and f . The former has
density 1 2 and the latter has density 1, so since the resulting tree
has order 4, its density is 1 2 4 = 8.
For = 4 stages, the eight fourth-order matching conditions are
1 + 2 + 3 + 4 = 1, 2 2 + 3 3 + 4 4 = 12 ,
2 22 + 3 32 + 4 42 = 13 , 3 32 2 + 4 (42 2 + 43 3 ) = 16 ,
2 23 + 3 33 + 4 43 = 14 , 1
3 32 22 + 4 (42 22 + 43 32 ) = 12 ,
3 3 32 2
+4 4 (42 2 + 43 3 ) = 18 , 4 43 32 2 = 1
24 .
0
1 1
2 2
1 1
2 0 2
1 0 0 1
1 2 2 1
6 6 6 6
For the scalar ODE with = 0, i.e., = (), this method reduces
to the Simpson-parabolic quadrature method.
H. Runge-Kutta Methods 279