Bogacki–Shampine method explained

The Bogacki–Shampine method is a method for the numerical solution of ordinary differential equations, that was proposed by Przemysław Bogacki and Lawrence F. Shampine in 1989 . The Bogacki–Shampine method is a Runge–Kutta method of order three with four stages with the First Same As Last (FSAL) property, so that it uses approximately three function evaluations per step. It has an embedded second-order method which can be used to implement adaptive step size. The Bogacki–Shampine method is implemented in the ode3 for fixed step solver and ode23 for a variable step solver function in MATLAB .

Low-order methods are more suitable than higher-order methods like the Dormand–Prince method of order five, if only a crude approximation to the solution is required. Bogacki and Shampine argue that their method outperforms other third-order methods with an embedded method of order two.

The Butcher tableau for the Bogacki–Shampine method is:

0
1/2 1/2
3/4 0 3/4
1 2/9 1/3 4/9
2/9 1/3 4/9 0
7/24 1/4 1/3 1/8

Following the standard notation, the differential equation to be solved is

y'=f(t,y)

. Furthermore,

yn

denotes the numerical solution at time

tn

and

hn

is the step size, defined by

hn=tn+1-tn

. Then, one step of the Bogacki–Shampine method is given by:

\begin{align} k1&=f(tn,yn)\\ k2&=f(tn+\tfrac12hn,yn+\tfrac12hnk1)\\ k3&=f(tn+\tfrac34hn,yn+\tfrac34hnk2)\\ yn+1&=yn+\tfrac29hnk1+\tfrac13hnk2+\tfrac49hnk3\\ k4&=f(tn+hn,yn+1)\\ zn+1&=yn+\tfrac7{24}hnk1+\tfrac14hnk2+\tfrac13hnk3+\tfrac18hnk4. \end{align}

Here,

zn+1

is a second-order approximation to the exact solution. The method for calculating

yn+1

is due to . On the other hand,

yn+1

is a third-order approximation, so the difference between

yn+1

and

zn+1

can be used to adapt the step size. The FSAL—first same as last—property is that the stage value

k4

in one step equals

k1

in the next step; thus, only three function evaluations are needed per step.

References