---
title: Fields of continuous charge
heading: Rings, rods and disks by adding up tiny pieces
eyebrow: B2 · Lesson 5 · Continuous charge
xp: 40
---

::: hook
Real charge doesn't sit on points. It spreads along wires, around electrodes and over plates. To find the field of a charged ring, a rod or a disk, chop it into tiny pieces, treat each as a point charge, and add their fields, which for smooth shapes becomes an integral. Symmetry usually cancels most of the work: around a ring, the sideways pushes cancel in pairs and only the push along the axis survives. The results show how a field changes from "flat plate" close up to "point charge" far away.
:::

::: play
- The solid curve is the field on the axis of a charged ring of radius $R$ carrying 1 nC; the dashed curve is a 1 nC point charge at the ring's center.
- At the center the ring's field is zero: every piece's push is canceled by the piece opposite.
- Far away the two curves merge. Where does the ring's field peak, and how does that depend on $R$?
:::
:::

```sim plot
view: graph
x: z = 0..10 cm
y: E = 0..60 kV/m
slider: R = 0.5..5 step 0.1 = 2 cm
slider: z0 = 0..10 step 0.1 = 4 cm
plot: 89.88*z/(z^2 + R^2)^1.5 | label: ring
plot: 89.88/z^2 | label: point charge | dashed | color: ch2
marker: x = z0 | label: z
readout: ring field at z, kV/m = 89.88*z0/(z0^2 + R^2)^1.5 | digits: 4
readout: point charge at z, kV/m = 89.88/(z0^2 + 0.000001) | digits: 4
readout: peak position, cm = R/sqrt(2) | digits: 3
```

::: predict
## A thin ring carries charge spread evenly around it. What is the field at its exact center?

- [ ] Largest there, since every piece is equally close
- [x] Zero
- [ ] The same as a point charge at that distance
- [ ] It points along the axis

::: reveal
Zero. Each little piece of the ring pushes outward from itself, and the piece directly opposite pushes the other way just as hard. Around the whole ring the pushes cancel. Move along the axis and they no longer cancel completely: the sideways parts still do, but the parts along the axis add.
:::
:::

::: nameit
## Adding up pieces

Split a charge distribution into pieces $dq$, each a point charge. The field is the vector sum of their fields:

$$\mathbf E = \int \frac{k\,dq}{r^2}\hat{\mathbf r}, \qquad k = \frac{1}{4\pi\varepsilon_0} = 8.99 \times 10^9\ \text{N·m²/C²}$$

Write $dq$ with a density: $\lambda\,dl$ for a line (C/m), $\sigma\,dA$ for a surface (C/m²), $\rho\,dV$ for a volume. Use symmetry first to see which components cancel, then integrate only the survivors (A9.14).

## Results

| Distribution | Field |
|---|---|
| ring, radius $R$, charge $Q$, on its axis at $z$ | $E = \frac{kQz}{(z^2 + R^2)^{3/2}}$, along the axis |
| rod of length $2a$, density $\lambda$, at distance $y$ on its perpendicular bisector | $E = \frac{2k\lambda a}{y\sqrt{y^2 + a^2}}$ |
| infinitely long line | $E = \frac{2k\lambda}{y} = \frac{\lambda}{2\pi\varepsilon_0y}$ |
| disk, radius $R$, density $\sigma$, on its axis at $z$ | $E = \frac{\sigma}{2\varepsilon_0}\left(1 - \frac{z}{\sqrt{z^2 + R^2}}\right)$ |
| infinite sheet | $E = \frac{\sigma}{2\varepsilon_0}$, the same at every distance |

## Near and far

Every finite distribution looks like a point charge from far enough away: the ring's formula becomes $\frac{kQ}{z^2}$ when $z \gg R$. Close to a large flat surface, it looks like an infinite sheet: the disk's field near its center is nearly $\frac{\sigma}{2\varepsilon_0}$. The ring's field on its axis peaks at $z = \frac{R}{\sqrt2}$, where the growing axial share of each push balances its falling strength.
:::

::: example
## A ring of radius 3 cm carries 10 nC. Find the field on its axis 4 cm from the center, and where along the axis it's strongest.

::: solution
1. **Field on the axis.**
   $$\begin{aligned} E &= \frac{8.99 \times 10^9 \times 10^{-8} \times 0.04}{(0.04^2 + 0.03^2)^{3/2}} \\ &= \frac{3.6}{1.25 \times 10^{-4}} \\ &= 28.8\ \text{kV/m} \end{aligned}$$
2. **Where it peaks.**
   $$\begin{aligned} z &= \frac{3}{\sqrt2} \\ &= 2.1\ \text{cm} \end{aligned}$$

