\[\newcommand{\F}{\mathbf{F}} \newcommand{\E}{\mathbf{E}} \newcommand{\B}{\mathbf{B}} \newcommand{\vvec}{\mathbf{v}} \newcommand{\xvec}{\mathbf{x}} \newcommand{\deriv}[2]{\frac{\mathrm{d} #1}{\mathrm{d} #2}} \newcommand{\dderiv}[2]{\frac{\mathrm{d}^2 #1}{\mathrm{d} #2^2}} \newcommand{\kdelta}[2]{\delta_{#1#2}} \newcommand{\levi}[3]{\varepsilon_{#1#2#3}} \newcommand{\cross}{\times} \newcommand{\abs}[1]{\left|#1\right|}\]

Hello everyone! This past year has been quite busy for me, but I’ve finally found some time to work on some code. Lately, I’ve been really interested in learning about Plasma Physics, so I will be turning my focus towards that. Hope ya’ll enjoy!

This week I will walk through the derivation for the dynamics of a charged particle in an electromagnetic field. We will first derive the general results, then look into limiting cases. At the end, we will consider a specific field configuration.

The mass-energy equivalence relation is

\[E = mc^2 \label{eq:einstein} \tag{1}\]

As shown in Eq. $\eqref{eq:einstein}$, energy and mass are equivalent.

Kinematics of a Charged Particle

The force on a charged particle in an electromagnetic field is described by

\[\begin{equation} \label{eq:em_force} \F = q(\E + \vvec \cross \B), \end{equation}\]

where $\F = m \deriv{\vvec}{t}$. The following is a list of the variables:

  1. $q$ - The charge of the particle.
  2. $m$ - The mass of the particle.
  3. $\E$ - The electric field applied to the charge.
  4. $\B$ - The magnetic field applied to the charge.
  5. $\vvec$ - The velocity of the particle.
  6. $\F$ - The force applied on the particle.

To understand how a particle behaves different conditions, we will solve for the general solutions under two different limiting cases:

  1. $\B \rightarrow 0, \E \neq 0$,
  2. $\E \rightarrow 0, \B \neq 0$.

Writing $\text{Eq.}~\eqref{eq:em_force}$ using Einstein notation and rearranging,

\[\begin{equation} \label{eq:em_force_vel} \deriv{v_i}{t} = \frac{q}{m} (E_i + \levi{i}{j}{k} v_j B_k). \end{equation}\]

Assuming $\E$ and $\B$ are constant, we take the derivative with respect to time

\[\begin{equation} \dderiv{v_i}{t} = \frac{q}{m} \Big(\deriv{E_i}{t} + \levi{i}{j}{k} \deriv{v_j}{t} B_k \Big). \end{equation}\]

Since $\E$ is constant, $\deriv{E_i}{t} = 0$, which yields

\[\begin{equation} \dderiv{v_i}{t} = \frac{q}{m} \levi{i}{j}{k} \deriv{v_j}{t} B_k. \end{equation}\]

We can substitute $\text{Eq.}~\eqref{eq:em_force_vel}$ for the derivative term

\[\begin{equation} \dderiv{v_i}{t} = \Big(\frac{q}{m}\Big)^2 \levi{i}{j}{k} \Big( E_j + \epsilon_{jmn} v_m B_n \Big ) B_k. \end{equation}\] \[\begin{equation} \dderiv{v_i}{t} = \Big(\frac{q}{m}\Big)^2 \Big[ \levi{i}{j}{k} E_j B_k + \levi{i}{j}{k} \epsilon_{jmn} v_m B_n B_k \Big]. \end{equation}\]

Using the following identity,

\[\begin{equation} \levi{i}{j}{k} \levi{i}{m}{n} = \kdelta{j}{m} \kdelta{k}{n} - \kdelta{j}{n}\kdelta{k}{m} \end{equation},\]

the combination of Levi-Civita symbols can be written as

\[\begin{equation} \levi{i}{j}{k} \levi{j}{m}{n} = -\levi{j}{i}{k} \levi{j}{m}{n} = -\kdelta{i}{m} \kdelta{k}{n} + \kdelta{i}{n}\kdelta{k}{m}. \end{equation}\]

Substituting these into the equation gives

\[\begin{equation} \dderiv{v_i}{t} = \Big(\frac{q}{m}\Big)^2 \Big[ \levi{i}{j}{k} E_j B_k + (\kdelta{i}{n}\kdelta{k}{m} - \kdelta{i}{m} \kdelta{k}{n}) v_m B_n B_k \Big]. \end{equation}\]

This gives us two terms:

\[\begin{align} \kdelta{i}{n}\kdelta{k}{m} v_m B_n B_k =&\, (v_j B_j) B_i, \\ \kdelta{i}{m} \kdelta{k}{n} v_m B_n B_k =&\, v_i B_k B_k. \end{align}\]

The purely magnetic field terms now become

\[\begin{equation} \label{eq:acc_charged_particle} \dderiv{v_i}{t} = \Big(\frac{q}{m}\Big)^2 \Big[ \levi{i}{j}{k} E_j B_k + (v_j B_j) B_i - v_i B_k B_k \Big]. \end{equation}\]

Case 1: No magnetic field

Let’s consider the case where $\B \rightarrow 0, \E \neq 0$.

\[\begin{equation} \lim_{\B \to 0} \dderiv{v_i}{t} = 0. \end{equation}\]

We integrate both sides twice

\[\begin{equation} \deriv{v_i}{t} = A \, \longrightarrow \, v_i = A t + B. \end{equation}\]

In order to determine the coefficients we impose the boundary condition

\[\begin{equation} v_i(0) = v_{i0}, \end{equation}\]
as well as compare both derivative equations, $\deriv{v_i}{t} \Big _{t=0}$. For the first condition,
\[\begin{equation} v_i(0) = B = v_{i0}. \end{equation}\]

For the second condition,

\[\begin{equation} \deriv{v_i}{t} \Big|_{t=0} = A. \end{equation}\]

Referring back to $\text{Eq.}~\eqref{eq:em_force_vel}$, we obtain

\[\begin{equation} \deriv{v_i}{t} \Big|_{t=0} = \frac{q}{m} E_i, \end{equation}\]

thus

\[\begin{equation} A = \frac{q}{m} E_i. \end{equation}\]

Combining both and substituting back into $v_i$,

\[\begin{equation} \label{eq:coeffs_E} v_i = \frac{q}{m} E_i t + v_{i0}. \end{equation}\]

This is the general velocity equation of a charged particle in an electric field. Writing out the vector components,

\[\begin{equation} v_x(t) = \frac{qE_x}{m} t + v_{x0}, \quad v_y(t) = \frac{qE_y}{m} t + v_{y0}, \quad v_z(t) = \frac{qE_z}{m} t + v_{z0}. \end{equation}\]

These equations can be written as a vector equation,

\[\begin{equation} \begin{bmatrix} v_x \\ v_y \\ v_z \end{bmatrix} = \frac{q}{m} \begin{bmatrix} E_{x} \\ E_{y} \\ E_{z} \end{bmatrix} t + \begin{bmatrix} v_{x0} \\ v_{y0} \\ v_{z0} \end{bmatrix}, \end{equation}\]

or as

\[\begin{equation} \label{eq:v_E_sol_mat_eq} \vvec = \frac{q}{m} \E t + \vvec_{0}. \end{equation}\]

The position equation can be derived by integrating $\text{Eq.}~\eqref{eq:v_E_sol_mat_eq}$,

\[\begin{equation} \label{eq:x_E_gen_sol} \xvec = \frac{q}{2m} \E t^2 + \vvec_{0} t + \xvec_0, \end{equation}\]

where we have used the initial condition $\xvec(0) = \xvec_0$.

Case 2: No electric field

Let’s now look at the case where $\E \rightarrow 0, \B \neq 0$. Referring back at $\text{Eq.}~\eqref{eq:acc_charged_particle}$ and removing the electric field term gives

\[\begin{equation} \dderiv{v_i}{t} = \Big(\frac{q}{m}\Big)^2 \Big[(v_j B_j) B_i - v_i B_k B_k \Big]. \end{equation}\]

Rearranging the terms and introducing the parameter $\Omega_c$ gives us

\[\begin{equation} \label{eq:gen_diff_eq} \dderiv{v_i}{t} + \Omega^2_c v_i = \Big(\frac{q}{m}\Big)^2 (v_j B_j) B_i. \end{equation}\]

where $\Omega_c$ is the cyclotron frequency defined by

\[\begin{equation} \Omega^2_c = \Big(\frac{q}{m}\Big)^2 B_k B_k, \end{equation}\]

with period \(\begin{equation} T_c = \frac{2 \pi}{\Omega_c}. \end{equation}\)

We need to figure out if the r.h.s is constant or time-dependent. To do this, let’s go back to $\text{Eq.}~\eqref{eq:em_force_vel}$,

\[\begin{equation} \deriv{v_i}{t} = \frac{q}{m} \levi{i}{j}{k} v_j B_k. \end{equation}\]

Multiplying both sides by $B_i$,

\[\begin{equation} B_i \deriv{v_i}{t} = \frac{q}{m} \levi{i}{j}{k} B_i v_j B_k. \end{equation}\]

Let’s consider the multiplication

\[\begin{equation} A = \levi{i}{j}{k} B_i v_j B_k. \end{equation}\]

We can flip the terms since multiplication is commutative

\[\begin{equation} \label{eq:A_const} A = v_j \levi{i}{j}{k} B_i B_k. \end{equation}\]

We know that the product $B_i B_k$ is symmetric under exchange of indices $B_i B_k = B_k B_i$, so we can exchange the indices in $\text{Eq.}~\eqref{eq:A_const}$

\[\begin{equation} A = v_j \epsilon_{kji} B_k B_i. \end{equation}\]

Using the permutation property of the Levi-Civita symbol, we see that

\[\begin{equation} \epsilon_{kji} = -\levi{i}{j}{k}, \end{equation}\]

thus

\[\begin{equation} \label{eq:A_const_alt} A = -\levi{i}{j}{k} v_j B_i B_k. \end{equation}\]

Summing $\text{Eq.}~\eqref{eq:A_const}$ and $\text{Eq.}~\eqref{eq:A_const_alt}$

\[\begin{equation} 2A = 0 \rightarrow A = 0 \end{equation}\]

which means

\[\begin{equation} \label{eq:zero_term} B_i \deriv{v_i}{t} = 0. \end{equation}\]

Let’s look at the total derivative

\[\begin{equation} \deriv{}{t}(B_i v_i) = B_i \deriv{v_i}{t} + \deriv{B_i}{t} v_i. \end{equation}\]

We have shown that the first term is zero and the second term must be zero since $\B$ is constant. Therefore,

\[\begin{equation} \deriv{}{t}(B_i v_i) = 0 \, \longrightarrow \, B_i v_i = H, \end{equation}\]

where $H$ is a constant. We can determine what $H$ is by using initial conditions

\[\begin{equation} H = B_i v_i(0) = B_i v_{i0}, \end{equation}\]

thus

\[\begin{equation} H = v_{i0} B_i. \end{equation}\]

Plugging this into $\text{Eq.}~\eqref{eq:gen_diff_eq}$

\[\begin{equation} \dderiv{v_i}{t} + \Omega^2_c v_i = \Big(\frac{q}{m}\Big)^2 v_{j0} B_j B_i. \end{equation}\]

This is a second order differential equation composed of two parts: the homogenous and particular solution. We write it as

\[\begin{equation} v_i(t) = v^{(h)}_i(t) + v^{(p)}_i(t). \end{equation}\]

To solve for the homogenous solution, we first write the characteristic equation using the ansatz $v^{(h)}_i(t) = e^{rt}$ and set the equation equal to zero,

\[\begin{equation} e^{rt}(r^2 + \Omega^2_c) = 0 \end{equation}\]

Since $e^{rt} \neq 0$, the only solutions are $r = \pm i\Omega_c$. Plugging these back into the ansatz and forming a linear combination of the solutions gives

\[\begin{equation} v^{(h)}_i(t) = A \cos(\Omega_c t) + B \sin(\Omega_c t) \end{equation}\]

To solve for the particular solution, we use the ansatz $v^{(p)}_i = K$, where $K$ is a constant. Since $K$ is constant, only the term with no derivative survives,

\[\begin{equation} v^{(p)}_i = \Big(\frac{q}{m \Omega_c}\Big)^2 v_{j0} B_j B_i. \end{equation}\]

Substituting for the cyclotron frequency, the full solution becomes

\[\begin{equation} v_i(t) = A \cos(\Omega_c t) + B \sin(\Omega_c t) + v_{j0} \frac{B_j B_i}{B_k B_k}. \end{equation}\]

In order to determine the coefficients we impose the boundary condition

\[\begin{equation} v_i(0) = v_{i0}, \end{equation}\]

as well as compare both derivative equations at $t=0$. For the first condition,

\[\begin{equation} v_i(0) = A + v_{j0} \frac{B_j B_i}{B_k B_k} = v_{i0} \, \longrightarrow \, A = v_{i0} - v_{j0} \frac{B_j B_i}{B_k B_k}. \end{equation}\]

For the second condition,

\[\begin{equation} \deriv{v_i}{t} \Big|_{t=0} = B \Omega_c. \end{equation}\]

Referring back to $\text{Eq.}~\eqref{eq:em_force_vel}$, we obtain

\[\begin{equation} \deriv{v_i}{t} \Big|_{t=0} = \frac{q}{m} \levi{i}{j}{k} v_{j0} B_k. \end{equation}\]

Setting these two equal to each other gives

\[\begin{equation} B = \frac{q}{m \Omega_c} \levi{i}{j}{k} v_{j0} B_k. \end{equation}\]

We can now substitute in the coefficients and rearrange the terms,

\[\begin{equation} \label{eq:v_i_gen_sol} v_i(t) = v_{i0}\cos(\Omega_c t) + \frac{q}{m \Omega_c} \levi{i}{j}{k} v_{j0} B_k \sin(\Omega_c t) + \frac{q^2}{m^2 \Omega^2_c} v_{j0} B_j B_i \Big[1 - \cos(\Omega_c t)\Big]. \end{equation}\]

This is the general velocity equation of a charged particle in a magnetic field. Let’s now write the first component of $\text{Eq.}~\eqref{eq:v_i_gen_sol}$,

\[\begin{equation} v_1(t) = v_{10}\cos(\Omega_c t) + \frac{q}{m \Omega_c} \levi{1}{j}{k} v_{j0} B_k \sin(\Omega_c t) + \frac{q^2}{m^2 \Omega^2_c} v_{j0} B_j B_1 \Big[1 - \cos(\Omega_c t)\Big]. \end{equation}\]

Let’s expand the indices of the different expressions. For the first term we get

\[\begin{equation} \levi{1}{j}{k} v_{j0} B_k = \levi{1}{2}{3} v_{20} B_3 + \levi{1}{3}{2} v_{30} B_2 = v_{20} B_3 - v_{30} B_2 \, \longrightarrow \, v_{y0} B_z - v_{z0} B_y \end{equation}\]

For the next term we get

\[\begin{equation} v_{j0} B_j = v_{10} B_1 + v_{20} B_2 + v_{30} B_3 \, \longrightarrow \, \vvec_{0} \cdot \B \end{equation}\]

Now, for the cyclotron frequency

\[\begin{equation} \Omega^2_c = \Big(\frac{q}{m}\Big)^2 B_k B_k = \Big(\frac{q}{m}\Big)^2 (B_1 \cdot B_1 + B_2 \cdot B_2 + B_3 \cdot B_3) \, \longrightarrow \, \Omega_c = \frac{q}{m} \sqrt{B^2_x + B^2_y + B^2_z} \end{equation}\]

Plugging the first two expanded terms into $v_1(t)$ and recognizing that $i=1 \rightarrow x$ gives

\[\begin{equation} v_x(t) = v_{x0}\cos(\Omega_c t) + \frac{q}{m \Omega_c} (v_{y0} B_z - v_{z0} B_y) \sin(\Omega_c t) + \frac{q^2}{m^2 \Omega^2_c} (\vvec_{0} \cdot \B) B_x \Big[1 - \cos(\Omega_c t)\Big]. \end{equation}\]

Let’s examine how this equation behaves when there is a magnetic field along the $z$-axis, i.e., $\B = (0, 0, B_0)$. Substituting for $\Omega_c$ in the denominator of the second term, the equation reduces to

\[\begin{equation} \label{eq:v_x_B_sol} v_x = v_{x0}\cos(\Omega_c t) + v_{y0}\sin(\Omega_c t). \end{equation}\]

We can also work out what $v_y$ and $v_z$ are by following the same procedure. In this case,

\[\begin{align} v_y =&\, v_{y0}\cos(\Omega_c t) - v_{x0}\sin(\Omega_c t), \label{eq:v_y_B_sol} \\ v_z =&\, v_{z0}. \end{align}\]

These equations can be written in matrix form as

\[\begin{equation} \begin{bmatrix} v_x \\ v_y \\ v_z \end{bmatrix} = \begin{bmatrix} \cos(\Omega_c t) & \sin(\Omega_c t) & 0\\ -\sin(\Omega_c t) & \cos(\Omega_c t) & 0 \\ 0 & 0 & 1 \end{bmatrix} \begin{bmatrix} v_{x0} \\ v_{y0} \\ v_{z0} \end{bmatrix}, \end{equation}\]

or as a matrix equation,

\[\begin{equation} \label{eq:v_B_sol_mat_eq} \mathbf{v} = R_z(\Omega_c t) \mathbf{v}_0, \end{equation}\]

where $R_z(\theta)$ describes a rotation about the $z$-axis. Note that while the rotation matrix used is for a clockwise rotation, the handedness of the rotation is actually defined by the sign on the charge located in the cyclotron frequency, $\Omega_c$. For a negatively charged particle such as an electron, the rotation would be counterclockwise.

The position equation can be derived by integrating $\text{Eq.}~\eqref{eq:v_i_gen_sol}$,

\[\begin{equation} \label{eq:x_B_gen_sol} x_i(t) = x_{i0} + \Big(\frac{v_{i0}}{\Omega_c} - \frac{q^2}{m^2 \Omega^2_c} v_{j0} B_j B_i\Big) \sin(\Omega_c t) + \frac{q}{m \Omega^2_c} \levi{i}{j}{k} v_{j0} B_k \Big[1 - \cos(\Omega_c t)\Big] + \frac{q^2}{m^2 \Omega_c} v_{j0} B_j B_i t , \end{equation}\]

where we have used the initial condition $x_i(0) = x_{i0}$. For the case where $\B = (0, 0, B_0)$, the position equations are

\[\begin{align} x =&\, x_0 + \frac{v_{x0}}{\Omega_c}\sin(\Omega_c t) + \frac{v_{y0}}{\Omega_c}\Big[1 - \cos(\Omega_c t)\Big], \\ y =&\, y_0 + \frac{v_{y0}}{\Omega_c}\sin(\Omega_c t) - \frac{v_{x0}}{\Omega_c}\Big[1 - \cos(\Omega_c t)\Big], \\ z =&\, z_0 + v_{z0}t. \end{align}\]

These equations can be written in matrix form as

\[\begin{equation} \begin{bmatrix} x \\ y \\ z \end{bmatrix} = \begin{bmatrix} \frac{1}{\Omega_c}\sin(\Omega_c t) & \frac{1}{\Omega_c}[1 - \cos(\Omega_c t)] & 0\\ -\frac{1}{\Omega_c}[1 - \cos(\Omega_c t)] & \frac{1}{\Omega_c}\sin(\Omega_c t) & 0 \\ 0 & 0 & t \end{bmatrix} \begin{bmatrix} v_{x0} \\ v_{y0} \\ v_{z0} \end{bmatrix} + \begin{bmatrix} x_0 \\ y_0 \\ z_0 \end{bmatrix}, \end{equation}\]

or as a matrix equation,

\[\begin{equation} \label{eq:x_B_sol_mat_eq} \mathbf{x} = \Pi(\Omega_c t) \mathbf{v}_0 + \mathbf{x}_0. \end{equation}\]

These equations describe a helical motion along the $xy$-axis with a linear drift along the $z$-axis. We can calculate the radius of the helical trajectory by writing the equations for $x$ and $y$ as a circle

\[\begin{align} x - x_0 - \frac{v_{y0}}{\Omega_c} =&\, \frac{v_{x0}}{\Omega_c}\sin(\Omega_c t) - \frac{v_{y0}}{\Omega_c}\cos(\Omega_c t), \\ y - y_0 + \frac{v_{x0}}{\Omega_c} =&\, \frac{v_{y0}}{\Omega_c}\sin(\Omega_c t) + \frac{v_{x0}}{\Omega_c}\cos(\Omega_c t). \end{align}\]

Now, define $x_c = x_0 + \frac{v_{y0}}{\Omega_c}$ and $y_c = y_0 - \frac{v_{x0}}{\Omega_c}$,

\[\begin{align} x - x_c =&\, \frac{v_{x0}}{\Omega_c}\sin(\Omega_c t) - \frac{v_{y0}}{\Omega_c}\cos(\Omega_c t), \\ y - y_c =&\, \frac{v_{y0}}{\Omega_c}\sin(\Omega_c t) + \frac{v_{x0}}{\Omega_c}\cos(\Omega_c t). \end{align}\]

We can now write these equations in the form of an equation of a circle centered at $(x_c, y_c)$,

\[\begin{equation} r^2 = (x - x_c)^2 + (y - y_c)^2. \end{equation}\]

The radius would then be

\[\begin{equation} \rho = \sqrt{\Big[\frac{v_{x0}}{\Omega_c}\sin(\Omega_c t) - \frac{v_{y0}}{\Omega_c}\cos(\Omega_c t)\Big]^2 + \Big[\frac{v_{y0}}{\Omega_c}\sin(\Omega_c t) + \frac{v_{x0}}{\Omega_c}\cos(\Omega_c t)\Big]^2}. \end{equation}\]

After some simplification, we get

\[\begin{equation} \label{eq:larmor_radius} \rho_L = \frac{m}{\abs{q}B_0}\sqrt{v_{x0}^2 + v_{y0}^2}. \end{equation}\]

This is known as the Larmor or cyclotron radius. A general solution can be derived from $\text{Eq.}~\eqref{eq:x_B_gen_sol}$. I’ll just state it here for completion

\[\begin{equation} \label{eq:larmor_radius_general} \rho_L = \frac{m}{\abs{q}B_0}\sqrt{v_{i0}v_{i0} - \frac{(v_{j0}B_j)^2}{B_k B_k}}. \end{equation}\]

Energy conservation

To determine if the energy is conserved, we need to check that

\[\begin{equation} \deriv{E}{t} = \deriv{K}{t} + \deriv{U}{t} = 0. \end{equation}\]

where $K$ is the kinetic energy and $U$ is the potential energy. In this case, all the energy is kinetic so $U = 0$. We can then differentiate the kinetic energy,

\[\begin{equation} \deriv{K}{t} = \frac{1}{2} m \deriv{}{t}(v_i v_i) = \frac{1}{2} m \Bigg(\deriv{v_i}{t} v_i + v_i\deriv{v_i}{t} \Bigg) = m v_i \deriv{v_i}{t}. \end{equation}\]

Plugging $\text{Eq.}~\eqref{eq:em_force}$ into the equation above

\[\begin{equation} \deriv{E}{t} = q v_i (E_i + \levi{i}{j}{k} v_j B_k). \end{equation}\]

Using a very similar process to obtain $\text{Eq.}~\eqref{eq:zero_term}$, we can show that $\levi{i}{j}{k} v_i v_j B_k = 0$ by exchanging the indices $i \leftrightarrow j$. The equation then becomes

\[\begin{equation} \label{eq:cons_energy} \deriv{K}{t} = q v_i E_i. \end{equation}\]

This equation tells us that the energy of a moving charged particle is conserved only if $\E = 0$. If $\E \neq 0$, the electric field is constantly transferring or removing energy from the particle, leading to the energy not being conserved.

Velocity components

We can also write the velocity in terms of the components parallel and perpendicular to the magnetic field. Let’s rewrite $\text{Eq.}~\eqref{eq:v_i_gen_sol}$ and substitute for the cyclotron frequency on the last term,

\[\begin{equation} \label{eq:v_i_gen_sol_alt} v_i(t) = v_{i0}\cos(\Omega_c t) + \frac{q}{m \Omega_c} \levi{i}{j}{k} v_{j0} B_k \sin(\Omega_c t) + \frac{v_{j0} B_j}{B_k B_k} B_i \Big[1 - \cos(\Omega_c t)\Big]. \end{equation}\]

The parallel velocity is defined as

\[\begin{equation} \label{eq:v_parallel_def} v_{\parallel}(t) = v_i(t) \cdot \hat{b} = \frac{v_i(t) B_i}{B}, \end{equation}\]

which is described as the velocity projected onto the magnetic field. We take the dot product of $\text{Eq.}~\eqref{eq:v_i_gen_sol_alt}$ with $B_i$ and noting that we’ve already shown the second term to be zero in Case 1: No magnetic field,

\[\begin{equation} v_i(t) B_i = v_{i0}B_i\cos(\Omega_c t) + \frac{v_{j0} B_j}{B_k B_k} B_i B_i \Big[1 - \cos(\Omega_c t)\Big]. \end{equation}\]

This can be further simplied to

\[\begin{equation} v_i(t) B_i = v_{i0}B_i\cos(\Omega_c t) + v_{j0} B_j\Big[1 - \cos(\Omega_c t)\Big] \end{equation}\]

by cancelling the dot product terms. Since the combinations of $v_0$ and $B$ are dot products, we can relabel the dummy indices, which gives us

\[\begin{equation} v_i(t) B_i = v_{j0}B_j. \end{equation}\]

From $\text{Eq.}~\eqref{eq:v_parallel_def}$ we can show that

\[\begin{equation} \label{eq:v_parallel_scalar} v_{\parallel}(t) = \frac{v_{j0}B_j}{B} = v_{\parallel 0}, \end{equation}\]

which shows that $v_{\parallel}$ is constant and cannot be changed by a uniform magnetic field. Its vector form can be written as

\[\begin{equation} \label{eq:v_parallel_vector} v_{\parallel i}(t) = \frac{v_{j0}B_j}{B^2} B_i. \end{equation}\]

The perpendicular velocity is defined as

\[\begin{equation} \label{eq:v_perp_def} v_{\perp i}(t) = v_i(t) - v_{\perp i}(t). \end{equation}\]

This gives the following general form for $v_{\perp}$

\[\begin{equation} v_{\perp i}(t) = \Big[ v_{i0} - \frac{v_{j0} B_j B_i}{B^2} \Big] \cos(\Omega_c t) + \frac{q}{m \Omega_c}\levi{i}{j}{k} v_{j0} B_k \sin(\Omega_c t). \end{equation}\]

Evaluating the solution using the same initial conditions as in Case 2: No electric field,

\[\begin{equation} \label{eq:v_perp_scalar} v_{\perp i}(0) = v_{i0} - \frac{v_{j0} B_j B_i}{B^2} = v_{\perp i 0}. \end{equation}\]

The equation then takes the form

\[\begin{equation} v_{\perp i}(t) = v_{\perp i 0} \cos(\Omega_c t) + \frac{q}{m \Omega_c}\levi{i}{j}{k} v_{j0} B_k \sin(\Omega_c t). \end{equation}\]

The second term can also be written in terms of these velocities. First, we recognize that

\[\begin{equation} v_{j0} = v_{\perp j 0} + v_{\parallel j 0}. \end{equation}\]

Now, we can write

\[\begin{align} \levi{i}{j}{k} v_{j0} B_k =&\, \levi{i}{j}{k} (v_{\perp j 0} + v_{\parallel j 0}) B_k, \\ =&\, \levi{i}{j}{k} v_{\perp j 0} B_k + \levi{i}{j}{k} v_{\parallel j 0} B_k. \end{align}\]

The second term will introduce a $B_j$ term through $v_{\parallel j 0}$, which we’ve already shown is zero, i.e., $\levi{i}{j}{k} B_j B_k = 0$. Thus,

\[\begin{equation} \label{eq:v_perp_vector} v_{\perp i}(t) = v_{\perp i 0} \cos(\Omega_c t) + \frac{q}{m \Omega_c}\levi{i}{j}{k} v_{\perp j 0} B_k \sin(\Omega_c t). \end{equation}\]

We can also show that $v_{\perp}$ is constant by using $\text{Eq.}~\eqref{eq:v_perp_def}$

\[\begin{equation} v_{\perp i} = v_i - v_{\parallel i} \, \longrightarrow \, v^2_{\perp i} = v^2_i - v^2_{\parallel i}, \end{equation}\]

since the cross terms are zero due to the components being orthogonal. In Energy-Conservation, we showed that $\deriv{K}{t} = 0$ when there is no electric field. Plugging in the equation for kinetic energy shows that,

\[\begin{equation} \deriv{}{t} (v_i v_i) = 0 \, \longrightarrow \, v^2_i = \text{constant}, \end{equation}\]

therefore,

\[\begin{align} v^2_{\perp}(t) =&\, v_{i0} v_{i0} - \frac{(v_{j0}B_j)^2}{B_k B_k}, \\ \abs{v_{\perp}(t)} =&\, \sqrt{v_{i0} v_{i0} - \frac{(v_{j0}B_j)^2}{B_k B_k}} = v_{\perp 0}. \end{align}\]

The magnitude of the velocity can also be calculated using $\text{Eq.}~\eqref{eq:v_parallel_scalar}$ and $\text{Eq.}~\eqref{eq:v_perp_scalar}$,

\[\begin{equation} \abs{v_i} = \sqrt{v_{i0} v_{i0} - \frac{(v_j B_j)^2}{B_k B_k}} + \frac{v_{j0} B_j}{B}. \end{equation}\]

Looking back at the definition of the Larmor radius we derived at the end of Case 2: No electric field, we see that the expression in the square root is exactly $v^2_{\perp}(t)$. We can now write the Larmor radius as

\[\begin{equation} \label{eq:larmor_radius_general_vel_perp} \rho_L = \frac{v_{\perp 0}}{\Omega_c}. \end{equation}\]

We have now gone over the derivation of the dynamics of a charged particle in a magnetic field. We showed the general solutions under two limiting cases, in what scenarios the energy is conserved, and how the equations can be written in terms of the parallel and perpendicular velocity components.

The code presented in this post can be found on my Github under the charged-particle-dynamics repo [1]. Feel free to reach out if you have any questions about what we covered this week. Next time we will go over some numerical methods and present numerical results for a charged particle in a magnetic field. Stay tuned!

  1. [1] Alberto J. Garcia, The Dynamics of a Charged Particle in an Electromagnetic Field, 2026. Available at: https://github.com/AJG91/charged-particle-dynamics.

⬅ Back to Home

Updated: