In short

The principle of superposition says that the electrostatic force on a charge due to any collection of other charges is the vector sum of the individual Coulomb forces from each other charge, each computed as though no other charges existed. For a test charge q at position \vec{r} surrounded by sources q_1, q_2, \dots, q_N at positions \vec{r}_1, \vec{r}_2, \dots, \vec{r}_N,

\boxed{\;\vec{F}_{\text{net on }q} \;=\; \sum_{i=1}^{N} \vec{F}_{i\to q} \;=\; \frac{q}{4\pi\varepsilon_0}\sum_{i=1}^{N} \frac{q_i\,(\vec{r} - \vec{r}_i)}{|\vec{r} - \vec{r}_i|^{3}}\;}

The vector (\vec{r} - \vec{r}_i)/|\vec{r} - \vec{r}_i|^{3} is the Coulomb field shape \hat{r}/r^2 written with source at \vec{r}_i and target at \vec{r}. Two practical consequences follow:

  • Linearity. Doubling one source doubles its contribution and only its contribution; nothing cross-couples.
  • Continuous limit. If charge is spread out (linear density \lambda, surface density \sigma, or volume density \rho), replace the sum with an integral: \vec{F} = \frac{q}{4\pi\varepsilon_0}\int \frac{\mathrm{d}q'\,(\vec{r}-\vec{r}')}{|\vec{r}-\vec{r}'|^{3}} with \mathrm{d}q' = \lambda\,\mathrm{d}\ell,\ \sigma\,\mathrm{d}A,\ or \rho\,\mathrm{d}V.

The principle is a postulate of classical electrostatics, confirmed experimentally to extremely high precision; it is what lets you take a complicated many-charge problem and slice it into bite-sized Coulomb calculations.

Hang three charged balloons in a row on threads from the same hook. Put a positive charge on the leftmost, a negative on the middle one, a positive on the rightmost. The middle balloon — the one being pulled on from both sides — does not care what the left and right balloons are doing to each other. It feels the tug from the left one (attractive, pulling it left), and separately it feels the tug from the right one (attractive, pulling it right). Add the two pulls as vectors, and you get the net force on the middle balloon. If the left and right balloons have equal charge and are equidistant, the two tugs cancel and the middle balloon hangs straight down. If the left balloon is closer, the left tug wins and the middle balloon leans left.

This is the principle of superposition for electrostatic forces — one of the cleanest and most consequential ideas in all of physics. It tells you that nature does not do interaction terms. A proton in a sodium chloride crystal does not feel some complicated many-body blend of forces from every neighbour at once; it feels the simple Coulomb tug from chloride number 1, plus the simple Coulomb tug from sodium number 2, plus the simple Coulomb tug from chloride number 3, and so on — each one computed as though the others were not there. Add them all as vectors. You are done.

This article does four jobs. First, it states the principle precisely and shows why it is non-trivial — there are hypothetical universes where it would fail. Second, it derives the recipe for computing the net force on a charge in a given configuration, with three worked examples at increasing complexity. Third, it uses superposition to find equilibrium positions — the special points where all the tugs cancel. Fourth, it takes the continuous limit, replacing discrete sums with integrals, and applies the machinery to a uniformly charged ring (a clean, finite problem) and an infinite line of charge (where the integral has a closed form). The going-deeper section handles why the principle holds at all (it is a consequence of the linearity of Maxwell's equations), the limits of the principle in strong-field regimes, and the connection to the electric field as the "force per unit test charge" that the next article formalises.

Before you can solve any nontrivial electrostatics problem involving more than two charges, you need superposition. It is the tool that lets you go from Coulomb's law — a two-body equation — to the entire world.

1. The principle, precisely stated

Pair-wise forces add as vectors

Coulomb's law tells you the force between two isolated point charges. If q_1 sits at \vec{r}_1 and q_2 sits at \vec{r}_2, the force on q_2 due to q_1 alone is

\vec{F}_{1\to 2} \;=\; \frac{1}{4\pi\varepsilon_0}\,\frac{q_1 q_2}{|\vec{r}_2 - \vec{r}_1|^{2}}\,\hat{r}_{12} \;=\; \frac{1}{4\pi\varepsilon_0}\,\frac{q_1 q_2\,(\vec{r}_2 - \vec{r}_1)}{|\vec{r}_2 - \vec{r}_1|^{3}}.

Why: the unit vector \hat{r}_{12} = (\vec{r}_2 - \vec{r}_1)/|\vec{r}_2 - \vec{r}_1| points from source (1) to target (2); dividing by |\vec{r}_2 - \vec{r}_1|^{2} gives the inverse-square falloff; the product q_1 q_2 carries the sign (positive means repulsion along \hat{r}_{12}, negative means attraction).

Now introduce a third charge q_3 at \vec{r}_3. The question is: what is the force on q_2 when both q_1 and q_3 are present?

The principle of superposition asserts that

\vec{F}_{\text{on }2} \;=\; \vec{F}_{1 \to 2} \;+\; \vec{F}_{3 \to 2}. \tag{1}

In words: the presence of q_3 does not change the force that q_1 exerts on q_2, and vice versa. Each pair-wise force is computed with Coulomb's law as though the other charges were absent; the net force is the vector sum.

Principle of superposition (for electrostatic forces)

Given N point charges q_1, q_2, \dots, q_N at positions \vec{r}_1, \vec{r}_2, \dots, \vec{r}_N, the total electrostatic force on charge q_i is the vector sum of the pair-wise Coulomb forces from all the other charges:

\vec{F}_{\text{net on }i} \;=\; \sum_{\substack{j=1 \\ j \neq i}}^{N} \vec{F}_{j\to i} \;=\; \frac{q_i}{4\pi\varepsilon_0}\,\sum_{\substack{j=1 \\ j \neq i}}^{N} \frac{q_j\,(\vec{r}_i - \vec{r}_j)}{|\vec{r}_i - \vec{r}_j|^{3}}.

Each term in the sum is independent of the other terms: no charge's contribution depends on the presence or absence of the others.

Two pieces of vocabulary that will recur:

The force on the test charge is linear in the test charge (\vec{F} \propto q_i) and linear in the source charges (each source contributes additively). This double linearity is the single most useful structural fact in electrostatics.

Why superposition is not obvious

It is tempting to shrug at superposition and say "of course forces add — forces are vectors." But vectors-adding and superposition-holding are different statements. Vectors add by parallelogram rule whether or not the pair-wise forces themselves are the ones Coulomb wrote down.

To see the distinction, imagine a hypothetical universe in which the force between charges 1 and 2 depended on whether a third charge 3 was nearby. For example, imagine a universe with a force law

\vec{F}_{1\to 2}^{\text{hypo}} \;=\; \frac{1}{4\pi\varepsilon_0}\,\frac{q_1 q_2}{r_{12}^{2}}\,\hat{r}_{12} \;\times\; \bigl(1 + \alpha\,q_3\bigr)

where \alpha is some constant. In this imaginary universe, the two-charge force law is still Coulomb's law when q_3 = 0, but bringing a third charge nearby modulates the force between the first two. You could still add up forces as vectors — but the individual pair-wise forces would themselves depend on the whole configuration.

No such modulation is ever observed in our universe (in the classical regime). Each pair-wise force is computed from Coulomb's law using only the two charges involved, independent of every other charge in existence. This is a genuine fact about nature — a postulate of classical electrostatics, confirmed experimentally by (for instance) testing that the force between two charges in vacuum is the same whether or not a third charge is placed a metre away. It fails only in strong-field quantum regimes (vacuum polarisation in quantum electrodynamics) far outside the domain of this article.

Vector addition of two Coulomb forces on a test chargeThree charges labelled q1, q2, q3. Charge q2 sits at the centre. Two red arrows show the Coulomb forces from q1 and q3 on q2, and a thicker accent arrow shows their vector sum, the net force on q2.+q₁+q₂+q₃F₁→₂F₃→₂F_netThree like charges. Each pair-wise force is the Coulomb force; the net is their vector sum.
The central charge $+q_2$ feels two pair-wise repulsions. Each is the Coulomb force the lone pair would produce — the other charge's presence is irrelevant to each individual arrow. The net force is the parallelogram sum.

2. The recipe — how to compute the net force in practice

Given any configuration of point charges, the force on a particular charge is computed in four deterministic steps. Once you have done it three times, it is muscle memory.

Step A. Pick the charge of interest. Call it the test charge q at position \vec{r}. Shade it mentally; everything else is a source.

Step B. For each source charge q_i at position \vec{r}_i:

  1. Compute the displacement vector \vec{d}_i = \vec{r} - \vec{r}_i (from source to test).

  2. Compute the distance r_i = |\vec{d}_i|.

  3. Compute the unit vector \hat{d}_i = \vec{d}_i / r_i.

  4. Compute the pair-wise Coulomb force

    \vec{F}_{i\to q} \;=\; \frac{1}{4\pi\varepsilon_0}\,\frac{q_i q}{r_i^{2}}\,\hat{d}_i.

Step C. Add the pair-wise forces as vectors (usually by summing components):

\vec{F}_{\text{net}} \;=\; \sum_i \vec{F}_{i\to q}.

Step D. Read off the magnitude and direction of \vec{F}_{\text{net}} if the problem asks for them, or leave the answer in component form if it will be used in further calculations.

The two arithmetic traps that trip beginners: forgetting to carry the sign of q_i q through (the sign decides repulsion vs attraction), and mixing magnitude and vector forms mid-calculation (write everything as components or everything as magnitudes, never half-and-half).

3. Three worked configurations

Example 1: Three charges on a line

Three point charges lie along the x-axis: q_1 = +4\,\mu\text{C} at x = 0, q_2 = +1\,\mu\text{C} at x = 1.0\,\text{m}, and q_3 = -2\,\mu\text{C} at x = 2.0\,\text{m}. Find the net electrostatic force on q_2.

Three collinear charges; force on middle chargeA horizontal axis from 0 to 2 metres with three charges: +4 microcoulomb at origin (red), +1 microcoulomb at x equals 1 metre (dark), and minus 2 microcoulomb at x equals 2 metres (red). An arrow points from the middle charge to the right toward q3 (attraction) and a second arrow points from the middle charge to the right away from q1 (repulsion). The net arrow points to the right.x = 0x = 1 mx = 2 m+4μCq₁+1μCq₂-2μCq₃F₁→₂F₃→₂ (attraction)
The positive $q_1$ repels $q_2$ (force points to the right, away from $q_1$). The negative $q_3$ attracts $q_2$ (force points to the right, toward $q_3$). Both contributions push $q_2$ to the right — they reinforce each other.

Step 1. List the sources relative to q_2.

Source 1 (q_1 = +4\,\mu\text{C}) is 1.0 m to the left of q_2, so the displacement from source to target is \vec{d}_1 = +1.0\,\hat{i}\,\text{m} (i.e., pointing to the right). Source 2 (q_3 = -2\,\mu\text{C}) is 1.0 m to the right of q_2, so \vec{d}_3 = -1.0\,\hat{i}\,\text{m} (pointing to the left).

Why: the displacement vector \vec{d}_i = \vec{r}_2 - \vec{r}_i goes from source i to target 2. Get this direction right and the signs in Coulomb's law will handle repulsion and attraction automatically; get it wrong and you will fight signs for the rest of the problem.

Step 2. Compute the force from q_1 on q_2.

\vec{F}_{1\to 2} \;=\; \frac{1}{4\pi\varepsilon_0}\,\frac{q_1 q_2}{r_1^{2}}\,\hat{d}_1 \;=\; (9\times 10^9)\,\frac{(4\times 10^{-6})(1\times 10^{-6})}{(1.0)^{2}}\,\hat{i} \;=\; 3.6\times 10^{-2}\,\hat{i}\,\text{N}.

Why: both charges are positive, so q_1 q_2 > 0 and the force on q_2 points along \hat{d}_1 — i.e., to the right, away from q_1. This is repulsion, as expected.

Step 3. Compute the force from q_3 on q_2.

\vec{F}_{3\to 2} \;=\; \frac{1}{4\pi\varepsilon_0}\,\frac{q_3 q_2}{r_3^{2}}\,\hat{d}_3 \;=\; (9\times 10^9)\,\frac{(-2\times 10^{-6})(1\times 10^{-6})}{(1.0)^{2}}\,(-\hat{i}) \;=\; +1.8\times 10^{-2}\,\hat{i}\,\text{N}.

Why: q_3 q_2 < 0 (opposite signs), and \hat{d}_3 = -\hat{i}. The product (-)(-) = +, so the force points in the +\hat{i} direction — to the right, toward q_3. That is attraction, exactly what unlike charges do.

Step 4. Add the two forces as vectors.

\vec{F}_{\text{net on }2} \;=\; \vec{F}_{1\to 2} + \vec{F}_{3\to 2} \;=\; (3.6 + 1.8)\times 10^{-2}\,\hat{i}\,\text{N} \;=\; 5.4\times 10^{-2}\,\hat{i}\,\text{N}.

Why: both terms point in the +\hat{i} direction (the right-ward repulsion from q_1 and the right-ward attraction toward q_3 reinforce), so the magnitudes simply add.

Result: The net force on q_2 is 5.4 \times 10^{-2}\,\text{N} = 54\,\text{mN}, directed to the right (toward q_3).

What this shows: The signs in Coulomb's law take care of repulsion and attraction automatically. You do not need to think about "which way does the arrow go" — you write down the displacement vector from source to target, put in the signed charges, and the algebra gives you the direction. When two contributions happen to point the same way (as here), their magnitudes add.

Example 2: Three charges on the vertices of an equilateral triangle

Three charges of equal magnitude Q = 2.0\,\mu\text{C} sit on the vertices of an equilateral triangle of side a = 0.10\,\text{m}. Two of the charges are positive and one is negative. Find the net force on the negative charge.

Equilateral triangle of three charges and force decompositionAn equilateral triangle with two positive charges at the bottom corners and a negative charge at the top apex. Two arrows from the apex point down-left and down-right toward the positive charges (attraction). The two arrows' horizontal components cancel; their vertical components add downward to give the net force.+QA (0, 0)+QB (a, 0)-QC (a/2, a√3/2)aF_ACF_BCF_net
Each positive corner attracts the negative apex with equal magnitude. The two horizontal components point in opposite directions and cancel; the two vertical components point down and add. The net force on $-Q$ is straight down, toward the centre of the base.

Step 1. Place coordinates. Put +Q at A = (0, 0), +Q at B = (a, 0), and -Q at the apex C = (a/2,\ a\sqrt{3}/2).

Why: the apex C lies directly above the midpoint of AB, at height a\sqrt{3}/2 (the altitude of an equilateral triangle of side a). Symmetry will simplify the arithmetic dramatically in a moment.

Step 2. Compute the magnitude of each pair-wise force.

All three charges have magnitude Q and are separated by a, so

F \;=\; \frac{1}{4\pi\varepsilon_0}\,\frac{Q^2}{a^2} \;=\; (9\times 10^9)\,\frac{(2\times 10^{-6})^2}{(0.10)^2} \;=\; 3.6\,\text{N}.

The two forces on C (from A and from B) both have magnitude 3.6 N. The force from A is attractive (unlike charges), so it points from C toward A; likewise the force from B points from C toward B.

Step 3. Resolve each force into x and y components.

The angle that side CA makes with the vertical (downward) is 30^\circ, by the geometry of the equilateral triangle. (Each interior angle is 60^\circ; the altitude from C bisects angle C, giving two right triangles with a 30^\circ angle at C.)

So the force \vec{F}_{A\to C} points down-left, with components

F_{A\to C,\,x} \;=\; -F\sin 30^\circ \;=\; -F/2, \qquad F_{A\to C,\,y} \;=\; -F\cos 30^\circ \;=\; -F\sqrt{3}/2.

Why: positive x is to the right and positive y is upward; down-left means both components are negative. The wedge angle 30^\circ is between the force direction and the downward vertical, so the vertical (downward) component is the cosine piece and the horizontal (leftward) component is the sine piece.

By the mirror symmetry of the triangle, \vec{F}_{B\to C} has components

F_{B\to C,\,x} \;=\; +F/2, \qquad F_{B\to C,\,y} \;=\; -F\sqrt{3}/2.

Step 4. Add.

F_{\text{net},\,x} \;=\; -F/2 + F/2 \;=\; 0.
F_{\text{net},\,y} \;=\; -F\sqrt{3}/2 - F\sqrt{3}/2 \;=\; -F\sqrt{3}.

Why: the horizontal components come from two mirror-image contributions and cancel exactly. The vertical components both point downward and reinforce, giving a sum of -F\sqrt{3}.

Step 5. Plug in numbers.

F_{\text{net}} \;=\; F\sqrt{3} \;=\; 3.6 \times \sqrt{3} \;\approx\; 6.24\,\text{N},

directed from C straight down toward the midpoint of AB.

Result: The net force on -Q is F_{\text{net}} \approx 6.24\,\text{N}, pointing vertically downward (toward the midpoint of the positive charges' line).

What this shows: Even with three charges, superposition reduces to "compute each pair-wise Coulomb force, resolve each into components, add the components". Symmetries in the configuration (here, the left-right mirror) let you argue which components must cancel before you do the arithmetic — saving effort and catching errors.

Example 3: Charge at the centre of a square of four charges

Four identical positive charges Q sit at the corners of a square of side a. A fifth charge q sits at the centre of the square. Find the net force on q.

Four charges on a square with a fifth at the centreA square with four positive charges at the corners and a fifth charge q at the centre. Four arrows point from the centre toward each corner. By the two-fold mirror symmetries of the square, all four pair-wise forces cancel exactly.+Q+Q+Q+QqDiagonals have length a√2; each pair-wise force points from a corner toward the centre.
Four identical pair-wise Coulomb forces, one from each corner, all of equal magnitude by symmetry. Pairs on opposite diagonals point in antiparallel directions and cancel, giving zero net force on $q$.

Step 1. By symmetry, all four distances are equal.

Each corner of the square is at distance a\sqrt{2}/2 from the centre — half of the diagonal a\sqrt{2}.

Why: the diagonal of a square of side a has length a\sqrt{2} (Pythagoras: \sqrt{a^2 + a^2}). The centre of the square bisects each diagonal.

Step 2. Each pair-wise force has the same magnitude.

F \;=\; \frac{1}{4\pi\varepsilon_0}\,\frac{Q|q|}{(a\sqrt{2}/2)^2} \;=\; \frac{1}{4\pi\varepsilon_0}\,\frac{2Q|q|}{a^2}.

Why: the denominator simplifies because (a\sqrt{2}/2)^2 = 2a^2/4 = a^2/2; the 1/2 flips to 2 in the numerator.

Step 3. Identify cancellations.

The four pair-wise forces point from each corner toward q (if q is negative, attractive; if q is positive, repulsive — but in either case, each pair-wise force lies along a diagonal of the square). The top-left force and the bottom-right force point in exactly opposite directions — they differ by 180^\circ. Since they have equal magnitude, they cancel exactly. The same is true of the top-right and bottom-left forces.

\vec{F}_{\text{net}} \;=\; \vec{F}_{\text{TL}} + \vec{F}_{\text{BR}} + \vec{F}_{\text{TR}} + \vec{F}_{\text{BL}} \;=\; \vec{0} + \vec{0} \;=\; \vec{0}.

Why: four forces of equal magnitude, in four directions that pair up as exact opposites, sum to zero. Symmetry did all the work; no component arithmetic was needed.

Result: The net force on q is zero, regardless of the sign or magnitude of q. The centre of a square of four identical charges is a point of force equilibrium.

What this shows: Symmetry is the shortcut. Before you dive into component arithmetic, ask: does the configuration have a mirror symmetry or a rotational symmetry that pairs up contributions? If yes, whole components of the sum will vanish, often making the answer far simpler than the four-term expansion would suggest. A slightly stronger use of this idea underlies Gauss's law.

4. Equilibrium of charges — where the forces cancel

A charge in equilibrium is a charge where \vec{F}_{\text{net}} = \vec{0}. Superposition tells you exactly how to find such points: write down the net force as a vector function of the test charge's position, and solve for the points where it vanishes.

The archetypal 1-D equilibrium problem: two fixed positive charges, find the point on the line between them where a third charge experiences zero net force.

Setup

Place a positive charge q_1 at x = 0 and a positive charge q_2 at x = L. A third charge q_3 is placed at position x on the line joining them, with 0 < x < L. (The sign of q_3 will turn out to be irrelevant, because equilibrium means the forces from q_1 and q_2 balance, and those forces either both pull q_3 the same way for any sign of q_3 or they both push — the key is that they are antiparallel.)

The force on q_3 from q_1 points to the right (repulsive, away from q_1), with magnitude kq_1 q_3/x^2 (absolute values). The force on q_3 from q_2 points to the left (repulsive, away from q_2), with magnitude kq_2 q_3/(L-x)^2.

At equilibrium:

\frac{k q_1 q_3}{x^2} \;=\; \frac{k q_2 q_3}{(L-x)^2}.

Cancel k and q_3:

\frac{q_1}{x^2} \;=\; \frac{q_2}{(L-x)^2}. \tag{2}

Why: equilibrium means the two pair-wise forces have equal magnitude and point in opposite directions. Dividing cancels the constants that appear on both sides.

Cross-multiply and take the positive square root:

\sqrt{q_1}\,(L-x) \;=\; \sqrt{q_2}\,x.

Solve for x:

x \;=\; \frac{\sqrt{q_1}}{\sqrt{q_1} + \sqrt{q_2}}\,L. \tag{3}

Why: rearranging \sqrt{q_1}\,L = \sqrt{q_1}\,x + \sqrt{q_2}\,x = x(\sqrt{q_1} + \sqrt{q_2}) and dividing both sides by \sqrt{q_1}+\sqrt{q_2}. The equilibrium sits closer to the smaller charge — which matches intuition, because the smaller charge needs the test charge nearer to match the stronger tug of the bigger charge.

Example. If q_1 = 1\,\mu\text{C} and q_2 = 4\,\mu\text{C} with L = 3 m, then \sqrt{q_1}/\sqrt{q_2} = 1/2, and x = L/(1+2) = 1 m. The equilibrium lies 1 m from the small charge and 2 m from the big one — the distances are in ratio 1:2, the square roots of the charges in ratio 1:2, exactly as the formula says.

Stability of the equilibrium

If you nudge q_3 slightly to the right from the equilibrium (toward q_2), the distance to q_2 shrinks, so its repulsion grows; the distance to q_1 grows, so its repulsion shrinks. The net force is now to the left — back toward the equilibrium. Likewise a nudge to the left gives a net force to the right. So the equilibrium is stable along the line.

But if you nudge q_3 perpendicular to the line — say, a small distance y in the +y-direction — both q_1 and q_2 now pull (or push) q_3 in the +y-direction. (Each line from q_1 or q_2 to q_3 now has a +y component, and if q_3 is like-signed, it is pushed further out.) The equilibrium is unstable transversely.

This is a special case of Earnshaw's theorem: a point charge in a static electric field created by other charges can never be in stable equilibrium in three dimensions. Stable in one direction, unstable in another — that is the best you can do with pure electrostatics. This is one of the reasons atoms as classical point-charge systems cannot exist; stable matter requires quantum mechanics.

Equilibrium between two positive charges on a lineTwo positive charges q1 at x equals 0 and q2 at x equals L. A test charge q3 sits at position x in between. The force from q1 points right; the force from q2 points left. The magnitudes balance when x is at a particular equilibrium position.x = 0x = Lq₁q₂q₃xF₁→₃F₂→₃At equilibrium: kq₁/x² = kq₂/(L−x)² ⇒ x = √q₁ L / (√q₁ + √q₂)
On the axis between two like charges, the equilibrium position sits closer to the smaller charge — the square root of the charge ratio sets the exact split of the distance.

5. Continuous charge distributions

So far every calculation has treated charges as discrete points. But in practice you deal with macroscopic objects — a charged metal rod, a charged plastic disc, a plasma cloud — where the charge is spread over a length, a surface, or a volume. Superposition extends to this case effortlessly: a continuous distribution is a sum of infinitesimal pieces, and the sum becomes an integral.

Three kinds of density

Depending on the geometry, charge is specified by one of three density functions:

To use superposition in the continuous limit, you:

  1. Slice the distribution into infinitesimal pieces. A line becomes a row of \mathrm{d}\ell segments; a surface becomes a mosaic of \mathrm{d}A patches; a volume becomes a grid of \mathrm{d}V cells.

  2. Assign a charge \mathrm{d}q' to each piece:

    \mathrm{d}q' \;=\; \lambda\,\mathrm{d}\ell \quad \text{or} \quad \sigma\,\mathrm{d}A \quad \text{or} \quad \rho\,\mathrm{d}V.
  3. Treat each piece as a point charge, write down the Coulomb force on the test charge, and integrate over the whole distribution:

    \boxed{\;\vec{F} \;=\; \frac{q}{4\pi\varepsilon_0}\,\int \frac{\mathrm{d}q'\,(\vec{r} - \vec{r}')}{|\vec{r}-\vec{r}'|^{3}}.\;} \tag{4}

The integral runs over the whole distribution. The tricky parts in practice are: writing \mathrm{d}q' correctly for the geometry, writing |\vec{r} - \vec{r}'| as an explicit function of the integration variable, and exploiting symmetries to make the integral tractable.

A one-dimensional example — the infinite charged line

An infinite straight wire carries uniform linear charge density \lambda. A test charge q sits at perpendicular distance d from the wire. What is the force on q?

Place the wire along the x-axis and put q at (0, d). An infinitesimal piece of wire at position (x, 0) has charge \mathrm{d}q' = \lambda\,\mathrm{d}x. The displacement from this piece to q is \vec{r} - \vec{r}' = (0, d) - (x, 0) = (-x,\ d), with length r = \sqrt{x^2 + d^2}.

The contribution of this piece to the force on q is

\mathrm{d}\vec{F} \;=\; \frac{q\,\lambda\,\mathrm{d}x}{4\pi\varepsilon_0}\,\frac{(-x,\ d)}{(x^2 + d^2)^{3/2}}.

Why: this is Coulomb's law for the point charge \mathrm{d}q', written in vector form with the displacement (-x, d) in the numerator and the distance-cubed in the denominator (so that dividing one by the other gives \hat{r}/r^2).

The x-component integrates to zero by symmetry: for every piece at +x there is an equal piece at -x whose x-contribution is opposite. Only the y-component survives:

F_y \;=\; \frac{q\,\lambda}{4\pi\varepsilon_0}\,\int_{-\infty}^{+\infty} \frac{d\,\mathrm{d}x}{(x^2 + d^2)^{3/2}}. \tag{5}

Why: the factor of d in the numerator is y-component of the displacement, (\vec{r}-\vec{r}')_y = d. Pulling d out of the integral (it does not depend on x) makes this a tractable one-variable integral.

The standard integral \int_{-\infty}^{\infty} \mathrm{d}x/(x^2 + d^2)^{3/2} = 2/d^2. (Quick derivation: substitute x = d\tan\theta, so \mathrm{d}x = d\sec^2\theta\,\mathrm{d}\theta and x^2 + d^2 = d^2\sec^2\theta; the integrand becomes \cos\theta/d^2, integrating from -\pi/2 to \pi/2 gives 2/d^2.)

Substituting:

F_y \;=\; \frac{q\,\lambda}{4\pi\varepsilon_0}\cdot d\cdot\frac{2}{d^2} \;=\; \frac{q\,\lambda}{2\pi\varepsilon_0\,d}.
\boxed{\;F \;=\; \frac{q\,\lambda}{2\pi\varepsilon_0\,d}\;} \tag{6}

Why: the final formula has a 1/d dependence rather than 1/d^2 — the infinite line falls off more slowly than a point charge. That is because as you move further away, more of the line is in your "angular window" in a way that partially compensates for the extra distance. This 1/d behaviour is a hallmark of one-dimensional sources and reappears in the cylindrical applications of Gauss's law.

The force points radially away from the line if q\lambda > 0 (repulsion), radially inward if q\lambda < 0 (attraction). "Radially" here means perpendicular to the line, along the shortest path from the line to q.

Force on a test charge from an infinite charged line — symmetry argumentAn infinite horizontal line carries positive charge density lambda. A test charge q sits above the line at perpendicular distance d. Two mirror-image infinitesimal segments at plus x and minus x contribute forces that, when added, cancel horizontally and reinforce vertically.infinite line, charge density λqd−x+xF_netMirror-symmetric pairs cancel horizontally; vertical components reinforce.
Pairs of infinitesimal segments at $\pm x$ contribute forces whose horizontal components cancel and whose vertical components add — the whole line collapses to a single perpendicular force of magnitude $q\lambda/(2\pi\varepsilon_0 d)$.

A two-dimensional example — a uniformly charged ring on its axis

A thin circular ring of radius R carries total charge Q spread uniformly around its circumference; the linear charge density is \lambda = Q/(2\pi R). A test charge q sits on the ring's symmetry axis at distance z from the ring's centre. Find the force on q.

Choose coordinates so the ring lies in the xy-plane centred at the origin. A piece of the ring at angle \phi (around the ring) is at position (R\cos\phi,\ R\sin\phi,\ 0) and has charge \mathrm{d}q' = \lambda R\,\mathrm{d}\phi. The test charge sits at (0, 0, z).

The displacement from the ring element to q is

\vec{r} - \vec{r}' \;=\; (-R\cos\phi,\ -R\sin\phi,\ z),

with length r = \sqrt{R^2 + z^2} (independent of \phi, because every ring element is the same distance from the axis point).

By symmetry, the x- and y-components of the force integrate to zero — for every ring element at angle \phi there is a diametrically opposite element at \phi + \pi whose transverse contribution is the exact opposite. Only the z-component survives.

The z-component from each element is

\mathrm{d}F_z \;=\; \frac{q}{4\pi\varepsilon_0}\,\frac{\mathrm{d}q'\,z}{(R^2 + z^2)^{3/2}} \;=\; \frac{q\,\lambda R\,z}{4\pi\varepsilon_0\,(R^2+z^2)^{3/2}}\,\mathrm{d}\phi.

Integrate over \phi from 0 to 2\pi; nothing in the integrand depends on \phi (the geometry is axisymmetric):

F_z \;=\; \frac{q\,\lambda R\,z}{4\pi\varepsilon_0\,(R^2+z^2)^{3/2}}\cdot 2\pi \;=\; \frac{q\,\lambda\,R\,z}{2\varepsilon_0\,(R^2+z^2)^{3/2}}.

Substitute \lambda = Q/(2\pi R) so that \lambda R = Q/(2\pi):

\boxed{\;F_z \;=\; \frac{1}{4\pi\varepsilon_0}\,\frac{q\,Q\,z}{(R^2 + z^2)^{3/2}}\;} \tag{7}

Why: the factor of z/(R^2+z^2)^{3/2} is the z-projection of the Coulomb \hat{r}/r^2 shape for a single ring element, and integrating the azimuth has the effect of summing all identical contributions — 2\pi times one element's z-contribution — which is the origin of the R^3 \to R reduction (the \mathrm{d}\phi integral is just 2\pi).

Two checks. At z = 0 (the centre of the ring), F_z = 0 — the ring pulls equally from every direction and the symmetry kills the force. At z \gg R, the formula reduces to

F_z \;\approx\; \frac{1}{4\pi\varepsilon_0}\,\frac{qQ}{z^2},

the Coulomb law for a point charge Q at the origin. That is the sanity check: from far away, the ring looks like a point charge of magnitude Q.

Ring of charge — force on an axis pointA horizontal ellipse represents a ring of radius R seen in perspective. A test charge q sits above the ring on its axis. Two representative ring elements on opposite sides of the ring exert forces toward q; their horizontal components cancel and their vertical components add to give a net force along the axis.ring of radius R, charge QqzF_z
Every ring element pulls the axis charge diagonally. Symmetry cancels all transverse components; the integrated force on the axis is strictly along $z$, with magnitude $kqQz/(R^2+z^2)^{3/2}$.

Explore the ring formula interactively

The formula F_z = \tfrac{kqQz}{(R^2+z^2)^{3/2}} is not monotone in z: it starts at 0 at the centre, grows as you move out, reaches a peak, then falls off. Drag the vertical position of the test charge and watch both the value of F_z and where you are on the curve.

Interactive: axial force on a test charge from a uniformly charged ring A curve showing F_z (in units of kqQ/R^2) versus z/R, with a draggable red dot along the axis. The curve rises from zero at z=0, peaks near z/R = 1/sqrt(2), and decays as 1/z^2 for large z. z / R F_z in units of kqQ/R² 1 2 3 4 5 0.1 0.3 drag the red point along the axis
Drag the red point along the horizontal axis to change $z/R$. At $z/R = 0$ the force vanishes (symmetry). The curve peaks near $z/R = 1/\sqrt{2} \approx 0.707$, where the ring's pull is most effective. At large $z/R$, the curve decays as $1/z^2$, the far-field point-charge behaviour.

6. Common confusions

If you came here to learn how to compute the net force on a charge and to set up continuous-distribution integrals, you have the tools. What follows is for readers who want to know why superposition holds, how it connects to field theory, and where its limits actually are.

Why superposition holds — linearity of the equations

In field theory (which the next article on the electric field introduces), the source of electric force is the electric field \vec{E}(\vec{r}), related to the force on a test charge by \vec{F} = q\vec{E}. The field itself is determined by Maxwell's equations; the relevant one for electrostatics is Gauss's law in differential form:

\nabla \cdot \vec{E} \;=\; \frac{\rho}{\varepsilon_0}.

This equation is linear in \vec{E} and \rho. If \vec{E}_1 is the field produced by a charge distribution \rho_1, and \vec{E}_2 is the field produced by a different distribution \rho_2, then the field produced by the combined distribution \rho_1 + \rho_2 is simply \vec{E}_1 + \vec{E}_2. Linearity of the differential equation implies linearity of the solution — in other words, superposition.

The force on a test charge is q\vec{E} where \vec{E} is the field generated by all the other charges. Since \vec{E} itself obeys superposition (because Maxwell's equations are linear), \vec{F} does too. The electrostatic superposition principle is, at its core, an inheritance from the linearity of the field equations.

That linearity is not guaranteed to hold in every physical theory — it fails in general relativity (Einstein's equations are highly nonlinear; two gravitational fields do not simply add), and it fails for the strong nuclear force (gluons themselves carry color charge, so quark fields self-interact). The fact that the classical electromagnetic interaction is linear — to the extraordinary precision tested by experiment — is a deep structural fact about the theory.

When superposition fails

Superposition is exact in classical electrostatics. The two well-understood regimes where it receives corrections are both quantum:

  • Vacuum polarisation. In quantum electrodynamics, the vacuum itself contains virtual electron-positron pairs. A very strong electric field polarises these virtual pairs, which in turn slightly modifies the field seen by a second charge. The upshot is a tiny correction to Coulomb's law that depends on the field strength — and therefore, a tiny violation of superposition. The corrections are unmeasurable except in extreme environments (the electric field near the surface of a nucleus; the Schwinger limit at \sim 10^{18} V/m).
  • Strong-field nonlinearities. In fields comparable to the Schwinger limit, the QED Lagrangian has nonlinear terms (the Euler–Heisenberg correction), and photon-photon scattering becomes non-negligible. This makes strong fields interact with each other in ways that superposition forbids. These effects have been detected in heavy-ion collisions and in high-intensity laser experiments.

For every practical problem in an undergraduate physics course — every atomic calculation, every capacitor, every plasma in a laboratory, every thunderstorm over Powai — superposition holds to far more than the precision of any measurement. You can treat it as exact.

The field viewpoint as a bookkeeping convenience

Superposition of forces becomes superposition of fields once you divide by the test charge. Define

\vec{E}(\vec{r}) \;=\; \frac{1}{4\pi\varepsilon_0}\,\sum_i \frac{q_i\,(\vec{r} - \vec{r}_i)}{|\vec{r}-\vec{r}_i|^{3}}.

Then the force on any test charge q placed at \vec{r} is just \vec{F} = q\vec{E}(\vec{r}). The field depends only on the source charges, not on the test charge. For problems with many test-charge scenarios (e.g., what force does this configuration put on a proton? a helium nucleus? an electron?) it pays to compute the field once and multiply by the test charge afterwards, rather than redoing the whole Coulomb-and-add calculation each time. The next article formalises this move.

Pair-wise additivity vs pair-wise independence

In classical electrostatics both are true: the net force is pair-wise additive (it is a sum of two-body terms), and each pair-wise term depends only on the pair. These two properties are distinct, and it is worth noting that there exist physical theories where one holds without the other. In classical density functional theory for electrons in a metal, for instance, the energy is a sum of many-body terms; the one-body and two-body pieces do not exhaust the interaction, and "three-body" contributions can be significant. The Coulomb force law between point charges is pair-wise independent to all orders — which is why superposition works for Coulomb's law but not, say, for the effective interaction energy of atoms in a solid.

The relationship to Gauss's law

Gauss's law — which closes this part of the article — is a consequence of Coulomb's law plus superposition. If the force between any two charges obeyed a different power law (1/r^{2.01}, say), superposition would still hold, but Gauss's law in its familiar form (\oint \vec{E}\cdot\mathrm{d}\vec{A} = q_{\text{enc}}/\varepsilon_0) would fail. The inverse-square form of Coulomb's law is exactly what makes the flux through a closed surface depend only on the enclosed charge — a point pursued in the Gauss's law article.

Where this leads next