**Answer:** the field 4 cm from the center is 28.8 kV/m, and it is strongest 2.1 cm from the center.
:::
:::

::: example
## A disk of radius 10 cm has 1 µC/m² on it. What field does it make 1 cm above its center? How does that compare with an infinite sheet?

::: solution
1. **Infinite sheet.**
   $$\begin{aligned} E &= \frac{\sigma}{2\varepsilon_0} \\ &= \frac{10^{-6}}{2 \times 8.85 \times 10^{-12}} \\ &= 56.5\ \text{kV/m} \end{aligned}$$
2. **Disk factor.** The disk gives that times
   $$\begin{aligned} &1 - \frac{0.01}{\sqrt{0.01^2 + 0.1^2}} \\ &= 0.900 \end{aligned}$$
3. **Disk field.**
   $$56.5 \times 0.900 = 50.9\ \text{kV/m}$$
4. **Compare.** Close to a large plate, the edges hardly matter.

**Answer:** the disk makes 50.9 kV/m, against 56.5 kV/m for an infinite sheet.
:::
:::

::: check
given: Q = 5 | 20; R = 2 | 5; z = 3 | 6
answer: 8.988e9*Q*1e-9*(z/100)/((z/100)^2 + (R/100)^2)^1.5/1000
unit: kV/m
tolerance: 0.5%

## A ring of radius {R} cm carries {Q} nC. What is the field on its axis {z} cm from the center?

::: right
Right. $\frac{kQz}{(z^2 + R^2)^{3/2}}$ = {answer}.
:::

::: misses
- [8.988e9*Q*1e-9/((z/100)^2 + (R/100)^2)/1000] Only the part of each piece's field along the axis survives: multiply by $z/\sqrt{z^2 + R^2}$.
- [8.988e9*Q*1e-9/(z/100)^2/1000] That's a point charge at the center; the ring's charge is farther away.
- [any] Not yet. Add the axial components of every piece's field.
:::
:::

::: check
given: R = 2 | 4 | 6
answer: R/sqrt(2)
unit: cm
tolerance: 0.5%

## Where on the axis of a charged ring of radius {R} cm is the field strongest?

::: right
Right. At $z = R/\sqrt2$ = {answer}.
:::

::: misses
- [R] Differentiate $\frac{z}{(z^2 + R^2)^{3/2}}$ and set it to zero.
- [0] At the center the field is zero.
- [any] Not yet. Maximize $z/(z^2 + R^2)^{3/2}$.
:::
:::

::: check
given: lam = 1 | 5; y = 1 | 4
answer: 2*8.988e9*lam*1e-9/(y/100)/1000
unit: kV/m
tolerance: 0.5%

## A long straight wire carries {lam} nC per meter. What field does it make {y} cm away?

::: right
Right. $\frac{2k\lambda}{y}$ = {answer}.
:::

::: misses
- [8.988e9*lam*1e-9/(y/100)/1000] The factor is $2k$.
- [2*8.988e9*lam*1e-9/(y/100)^2/1000] A line's field falls as $1/y$, not $1/y^2$.
- [any] Not yet. $E = \frac{\lambda}{2\pi\varepsilon_0y}$.
:::
:::

::: check
given: lam = 2 | 4; a = 3 | 5; y = 1 | 2
answer: 2*8.988e9*lam*1e-9*(a/100)/((y/100)*sqrt((y/100)^2 + (a/100)^2))/1000
unit: kV/m
tolerance: 0.5%

## A rod reaching {a} cm either side of its middle carries {lam} nC/m. What field does it make {y} cm from its middle, on the perpendicular bisector?

::: right
Right. $\frac{2k\lambda a}{y\sqrt{y^2 + a^2}}$ = {answer}.
:::

::: misses
- [2*8.988e9*lam*1e-9/(y/100)/1000] That's an infinitely long line; a finite rod gives a bit less.
- [any] Not yet. Integrate the perpendicular components along the rod.
:::
:::

::: check
given: s = 0.5 | 2; R = 5 | 10; z = 1 | 3
answer: s*1e-6/(2*8.854e-12)*(1 - (z/100)/sqrt((z/100)^2 + (R/100)^2))/1000
unit: kV/m
tolerance: 0.5%

## A disk of radius {R} cm carries {s} µC/m². What field does it make {z} cm above its center?

::: right
Right. $\frac{\sigma}{2\varepsilon_0}\left(1 - \frac{z}{\sqrt{z^2 + R^2}}\right)$ = {answer}.
:::

