---
title: Potentials of charge distributions
heading: Adding voltages, and the energy of assembling charges
eyebrow: B3 · Lesson 4 · Potentials of distributions
xp: 40
---

::: hook
Finding the field of several charges means adding arrows, component by component. Finding their potential is easier: voltages are plain numbers, so you just add them. That's why physicists and engineers so often find the potential first and get the field from its slope afterward. The same sum, taken over every pair of charges, gives the energy it took to bring them together, the energy stored in any arrangement of charge from a molecule to a capacitor.
:::

::: play
- Charges $q_1$ at $x = -1$ cm and $q_2$ at $x = +1$ cm. The curve is the potential along the $x$ axis.
- With opposite charges, find the point beyond the smaller charge where $V = 0$. The readout shows the field isn't zero there: zero potential and zero field are different things.
- The field is the downhill slope of this curve.
:::
:::

```sim plot
view: graph
x: x = -5..5 cm
y: V = -5..5 kV
slider: q1 = -3..3 step 0.5 = 2 nC
slider: q2 = -3..3 step 0.5 = -1 nC
slider: x0 = -5..5 step 0.1 = 3 cm
plot: 0.8988*(q1/abs(x + 1) + q2/abs(x - 1)) | label: potential | samples: 1500
marker: x = x0 | label: x₀
readout: potential at x₀, V = 898.8*(q1/abs(x0 + 1) + q2/abs(x0 - 1)) | digits: 4
readout: field at x₀, kV/m = 89.88*(q1*(x0 + 1)/abs(x0 + 1)^3 + q2*(x0 - 1)/abs(x0 - 1)^3) | digits: 4
```

::: predict
## Charges of +2 nC at $x = -1$ cm and −1 nC at $x = +1$ cm. At $x = 3$ cm the potential is zero. Is the field zero there too?

- [ ] Yes: no voltage means no field
- [x] No: about 11 kV/m, pointing back toward the charges
- [ ] It's infinite
- [ ] It can't be determined from the charges

::: reveal
No. At $x = 3$ cm the two potentials cancel, $k\frac{2\text{ nC}}{4\text{ cm}} = k\frac{1\text{ nC}}{2\text{ cm}}$, but the fields don't: the nearer −1 nC charge pulls harder, giving 11.2 kV/m toward $-x$. The field is the slope of the potential, and a curve can cross zero while sloping steeply.
:::
:::

::: nameit
## Adding potentials

With $V = 0$ far away, point charges $q_i$ at distances $r_i$ give

$$V = \sum_i \frac{kq_i}{r_i}$$

a sum of signed numbers, with no components. For continuous charge, $V = \int\frac{k\,dq}{r}$:

| Distribution | Potential |
|---|---|
| ring of charge $Q$, radius $R$, on its axis at $z$ | $\frac{kQ}{\sqrt{z^2 + R^2}}$ |
| spherical shell of charge $Q$, radius $R$ | $\frac{kQ}{r}$ outside, $\frac{kQ}{R}$ everywhere inside |

## Field from potential

The field points downhill, with strength equal to the slope (A9.9):

$$\mathbf E = -\nabla V \qquad E_x = -\frac{\partial V}{\partial x}$$

Where $V$ is flat, the field is zero; where $V$ is zero, the field can be anything.

## Energy of an arrangement

Bringing $q_2$ from far away to a distance $r$ from $q_1$ takes work $q_2V_1 = \frac{kq_1q_2}{r}$, stored as potential energy. For many charges, add over every pair once:

$$U = \sum_{\text{pairs } i<j}\frac{kq_iq_j}{r_{ij}}$$

Positive $U$ (like charges) means energy was put in and would be released if they flew apart; negative $U$ (unlike charges) means the arrangement is bound and energy is needed to pull it apart.
:::

::: example
## Find the potential and the field at $x = 3$ cm for +2 nC at $x = -1$ cm and −1 nC at $x = +1$ cm.

::: solution
1. **Potential.** The +2 nC is 4 cm away and the −1 nC is 2 cm away:
   $$\begin{aligned} V &= k\left(\frac{2 \times 10^{-9}}{0.04} - \frac{10^{-9}}{0.02}\right) \\ &= 0 \end{aligned}$$
2. **Field.**
   $$\begin{aligned} E &= k\left(\frac{2 \times 10^{-9}}{0.04^2} - \frac{10^{-9}}{0.02^2}\right) \\ &= 8.99 \times 10^9 \\ &\quad \times (1.25 - 2.5) \times 10^{-6} \\ &= -11.2\ \text{kV/m} \end{aligned}$$
3. **Direction.** The minus sign means the field points back toward the charges.

**Answer:** the potential at $x = 3$ cm is zero, and the field is −11.2 kV/m, pointing back toward the charges.
:::
:::

::: example
## How much energy does it take to place three 1 nC charges at the corners of a triangle with 1 cm sides?

::: solution
1. **Count the pairs.** Three charges make three pairs.
2. **Energy of one pair.**
   $$\begin{aligned} \frac{kq^2}{a} &= \frac{8.99 \times 10^9 \times 10^{-18}}{0.01} \\ &= 0.90\ \mu\text{J} \end{aligned}$$
3. **Total.**
   $$3 \times 0.90 = 2.7\ \mu\text{J}$$
