Take :
Last one is trivial:
The other two in matrix form:
Homogeneous ODE with solution:
Integrating again we get:
Take and :
The parallel part is trivial again
The perpendicular part is a inhomogeneous ODE:
The motion is the sum of the following. In a local basis :
By the way: the ExB drift can also be understood transforming into a moving frame.
Using the local vector basis :
Just like the force gives rise to the ExB drift, an extra constant force
gives rise to a similar drift: