Here we have assumed the time t=nh moves ahead in uniform
``ticks'' of length h. (If you are not familiar with numerical
integration rules, we suggest you program up Euler's rule and gain some
experience in stepping and in the meaning of f.) We know from our
discussion of differentiation that the error in (55) is
.
Applying this algorithm to our spring problem for just the first interval gives
We could continue using these same equations to progressively step (integrate) outwards. Yet this algorithm's equation for the distance covered in one step (58) is not as sophisticated as the one known by all first-year physics students:
Specifically, (58) leaves out the
While Euler's algorithm may work well for oscillatory systems where the errors
cancel, it is not very accurate, it is prone to instabilities (the numerical
solution deviates by an increasing amount from the correct one), and so is not
recommended for industrial use. However, Euler's rule (55) does have the
strong point of being self starting, that is, you need only know
to get
started on your march into the unknown, and consequently it is often
used to start some of the more sophisticated algorithms.