Sub topic 4
Superposition: the net force from many charges
This chapter assumes you can add vectors by components, find magnitudes and angles with trigonometry, and use Newton's second law. You should also know Coulomb's law for two point charges, from the previous chapter. No calculus is needed here.
The principle
Coulomb's law gives the force between two point charges. Real situations usually involve more than two. The superposition principle says how to handle them:
> The net force on a charge is the vector sum of the forces that each other charge would exert on it if it were the only one present.
Two facts are packed into that statement.
- Pairwise forces are independent. The force between charge A and charge B does not change when charge C is placed nearby. C adds its own force on A and its own force on B. It does not alter the A-B force.
- The combination rule is plain vector addition. There are no cross terms and no corrections.
This property is called linearity. It is an experimental fact about electrostatics, not something that can be derived from Coulomb's law for two charges. Laboratory measurements with many charges agree with it to very high precision.
The force on charge $qt$ (the target) from sources $q1, q2, \dots, qN$ is:
$$\vec F{\text{net}} = \sum{i=1}^{N} \vec F{i\to t}, \qquad \vec F{i\to t} = k\,\frac{qt qi}{ri^{2}}\,\hat ri$$
Here $ri$ is the distance from source $i$ to the target. The unit vector $\hat ri$ points from source $i$ toward the target. With that direction convention, a positive product $qt qi$ gives a force along $\hat ri$ (repulsion, away from the source). A negative product gives a force against $\hat ri$ (attraction, toward the source). You never need to decide "attract or repel" separately. The sign of the product handles it.
A reliable procedure
Most mistakes in superposition problems come from skipping a step. The following routine avoids them.
Three rules matter most.
- Only forces on the target are added. Forces between two other charges are irrelevant to the target.
- Add components, not magnitudes. Magnitudes add only when all forces are along the same line in the same direction.
- Keep the target's own charge out of the source list. A charge does not exert a force on itself.
Worked example 1: three charges on a line
Put $q1 = +2.0\ \mu\text{C}$ at $x = 0$, $q2 = -3.0\ \mu\text{C}$ at $x = 0.10\ \text{m}$, and $q3 = +4.0\ \mu\text{C}$ at $x = 0.20\ \text{m}$. Find the net force on $q2$.
Force from $q_1$. The charges have opposite signs, so the force is attractive. $q2$ is pulled toward $q1$, which is in the $-x$ direction.
$$F_{1} = k\frac{(2.0\times10^{-6})(3.0\times10^{-6})}{(0.10)^2} \approx 5.39\ \text{N}$$
So $F_{1,x} = -5.39\ \text{N}$.
Force from $q_3$. Again the signs are opposite, so $q2$ is pulled toward $q3$, in the $+x$ direction.
$$F_{3} = k\frac{(4.0\times10^{-6})(3.0\times10^{-6})}{(0.10)^2} \approx 10.79\ \text{N}$$
So $F_{3,x} = +10.79\ \text{N}$.
Net force. $F_x = -5.39 + 10.79 = +5.39\ \text{N}$, pointing toward $+x$.
Both sources attract $q2$, but they pull in opposite directions. Because $q3$ is twice as large as $q1$ and sits at the same distance, its pull wins. The net force equals the force $q1$ alone would exert, which is a coincidence of the chosen numbers.
Worked example 2: charges at the corners of a square
In two dimensions, direction bookkeeping becomes the main task. Place a $+1.0\ \mu\text{C}$ target at the origin of a square with side $a = 0.10\ \text{m}$. The other three corners hold:
- $+1.0\ \mu\text{C}$ at $(a, 0)$
- $+1.0\ \mu\text{C}$ at $(0, a)$
- $-1.0\ \mu\text{C}$ at $(a, a)$
The pairwise forces on the target are:
| Source | Distance | Magnitude | Direction | Components (N) |
|---|---|---|---|---|
| $+1\ \mu\text{C}$ at $(a,0)$ | $0.10\ \text{m}$ | $0.899\ \text{N}$ | repulsive, $-x$ | $(-0.899,\ 0)$ |
| $+1\ \mu\text{C}$ at $(0,a)$ | $0.10\ \text{m}$ | $0.899\ \text{N}$ | repulsive, $-y$ | $(0,\ -0.899)$ |
| $-1\ \mu\text{C}$ at $(a,a)$ | $0.141\ \text{m}$ | $0.449\ \text{N}$ | attractive, toward $(1,1)/\sqrt2$ | $(+0.318,\ +0.318)$ |
The diagonal charge is farther away by a factor of $\sqrt2$, so its force is smaller by a factor of 2 (since $r^2$ doubles). Its force is split equally between $x$ and $y$ because it lies along the 45-degree diagonal.
Summing components gives $Fx = Fy = -0.899 + 0.318 = -0.581\ \text{N}$. The magnitude is $0.581\sqrt2 \approx 0.822\ \text{N}$, directed along the diagonal away from the square's center.
Doing it in code
The function below applies the procedure directly. It works in one or two dimensions, because a 1-D problem is a 2-D problem with all $y$ values equal to zero. It also includes a sanity check that follows from Newton's third law: the net forces on all charges in an isolated system must add to zero.
import math
K = 8.9875517923e9 # Coulomb constant, N*m^2/C^2
def net_force(target, sources):
"""Net force (Fx, Fy) in newtons on target = (q, (x, y)).
sources is a list of (q, (x, y)). Direction convention: the unit
vector points from the source toward the target, so a positive
q_target * q_source gives repulsion automatically.
"""
qt, (tx, ty) = target
fx = fy = 0.0
for qs, (sx, sy) in sources:
dx, dy = tx - sx, ty - sy
r = math.hypot(dx, dy)
if r == 0:
raise ValueError("two charges at the same point")
f = K * qt * qs / r**2 # signed: + repulsive, - attractive
fx += f * dx / r
fy += f * dy / r
return fx, fy
# Worked example 1: three charges on a line, force on the middle one
line = [(2e-6, (0.0, 0.0)), (-3e-6, (0.10, 0.0)), (4e-6, (0.20, 0.0))]
fx, fy = net_force(line[1], [line[0], line[2]])
print(f"Example 1: Fx = {fx:.3f} N, Fy = {fy:.3f} N") # about 5.393, 0.000
# Worked example 2: corners of a square, force on the origin charge
a = 0.10
square = [(1e-6, (0.0, 0.0)), (1e-6, (a, 0.0)),
(1e-6, (0.0, a)), (-1e-6, (a, a))]
fx, fy = net_force(square[0], square[1:])
print(f"Example 2: Fx = {fx:.3f} N, Fy = {fy:.3f} N") # about -0.581, -0.581
print(f"Magnitude = {math.hypot(fx, fy):.3f} N") # about 0.822
# Newton's third law check: forces on all four charges sum to zero
total_x = total_y = 0.0
for i, charge in enumerate(square):
others = square[:i] + square[i + 1:]
gx, gy = net_force(charge, others)
total_x += gx
total_y += gy
print(f"Sum of all forces: ({total_x:.2e}, {total_y:.2e}) N") # essentially 0The last check is a useful habit. If you write a charge simulation and the total internal force is not close to zero, a sign or direction bug is almost certainly present.
Where is the net force zero?
A common question asks for a point where a third charge would feel no net force. Three situations cover most cases.
| Source charges | Where the zero can be | Why |
|---|---|---|
| Same sign | Between them, closer to the smaller charge | The two forces point in opposite directions only between the charges |
| Opposite signs | Outside them, on the side of the smaller-magnitude charge | Between them both forces point the same way. Outside, the nearer charge must be the weaker one so the two magnitudes can match |
| Equal magnitude, opposite signs | Nowhere on the line through them | Whichever side you pick, the nearer charge always dominates |
For example, take $+4q$ at $x = 0$ and $+q$ at $x = d$. A test charge at position $x$ between them feels equal and opposite forces when:
$$\frac{4q}{x^2} = \frac{q}{(d-x)^2} \;\Rightarrow\; 2(d - x) = x \;\Rightarrow\; x = \tfrac{2}{3}d$$
The result does not depend on the sign or size of the test charge, because $q_t$ cancels from both sides. It does depend on the source charges, which is why the zero sits closer to the weaker one.
Common errors
- Adding magnitudes instead of vectors. In the square example, adding $0.899 + 0.899 + 0.449$ gives $2.25\ \text{N}$, which is wrong by a large factor. The correct net force is $0.822\ \text{N}$.
- Wrong direction for the unit vector. Always point from the source toward the target. Reversing it flips every force and the answer's sign.
- Applying the sign twice. If you use $|qt qi|$ for the magnitude, decide direction by the "same signs repel" rule. If you use the signed product, the direction comes out of the algebra. Doing both flips some forces back.
- Forgetting the diagonal distance. In a square, the opposite corner is at $a\sqrt2$, so $r^2 = 2a^2$.
- Including forces on the wrong charge. The force between two source charges does not appear in the net force on the target.
- Unit slips. Microcoulombs ($10^{-6}\ \text{C}$) and nanocoulombs ($10^{-9}\ \text{C}$) must be converted, and centimeters must become meters.
Limits and edge cases
Symmetry shortcuts. If sources are arranged symmetrically around the target, some components cancel exactly. Two equal charges placed symmetrically on opposite sides of the target along the $y$ axis, for instance, leave only $x$ components if the geometry is mirrored about the $x$ axis. Look for these cancellations before calculating, and use them as a check afterward.
Scaling. For $N$ charges, there are $N(N-1)/2$ distinct pairs. Direct summation for every charge costs $O(N^2)$ operations. This is fine for tens or thousands of charges and too slow for millions, where simulations use approximation methods. The physics stays the same. Only the bookkeeping changes.
Point-charge assumption. The formula uses distances between charge centers. For small charged spheres whose separation is large compared with their radii, treating them as points works well. For close spheres on insulators, it is still fine if the charge is spread uniformly. For conductors, it fails, because the next point applies.
Conductors rearrange. Charges on a conductor move in response to nearby charges (induction). Bringing a third charge near two charged conducting spheres changes where the charge sits on them. Superposition still holds for any fixed arrangement of charge. What changes is the arrangement, so you must recompute the positions of the charges before summing. Superposition is not violated. The input to it has changed.
Very small separations. Coulomb's law assumes electrostatics: charges at rest or moving slowly. At nuclear distances, other forces dominate, and for fast-moving charges you need the full theory of electromagnetism. For the problems in this tutorial, neither applies.
Summary of the working model
- The net force on a charge is the vector sum of the pairwise Coulomb forces from every other charge.
- Each pairwise force ignores the presence of the other charges.
- Work in components, with the unit vector from source to target.
- Check results with symmetry, with the third-law total of zero, and with the limiting case of a single source.
Exercise
A charge of +4.0 microcoulombs sits at x = 0 and a charge of +1.0 microcoulomb sits at x = 0.30 m. At what x position on the line between them would a third charge feel zero net force? Does the answer change if the third charge is negative?
Show answer
Set the two force magnitudes equal: 4/x^2 = 1/(0.30 - x)^2, so 2(0.30 - x) = x, which gives x = 0.20 m. The answer does not change for a negative third charge, because the third charge's value cancels from both sides. Only the direction of the forces flips, and they still oppose each other.
Exercise
Use the square from worked example 2 (side 0.10 m, +1.0 microcoulomb target at the origin), but make all three other corners +1.0 microcoulomb. What are the components and the magnitude of the net force on the target?
Show answer
The two adjacent charges each give 0.899 N, along -x and -y. The diagonal charge gives 0.449 N, repulsive, split into -0.318 N along each axis. The net components are Fx = Fy = -(0.899 + 0.318) = -1.217 N. The magnitude is 1.217 x sqrt(2), about 1.72 N, directed along the diagonal away from the square.
Exercise
Three charges lie on a line: +2.0 microcoulombs at x = 0, -3.0 microcoulombs at x = 0.10 m, and +4.0 microcoulombs at x = 0.20 m. Without recomputing from scratch, what is the net force on the +4.0 microcoulomb charge at x = 0.20 m due to the other two, and in which direction?
Show answer
The -3.0 microcoulomb charge attracts it with k(4e-6)(3e-6)/0.10^2, about 10.79 N toward -x. The +2.0 microcoulomb charge, 0.20 m away, repels it with k(4e-6)(2e-6)/0.20^2, about 1.80 N toward +x. The net force is 10.79 - 1.80, about 8.99 N toward -x.