4. **Charge by charge.** Bringing the first charge is free; the second costs one pair's energy and the third two.

**Answer:** it takes 2.7 µJ.
:::
:::

::: check
given: q1 = 2 | 5; q2 = -1 | -3; r1 = 2 | 4; r2 = 3 | 6
answer: 8.988e9*(q1*1e-9/(r1/100) + q2*1e-9/(r2/100))
unit: V
tolerance: 0.5%

## A point is {r1} cm from a {q1} nC charge and {r2} cm from a {q2} nC charge. What is the potential there?

::: right
Right. Add the potentials as signed numbers: {answer}.
:::

::: misses
- [8.988e9*(q1*1e-9/(r1/100) - q2*1e-9/(r2/100))] Keep the negative charge's sign: it lowers the potential.
- [any] Not yet. $V = \sum kq_i/r_i$.
:::
:::

::: check
given: q1 = 1 | 4; q2 = 2 | -3; r = 1 | 3
answer: 8.988e9*q1*q2*1e-18/(r/100)*1e6
unit: µJ
tolerance: 0.5%

## What is the potential energy of {q1} nC and {q2} nC held {r} cm apart?

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

::: misses
- [8.988e9*q1*q2*1e-18/(r/100)^2*1e6] That's the force; energy goes as $1/r$.
- [any] Not yet. $U = kq_1q_2/r$.
:::
:::

::: check
given: q = 1 | 3; a = 1 | 2
answer: 3*8.988e9*(q*1e-9)^2/(a/100)*1e6
unit: µJ
tolerance: 0.5%

## How much energy does it take to place three {q} nC charges at the corners of an equilateral triangle with {a} cm sides?

::: right
Right. Three pairs: $\frac{3kq^2}{a}$ = {answer}.
:::

::: misses
- [8.988e9*(q*1e-9)^2/(a/100)*1e6] That's one pair; a triangle has three.
- [2*8.988e9*(q*1e-9)^2/(a/100)*1e6] Count the pairs: AB, BC and CA.
- [any] Not yet. Sum over every pair once.
:::
:::

::: check
given: Q = 5 | 10; R = 3 | 4; z = 2 | 4
answer: 8.988e9*Q*1e-9/sqrt((z/100)^2 + (R/100)^2)
unit: V
tolerance: 0.5%

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

::: right
Right. Every bit of the ring is $\sqrt{z^2 + R^2}$ away: {answer}.
:::

::: misses
- [8.988e9*Q*1e-9/(z/100)] Measure the distance to the ring, not to its center.
- [any] Not yet. $V = kQ/\sqrt{z^2 + R^2}$.
:::
:::

::: check
given: a = 100 | 500; x0 = 0.02 | 0.05
answer: -2*a*x0
unit: V/m
tolerance: 0.5%

## The potential along a line is $V = \given{a}x^2$ volts (x in meters). What is $E_x$ at $x$ = {x0} m?

::: right
Right. $E_x = -\frac{dV}{dx} = -2ax$ = {answer}.
:::

::: misses
- [2*a*x0] The field points downhill: include the minus sign.
- [-a*x0^2] That's $-V$; the field is the slope.
- [any] Not yet. $E = -dV/dx$.
:::
:::

::: check
given: q1 = 2 | 3; q2 = 1 | 4; d = 4 | 6
answer: d*q1/(q1 + q2)
unit: cm
tolerance: 0.5%

## +{q1} nC sits at $x = 0$ and −{q2} nC at $x = \given{d}$ cm. Where between them is the potential zero?

::: right
Right. $\frac{q_1}{x} = \frac{q_2}{d - x}$ gives $x = \frac{dq_1}{q_1 + q_2}$ = {answer}.
:::

::: misses
- [d/2] Only with equal charges is it at the midpoint.
- [d*q2/(q1 + q2)] That's measured from the other charge.
- [any] Not yet. Set $\frac{kq_1}{x} - \frac{kq_2}{d - x} = 0$.
:::
:::

::: explain
## Why is it often easier to find the potential first and then the field?

::: model
Potential is a single number at each point, so contributions from many charges simply add, with their signs. Fields are vectors: each contribution has a direction, and adding them means splitting into components and tracking angles. Once the potential is known everywhere, the field follows from its slope, $\mathbf E = -\nabla V$, which is a routine derivative. For continuous charge the same holds: one integral of $k\,dq/r$ instead of three integrals of components.
:::
:::

::: practice

::: check
given: q = 1 | 5; r = 2 | 10
answer: 8.988e9*q*1e-9/(r/100)
unit: V
tolerance: 0.5%

## What is the potential {r} cm from a {q} nC charge?

::: misses
- [any] $kq/r$.
:::
:::

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

## A spherical shell of radius {R} cm carries {Q} nC. What is the potential at its center?

::: misses
- [0] The field inside is zero, but the potential is the same as on the shell.
- [any] $kQ/R$ throughout the inside.
:::
:::

::: check
given: dV = 10 | 50; dx = 2 | 5
answer: dV/(dx/1000)
unit: V/m
tolerance: 0.5%

## The potential drops {dV} V over {dx} mm in a uniform field. How strong is the field?

::: misses
- [any] $E = \Delta V/\Delta x$.
:::
:::
:::
