---
title: Curves and motion in space
heading: An electron spiraling in a magnetic field
eyebrow: A9 · Lesson 2 · Vector functions
xp: 40
---

::: hook
An electron fired into a uniform magnetic field doesn't fly straight. The force $q\mathbf{v} \times \mathbf{B}$ is always sideways to its motion, so it bends the path into a circle, and any motion along the field carries the circle forward into a helix. Its radius and rotation rate are what make a cyclotron, a magnetron in a microwave oven, and a mass spectrometer work. Describing that path, its velocity, its acceleration and its length takes a **vector function**: a position that changes with time.
:::

::: play
- The curve is the side view of a helix: a charge circling in the $xy$-plane while drifting along the field in $z$. Across the screen is $x$; up the screen is $z$.
- The field strength $B$ sets how tightly it circles; the speed along the field sets how fast it drifts.
- The readouts give the radius and the pitch (the drift per turn), in arbitrary units.
:::
:::

```sim plot
view: complex
range: 6
slider: B = 0.5..3 step 0.1 = 1
slider: vp = 0.5..3 step 0.1 = 2
slider: vz = 0..2 step 0.1 = 0.5
curve: (vp/B)*cos(u) + j*(vz*u/B - 5) | over: u = 0..6*pi | label: helix, side view
readout: radius = vp/B | digits: 3
readout: pitch = 2*pi*vz/B | digits: 3
```

::: predict
## Double the magnetic field. What happens to the electron's circle?

- [x] Its radius halves and it goes around twice as often
- [ ] Its radius doubles
- [ ] Its speed doubles
- [ ] Nothing: the field does no work

::: reveal
The radius halves and the rotation rate doubles. The force $qvB$ supplies the centripetal force $\frac{mv^2}{r}$, so $r = \frac{mv}{qB}$, and the angular frequency is $\frac{v}{r} = \frac{qB}{m}$. The speed doesn't change: the force is always perpendicular to the motion, so it does no work.
:::
:::

::: nameit
## Vector functions

A **vector function** $\mathbf{r}(t) = (x(t), y(t), z(t))$ traces a curve. Differentiate component by component:

- **velocity** $\mathbf{v} = \mathbf{r}'(t)$, tangent to the curve;
- **speed** $|\mathbf{v}|$;
- **acceleration** $\mathbf{a} = \mathbf{r}''(t)$;
- **arc length** from $a$ to $b$: $L = \int_a^b|\mathbf{r}'(t)|\,dt$, the 3D version of A6's formula.

For motion in a circle of radius $r$ at constant speed $v$, the acceleration points to the center with size $\frac{v^2}{r}$.

## The helix

$\mathbf{r}(t) = (R\cos\omega t, R\sin\omega t, v_zt)$ has velocity $(-R\omega\sin\omega t, R\omega\cos\omega t, v_z)$ and constant speed $\sqrt{(R\omega)^2 + v_z^2}$.

## A charge in a uniform field

With $\mathbf{B}$ along $z$, a charge $q$ of mass $m$ with speed $v_\perp$ across the field and $v_\parallel$ along it follows a helix with

$$r = \frac{mv_\perp}{qB} \qquad \omega_c = \frac{qB}{m} \qquad \text{pitch} = v_\parallel\frac{2\pi}{\omega_c}$$

The **cyclotron frequency** $\omega_c$ doesn't depend on the speed, which is why a cyclotron can accelerate particles with a fixed-frequency voltage. For an electron, $f_c = \frac{\omega_c}{2\pi} = 28$ GHz per tesla.
:::

::: example
## Find the speed and the length of one turn of $\mathbf{r}(t) = (\cos t, \sin t, t)$.

::: solution
1. **Differentiate.**
   $$\mathbf{r}' = (-\sin t, \cos t, 1)$$
2. **Find the speed.**
   $$\begin{aligned} |\mathbf{r}'| &= \sqrt{\sin^2t + \cos^2t + 1} \\ &= \sqrt 2 \end{aligned}$$
   which is constant.
3. **Find the length of one turn.** One turn takes $2\pi$, so its length is
   $$\begin{aligned} L &= 2\pi\sqrt 2 \\ &= 8.89 \end{aligned}$$

