---
title: Curvature
heading: How sharply a path bends, and the force it takes to bend it
eyebrow: A9 · Lesson 3 · Curvature
xp: 40
---

::: hook
A path's velocity tells you where it's going; its curvature tells you how sharply it's turning. A circle of radius $R$ bends by the same amount everywhere, with curvature $1/R$, and any smooth curve is momentarily bending like some circle, its **osculating circle**. Curvature sets the sideways acceleration $v^2/R$ that a particle needs to follow a path: the magnetic force on a moving charge supplies exactly that, which is how a mass spectrometer sorts ions by the radius of their curve.
:::

::: play
- The parabola is $y = ax^2$, and the circle is its osculating circle at $x_0$: the circle that matches its position, slope and bending there.
- Slide $x_0$ away from the vertex. The parabola flattens, so the circle grows: the curvature falls.
- Raise $a$ to sharpen the parabola. At the vertex the radius is $\frac{1}{2a}$.
:::

```sim plot
view: complex
range: 4
axes: x, y
slider: a = 0.2..2 step 0.05 = 0.5
slider: x0 = -2..2 step 0.05 = 0.5
curve: u + j*a*u^2 | over: u = -3..3 | label: y = ax²
curve: (x0 - x0*(1 + 4*a^2*x0^2)) + j*(a*x0^2 + (1 + 4*a^2*x0^2)/(2*a)) + (1 + 4*a^2*x0^2)^1.5/(2*a)*exp(j*u) | over: u = 0..6.2832 | label: osculating circle | color: ch2
dot: x0 + j*a*x0^2 | label: point
readout: curvature = 2*a/(1 + 4*a^2*x0^2)^1.5 | digits: 4
readout: radius = (1 + 4*a^2*x0^2)^1.5/(2*a) | digits: 4
```

::: predict
## A car drives at a steady speed around a curve that tightens from a radius of 100 m to 50 m. What happens to the sideways force its tires must supply?

- [ ] It halves
- [ ] It stays the same, since the speed hasn't changed
- [x] It doubles
- [ ] It quadruples

::: reveal
It doubles. The sideways (normal) acceleration is $\kappa v^2 = v^2/R$, so halving the radius doubles it at the same speed. Doubling the speed instead would quadruple it. Steady speed means no acceleration along the path, but turning always needs acceleration across it.
:::
:::

::: nameit
## Curvature

For a path $\mathbf{r}(t)$, the unit tangent is $\mathbf{T} = \mathbf{r}'/|\mathbf{r}'|$. Curvature is how fast $\mathbf{T}$ turns per unit of distance traveled:

$$\kappa = \left|\frac{d\mathbf{T}}{ds}\right| = \frac{|\mathbf{r}'\times\mathbf{r}''|}{|\mathbf{r}'|^3}$$

The radius of curvature is $1/\kappa$, and the unit normal $\mathbf{N}$ points toward the center of the osculating circle.

For a plane graph $y = f(x)$:

$$\kappa = \frac{|f''(x)|}{\left(1 + f'(x)^2\right)^{3/2}}$$

## Acceleration, split two ways

$$\mathbf{a} = \frac{dv}{dt}\mathbf{T} + \kappa v^2\mathbf{N}$$

The tangential part changes the speed; the normal part, $\kappa v^2$, changes the direction. A force perpendicular to the velocity, like the magnetic force $q\mathbf{v}\times\mathbf{B}$, can only supply the normal part, so it bends the path without changing the speed, with radius $\frac{mv}{qB}$.

## Examples

- A circle of radius $R$: $\kappa = \frac1R$ everywhere.
- A helix $(R\cos t, R\sin t, ct)$: $\kappa = \frac{R}{R^2 + c^2}$, less than a flat circle's, because the climb straightens it.
- A straight line: $\kappa = 0$.
:::

::: example
## Find the curvature of $y = x^2$ at the vertex and at $x = 1$.

::: solution
1. **Take the derivatives.**
   $$f' = 2x, \quad f'' = 2$$
2. **At the vertex.** At $x = 0$,
   $$\begin{aligned} \kappa &= \frac{2}{1^{3/2}} \\ &= 2 \end{aligned}$$
   a radius of 0.5.
3. **At $x = 1$.**
   $$\begin{aligned} \kappa &= \frac{2}{(1 + 4)^{3/2}} \\ &= \frac{2}{11.18} \\ &= 0.179 \end{aligned}$$
   a radius of 5.59.
4. **Compare.** The parabola is ten times flatter at $x = 1$ than at its vertex, though its second derivative is the same everywhere: curvature measures bending per unit of arc length, and the steep part covers more length.

**Answer:** the curvature is 2 at the vertex (radius 0.5) and 0.179 at $x = 1$ (radius 5.59).
:::
:::

::: example
## Find the curvature of the helix $\mathbf{r} = (2\cos t, 2\sin t, t)$.

::: solution
1. **First derivative and speed.**
   $$\begin{aligned} \mathbf{r}' &= (-2\sin t, 2\cos t, 1) \\ |\mathbf{r}'| &= \sqrt5 \end{aligned}$$
2. **Second derivative.**
   $$\mathbf{r}'' = (-2\cos t, -2\sin t, 0)$$
3. **Cross them.**
   $$\begin{aligned} \mathbf{r}' \times \mathbf{r}'' &= (2\sin t, -2\cos t, 4) \\ |\mathbf{r}' \times \mathbf{r}''| &= \sqrt{20} \end{aligned}$$
4. **Curvature.**
   $$\begin{aligned} \kappa &= \frac{\sqrt{20}}{(\sqrt5)^3} \\ &= \frac{2\sqrt5}{5\sqrt5} \\ &= 0.4 \end{aligned}$$
5. **Check.** It matches $\frac{R}{R^2 + c^2} = \frac25$: a radius of 2.5, wider than the circle of radius 2 it winds around.

**Answer:** the helix has curvature 0.4 everywhere, a radius of 2.5.
:::
:::

::: example
## An electron at $10^6$ m/s crosses a 0.01 T field. What is the curvature of its path, and its acceleration?

::: solution
1. **Radius of the path.**
   $$\begin{aligned} r &= \frac{mv}{qB} \\ &= \frac{9.109 \times 10^{-31} \times 10^6}{1.602 \times 10^{-19} \times 0.01}\ \text{m} \\ &= 0.569\ \text{mm} \end{aligned}$$
2. **Curvature.** It's one over the radius:
   $$\kappa = 1759\ \text{m}^{-1}$$
3. **Acceleration.** The acceleration is entirely normal:
   $$\begin{aligned} a &= \kappa v^2 \\ &= 1759 \times 10^{12} \\ &= 1.76 \times 10^{15}\ \text{m/s}^2 \end{aligned}$$
   about $10^{14}$ times gravity, from a field a refrigerator magnet could produce.

**Answer:** the path's curvature is 1759 m⁻¹, and the electron accelerates at $1.76 \times 10^{15}$ m/s², all of it toward the center.
:::
:::

::: check
given: a = 0.5 | 1 | 2; x = 0.5 | 1
answer: 2*a/(1 + 4*a^2*x^2)^1.5
unit: m⁻¹
tolerance: 0.5%

## What is the curvature of $y = \given{a}x^2$ at $x$ = {x}?

::: right
Right. $\frac{|f''|}{(1 + f'^2)^{3/2}} = \frac{2a}{(1 + 4a^2x^2)^{3/2}}$ = {answer}.
:::

::: misses
- [2*a] That's $f''$ alone; divide by $(1 + f'^2)^{3/2}$.
- [any] Not yet. $f' = 2ax$ and $f'' = 2a$.
:::
:::

::: check
given: R = 1 | 2 | 3; c = 0.5 | 2
answer: R/(R^2 + c^2)
unit: m⁻¹
tolerance: 0.5%

## What is the curvature of the helix $(\given{R}\cos t, \given{R}\sin t, \given{c}t)$?

::: right
Right. $\frac{R}{R^2 + c^2}$ = {answer}.
:::

::: misses
- [1/R] That's the flat circle's; the climb straightens the path.
- [any] Not yet. Use $\frac{|\mathbf{r}'\times\mathbf{r}''|}{|\mathbf{r}'|^3}$.
:::
:::

::: check
given: v = 10 | 25; R = 20 | 100
answer: v^2/R
unit: m/s²
tolerance: 0.5%

## A car takes a curve of radius {R} m at {v} m/s. What is its sideways acceleration?

::: right
Right. $\kappa v^2 = v^2/R$ = {answer}.
:::

::: misses
- [v/R] That's the turning rate in rad/s.
- [any] Not yet. The normal acceleration is $\kappa v^2$.
:::
:::

::: check
given: m = 1 | 4; v = 1 | 3; B = 0.1 | 0.5
answer: m*1.6605e-27*v*1e5/(1.602e-19*B)*1000
unit: mm
tolerance: 0.5%

## An ion of mass {m} u and charge $+e$ moves at {v}e5 m/s across a {B} T field. What is its radius of curvature? (1 u = 1.6605e-27 kg.)

::: right
Right. $\frac{mv}{qB}$ = {answer}: heavier ions curve less, which separates them in a mass spectrometer.
:::

::: misses
- [any] Not yet. The magnetic force $qvB$ supplies $mv^2/R$.
:::
:::

::: check
kind: parts
given: a = 1 | 2 | 4

## Consider the parabola $y = \given{a}x^2$.

::: part
answer: 1/(2*a)
unit: m
tolerance: 0.5%

### What is its radius of curvature at the vertex?

::: misses
- [2*a] That's the curvature; the radius is its reciprocal.
- [any] $\kappa = 2a$ at $x = 0$.
:::
:::

::: part
answer: (1 + 4*a^2)^1.5/(2*a)
unit: m
tolerance: 0.5%

### And at $x = 1$?

::: misses
- [any] $\frac{(1 + f'^2)^{3/2}}{|f''|}$ with $f' = 2a$.
:::
:::
:::

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

## Find the helix $(R\cos t, R\sin t, ct)$'s curvature step by step.

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

### What is $|\mathbf{r}'|$?
:::

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

### What is $|\mathbf{r}'\times\mathbf{r}''|$? (The cross product is $(Rc\sin t, -Rc\cos t, R^2)$.)
:::

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

### What is $\kappa$?
:::

::: right
Right. $\frac{R\sqrt{R^2 + c^2}}{(R^2 + c^2)^{3/2}} = \frac{R}{R^2 + c^2}$.
:::
:::

::: check
kind: python

## Write `kappa(r, t, h=1e-4)` returning the curvature of a plane path `r(t)` (a function returning a NumPy pair) from central-difference estimates of $\mathbf r'$ and $\mathbf r''$. Set `k0` and `k1` for the ellipse $(3\cos t, 2\sin t)$ at $t = 0$ and $t = \pi/2$.

```python starter
import numpy as np

def kappa(r, t, h=1e-4):
    return 1.0

ell = lambda t: np.array([3 * np.cos(t), 2 * np.sin(t)])
k0, k1 = kappa(ell, 0.0), kappa(ell, np.pi / 2)
print(k0, k1)
```

```python solution
import numpy as np

def kappa(r, t, h=1e-4):
    d1 = (r(t + h) - r(t - h)) / (2 * h)
    d2 = (r(t + h) - 2 * r(t) + r(t - h)) / h**2
    return abs(d1[0] * d2[1] - d1[1] * d2[0]) / np.hypot(d1[0], d1[1])**3

ell = lambda t: np.array([3 * np.cos(t), 2 * np.sin(t)])
k0, k1 = kappa(ell, 0.0), kappa(ell, np.pi / 2)
print(k0, k1)
```

```python tests
assert abs(k0 - 3 / 4) < 1e-5, f"At the end of the long axis the curvature is a/b^2 = 0.75; got {k0}."
assert abs(k1 - 2 / 9) < 1e-5, f"At the end of the short axis it's b/a^2 = 0.222; got {k1}."
```

::: right
Right. The ellipse bends most sharply at the ends of its long axis and is flattest at the ends of its short axis.
:::
:::

::: explain
## A magnetic field can bend a charged particle's path but can't speed it up or slow it down. Why?

::: model
The magnetic force $q\mathbf{v}\times\mathbf{B}$ is always perpendicular to the velocity, so it has no component along the path. Splitting acceleration into $\frac{dv}{dt}\mathbf{T} + \kappa v^2\mathbf{N}$, a force with no tangential part can only produce the normal part: it changes the direction, setting the curvature to $\frac{qB}{mv}$ for motion across the field, and leaves the speed alone. Equivalently, it does no work, since $\mathbf{F}\cdot\mathbf{v} = 0$. Speeding a particle up takes an electric field, which is why accelerators use electric fields to add energy and magnetic fields to steer.
:::
:::

::: practice

::: check
given: a = 0.1..5; x = -2..2
answer: 2*a/(1 + 4*a^2*x^2)^1.5
tolerance: 0.5%

## Curvature of $y = \given{a}x^2$ at $x$ = {x}?

::: misses
- [any] $\frac{2a}{(1 + 4a^2x^2)^{3/2}}$.
:::
:::

::: check
given: v = 1..50; R = 1..500
answer: v^2/R
tolerance: 0.5%

## Normal acceleration at {v} m/s on a radius of {R} m?

::: misses
- [any] $v^2/R$.
:::
:::
:::
