| |
|
|
||||
![]() |
||||||
| |
|
|||||
|
Taylor’s Theorem You may remember Taylor’s Theorem from calculus. It’s named after mathematician Brook Taylor’s work in the eighteenth century. This theorem describes a method for converging on the solution to a differential equation.
In Equation
4, Pn(x) represents the nth Taylor polynomial. If you take the limit
of Pn(x) as How does this apply to the problem with which we are working? If I only look at the first Taylor polynomial and do some substitution, I get Equation 5.
Notice
how similar this equation is to Equation 3. In fact, Euler’s method
is based on this equation. The only difference is that the last error
term is dropped in Equation 5. By stopping the series at the second
term, I get a truncation error of 2. This gives Euler’s method an error
of order If I added
another term of the Taylor series to the equation, I could reduce the
error to
In fact,
I can continue to add Taylor terms to the equation using the Runge-Kutta
technique to reduce the error further. Each expansion requires more
evaluations per step, so there is a point at which the calculations
outweigh the benefit. I don’t have the space to get into it here, however,
I understand that smaller step sizes are preferred over methods above
RK4 with an error of
RK4 gives the simulation a very robust integrator. It should be able to handle most situations without blowing up. The only issue now is what the step size should be. ________________________________________________________ |
|
|