Theory

Beam dynamics:

\[x' = \frac{dx}{ds}\]