**Answer:** the speed is a constant $\sqrt 2$, and one turn is 8.89 long.
:::
:::

::: example
## An electron moves at $10^6$ m/s across a 0.01 T field. Find its radius and frequency.

::: solution
1. **Radius.**
   $$\begin{aligned} r &= \frac{mv}{qB} \\ &= \frac{9.11 \times 10^{-31} \times 10^6}{1.60 \times 10^{-19} \times 0.01}\ \text{m} \\ &= 0.57\ \text{mm} \end{aligned}$$
2. **Frequency.**
   $$\begin{aligned} f_c &= \frac{qB}{2\pi m} \\ &= 280\ \text{MHz} \end{aligned}$$

**Answer:** the electron circles with a radius of 0.57 mm at 280 MHz.
:::
:::

::: example
## A proton moves at $10^5$ m/s across a 0.1 T field. Find the radius and frequency of its circle.

::: solution
1. **Balance the forces.** The magnetic force $qvB$ supplies the centripetal force $mv^2/r$, so
   $$r = \frac{mv}{qB}$$
2. **Put in the numbers.**
   $$\begin{aligned} r &= \frac{1.673 \times 10^{-27} \times 10^5}{1.602 \times 10^{-19} \times 0.1}\ \text{m} \\ &= 10.4\ \text{mm} \end{aligned}$$
3. **Frequency.**
   $$\begin{aligned} f &= \frac{qB}{2\pi m} \\ &= 1.52\ \text{MHz} \end{aligned}$$
4. **Notice what's missing.** The frequency doesn't depend on the speed: faster protons make bigger circles in the same time. That's the principle of the cyclotron.

**Answer:** the proton circles with a radius of 10.4 mm at 1.52 MHz.
:::
:::

::: check
given: a = 2 | 3; b = 1 | 4
answer: sqrt(a^2 + b^2)
tolerance: 0.5%

## What is the speed of $\mathbf{r}(t) = (\given{a}\cos t, \given{a}\sin t, \given{b}t)$?

::: right
Right. $|\mathbf{r}'| = \sqrt{a^2\sin^2t + a^2\cos^2t + b^2} = \sqrt{a^2 + b^2}$ = {answer}.
:::

::: misses
- [a + b] Speeds combine as the length of the velocity vector.
- [a] Include the drift along $z$.
- [any] Not yet. Differentiate each component, then take the length.
:::
:::

::: check
given: a = 2 | 3; b = 1 | 4
answer: 2*pi*sqrt(a^2 + b^2)
tolerance: 0.5%

## How long is one turn of $\mathbf{r}(t) = (\given{a}\cos t, \given{a}\sin t, \given{b}t)$, from $t = 0$ to $2\pi$?

::: right
Right. Constant speed times time: $2\pi\sqrt{a^2 + b^2}$ = {answer}.
:::

::: misses
- [2*pi*a] That's the circle without the drift.
- [any] Not yet. $\int_0^{2\pi}|\mathbf{r}'|\,dt$.
:::
:::

::: check
given: v = 1e6 | 5e6; B = 0.01 | 0.1
answer: 9.109e-31*v/(1.602e-19*B)*1000
unit: mm
tolerance: 1%

## An electron moves at {v} m/s across a {B} T field. What is the radius of its circle?

::: right
Right. $r = \frac{mv}{qB}$ = {answer}.
:::

::: misses
- [1.602e-19*B/(9.109e-31*v)*1000] Upside down: faster electrons make wider circles.
- [any] Not yet. Balance $qvB$ against $\frac{mv^2}{r}$.
:::
:::

::: check
given: B = 0.01 | 0.05 | 0.2
answer: 1.602e-19*B/(2*pi*9.109e-31)/1e6
unit: MHz
tolerance: 1%

## What is an electron's cyclotron frequency in a {B} T field?

::: right
Right. $f_c = \frac{qB}{2\pi m}$ = {answer}, whatever its speed.
:::

::: misses
- [1.602e-19*B/(9.109e-31)/1e6] That's $\omega_c$ in Mrad/s. Divide by $2\pi$ for hertz.
- [any] Not yet. $\frac{qB}{2\pi m}$.
:::
:::

