Bogacki–Shampine method
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 (Bogacki Shampine). 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 (Shampine Reichelt).
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 [math]\displaystyle{ y'=f(t,y) }[/math]. Furthermore, [math]\displaystyle{ y_n }[/math] denotes the numerical solution at time [math]\displaystyle{ t_n }[/math] and [math]\displaystyle{ h_n }[/math] is the step size, defined by [math]\displaystyle{ h_n = t_{n+1}-t_n }[/math]. Then, one step of the Bogacki–Shampine method is given by:
- [math]\displaystyle{ \begin{align} k_1 &= f(t_n, y_n) \\ k_2 &= f(t_n + \tfrac12 h_n, y_n + \tfrac12 h_n k_1) \\ k_3 &= f(t_n + \tfrac34 h_n, y_n + \tfrac34 h_n k_2) \\ y_{n+1} &= y_n + \tfrac29 h_n k_1 + \tfrac13 h_n k_2 + \tfrac49 h_n k_3 \\ k_4 &= f(t_n + h_n, y_{n+1}) \\ z_{n+1} &= y_n + \tfrac7{24} h_n k_1 + \tfrac14 h_n k_2 + \tfrac13 h_n k_3 + \tfrac18 h_n k_4. \end{align} }[/math]
Here, [math]\displaystyle{ z_{n+1} }[/math] is a second-order approximation to the exact solution. The method for calculating [math]\displaystyle{ y_{n+1} }[/math] is due to (Ralston 1965). On the other hand, [math]\displaystyle{ y_{n+1} }[/math] is a third-order approximation, so the difference between [math]\displaystyle{ y_{n+1} }[/math] and [math]\displaystyle{ z_{n+1} }[/math] can be used to adapt the step size. The FSAL—first same as last—property is that the stage value [math]\displaystyle{ k_4 }[/math] in one step equals [math]\displaystyle{ k_1 }[/math] in the next step; thus, only three function evaluations are needed per step.
References
- Bogacki, Przemysław; Shampine, Lawrence F. (1989), "A 3(2) pair of Runge–Kutta formulas", Applied Mathematics Letters 2 (4): 321–325, doi:10.1016/0893-9659(89)90079-7, ISSN 0893-9659.
- Ralston, Anthony (1965), A First Course in Numerical Analysis, New York: McGraw-Hill.
- Shampine, Lawrence F.; Reichelt, Mark W. (1997), "The Matlab ODE Suite", SIAM Journal on Scientific Computing 18 (1): 1–22, doi:10.1137/S1064827594276424, ISSN 1064-8275, Bibcode: 1997SJSC...18....1S, https://hal.archives-ouvertes.fr/hal-01333731/file/Shampine.pdf.
Original source: https://en.wikipedia.org/wiki/Bogacki–Shampine method.
Read more |