::: misses
- [s*1e-6/(2*8.854e-12)/1000] That's an infinite sheet; a finite disk gives a bit less.
- [s*1e-6/(8.854e-12)*(1 - (z/100)/sqrt((z/100)^2 + (R/100)^2))/1000] Divide by $2\varepsilon_0$.
- [any] Not yet. Build the disk from rings.
:::
:::

::: check
given: Q = 2 | 8; R = 1 | 2; z = 50 | 100
answer: 8.988e9*Q*1e-9/(z/100)^2
unit: V/m
tolerance: 1%

## A ring of radius {R} cm carries {Q} nC. About what field does it make on its axis {z} cm away, far compared with its size?

::: right
Right. Far away it looks like a point charge: $\frac{kQ}{z^2}$ = {answer}.
:::

::: misses
- [any] Not yet. When $z \gg R$, $(z^2 + R^2)^{3/2} \approx z^3$.
:::
:::

::: check
kind: python

## Write `ring_field(Q, R, z, n)` that splits a ring of radius R carrying charge Q into n equal point charges and returns the axial field component at height z above its center, by adding up Coulomb's law. Then write `ring_peak(Q, R)` that searches z from 0 to 3R in steps of R/10 000 and returns the height where the exact axial field, $\frac{kQz}{(z^2 + R^2)^{3/2}}$, is largest. Use k = 8.988 × 10⁹.

```python starter
import numpy as np
k = 8.988e9

def ring_field(Q, R, z, n):
    return k * Q / (z**2 + R**2)

def ring_peak(Q, R):
    return R

print(ring_field(10e-9, 0.03, 0.04, 100), ring_peak(10e-9, 0.03))
```

```python solution
import numpy as np
k = 8.988e9

def ring_field(Q, R, z, n):
    phi = 2 * np.pi * np.arange(n) / n
    dx, dy, dz = -R * np.cos(phi), -R * np.sin(phi), z * np.ones(n)
    r = np.sqrt(dx**2 + dy**2 + dz**2)
    return float(np.sum(k * (Q / n) * dz / r**3))

def ring_peak(Q, R):
    z = np.arange(0, 3 * R, R / 10000)
    E = k * Q * z / (z**2 + R**2)**1.5
    return float(z[int(np.argmax(E))])

print(ring_field(10e-9, 0.03, 0.04, 100), ring_peak(10e-9, 0.03))
```

```python tests
import numpy as np
E = ring_field(10e-9, 0.03, 0.04, 100)
assert abs(E - 8.988e9 * 10e-9 * 0.04 / 0.05**3) < 1e-6 * E, f"3 cm ring, 10 nC, 4 cm up: 28 762 V/m; got {E:.2f}."
assert abs(ring_field(10e-9, 0.03, 0.04, 4) - E) < 1e-6 * E, "On the axis, even four charges give the exact axial field: each sits at the same distance."
zp = ring_peak(10e-9, 0.03)
assert abs(zp - 0.03 / np.sqrt(2)) < 0.03 / 5000, f"The field peaks at R/√2 = 2.121 cm; got {zp * 100:.4f} cm."
```

::: right
Right. On the axis every piece sits at the same distance, so the pieces' sideways pulls cancel in pairs and the sum is exact for any n. Off the axis that symmetry is gone, and n starts to matter.
:::
:::

::: explain
## Why does a large charged sheet make the same field at every distance?

::: model
Moving away from a sheet, each piece of charge is farther away, so its field is weaker. But a larger area of the sheet now pushes mostly in the direction away from it, rather than sideways where the pushes cancel. For an infinite sheet those two effects balance exactly: the cone of charge that contributes strongly grows as the square of the distance, just as each piece's field falls as the inverse square. The field lines are parallel and never spread out, so their density, the field, stays constant.
:::
:::

::: practice

::: check
given: s = 1..20 int
answer: s*1e-6/(2*8.854e-12)/1000
unit: kV/m
tolerance: 0.5%

## What field does a large sheet carrying {s} µC/m² make near its surface?

::: misses
- [any] $\frac{\sigma}{2\varepsilon_0}$.
:::
:::

::: check
given: k = 2..10 int
answer: 1/k
tolerance: 0.5%

## How does a long line's field change when you move {k} times farther away?

::: misses
- [1/k^2] A line's field falls as $1/y$.
- [any] $E \propto 1/y$.
:::
:::

::: check
given: L = 10 | 20; Q = 5 | 10
answer: Q/L
unit: nC/cm
tolerance: 0.5%

## A rod {L} cm long carries {Q} nC spread evenly. What is its line charge density?

::: misses
- [any] $\lambda = Q/L$.
:::
:::
:::