::: check
given: v = 2 | 10; r = 0.5 | 2
answer: v^2/r
unit: m/s²
tolerance: 0.5%

## Something moves in a circle of radius {r} m at {v} m/s. How large is its acceleration, in m/s²?

::: right
Right. $\frac{v^2}{r}$ = {answer}, toward the center.
:::

::: misses
- [v/r] That's the angular speed.
- [0] The speed is constant, but the velocity's direction keeps changing.
- [any] Not yet. Centripetal acceleration $v^2/r$.
:::
:::

::: check
given: vz = 1e5 | 4e5; B = 0.01 | 0.02
answer: vz*2*pi*9.109e-31/(1.602e-19*B)*1000
unit: mm
tolerance: 1%

## An electron drifts along a {B} T field at {vz} m/s while circling. What is the pitch of its helix?

::: right
Right. Drift speed times one cyclotron period, $v_\parallel\frac{2\pi m}{qB}$ = {answer}.
:::

::: misses
- [vz*9.109e-31/(1.602e-19*B)*1000] One period is $\frac{2\pi m}{qB}$: include the $2\pi$.
- [any] Not yet. Pitch $= v_\parallel \times$ period.
:::
:::

::: check
kind: parts
given: v = 1 | 5; B = 0.01 | 0.05

## An electron moves at {v}e6 m/s across a {B} T field ($m$ = 9.109e-31 kg, $q$ = 1.602e-19 C).

::: part
answer: 9.109e-31*v*1e6/(1.602e-19*B)*1000
unit: mm
tolerance: 0.5%

### What is the radius of its circle?

::: misses
- [any] $r = \frac{mv}{qB}$.
:::
:::

::: part
answer: 1.602e-19*B/(2*pi*9.109e-31)/1e6
unit: MHz
tolerance: 0.5%

### What is its frequency?

::: misses
- [1.602e-19*B/9.109e-31/1e6] That's the angular frequency in Mrad/s; divide by $2\pi$.
- [any] $f = \frac{qB}{2\pi m}$.
:::
:::
:::

::: check
kind: derivation
vars: R = 0.5..3, c = 0.1..2, t = 0..6

## Follow the helix $\mathbf{r} = (R\cos t, R\sin t, ct)$.

::: step
answer: sqrt(R^2 + c^2)

### What is its speed?
:::

::: step
answer: 2*pi*sqrt(R^2 + c^2)

### How long is one turn?
:::

::: right
Right. The speed is constant, $\sqrt{R^2 + c^2}$, so one turn is $2\pi$ times it.
:::
:::

::: explain
## Why doesn't a magnetic field change a charged particle's speed?

::: model
The magnetic force is $q\mathbf{v} \times \mathbf{B}$, and a cross product is always perpendicular to both of its vectors, so the force is always perpendicular to the velocity. A force at right angles to the motion does no work, $\mathbf{F}\cdot\mathbf{v} = 0$, so the kinetic energy and therefore the speed stay fixed. The field can only bend the path, which is why the particle circles at constant speed. Changing its speed takes an electric field.
:::
:::

::: practice

::: check
given: w = 2 | 5; R = 1 | 3
answer: R*w
tolerance: 0.5%

## What is the speed of $\mathbf{r}(t) = (\given{R}\cos\given{w}t, \given{R}\sin\given{w}t, 0)$?

::: misses
- [any] $R\omega$.
:::
:::

::: check
given: B = 0.1 | 0.35 | 0.5 | 1 | 1.5 | 2 | 3
answer: 28*B
unit: GHz
tolerance: 1%

## Using 28 GHz per tesla, what is an electron's cyclotron frequency in {B} T?

::: misses
- [any] $28 \times B$ GHz.
:::
:::

::: check
given: x = 3 | 4; y = 4 | 1; z = 12 | 2
answer: sqrt(x^2 + y^2 + z^2)
tolerance: 0.5%

## A velocity is $(\given{x}, \given{y}, \given{z})$ m/s. What is the speed?

::: misses
- [x + y + z] Use the length of the vector.
- [any] $\sqrt{v_x^2 + v_y^2 + v_z^2}$.
:::
:::
:::
