Next: Choosing an Algorithm
Up: A Uniform Field
Previous: Units
In order to understand the behaviour of the various methods for ODEs we
need to know the analytical solution of the problem. 2 dimensional
problems such as this one are often most easily solved by turning the 2D
vector into a complex number. Thus by defining
we
can rewrite (1.43) in the form
 |
(1.48) |
which can be easily solved using the integrating factor method
to give
![\begin{displaymath}
\tilde v = \tilde v_0 \exp\left[-\i\left(qB\over m\right)t
-\left(\gamma\over m\right)t\right].
\end{displaymath}](img144.png) |
(1.49) |
Finally we take real and imaginary parts to find the
and
components