Sub topic 4
The electric field of point charges and continuous distributions
This chapter defines the electric field, builds it for point charges, and extends it to continuous charge by integration. It assumes you know Coulomb's law, vector addition and components, and basic integration of simple functions. Superposition is used throughout.
What the electric field is
A charge Q changes the space around it. Any test charge q placed there feels a force. The electric field is that force per unit charge:
E = F / q
The unit is N/C, which equals V/m. The field is a vector. It points in the direction of the force on a positive test charge.
The test charge must be small enough that it does not disturb the source charges. Formally, E = lim (q → 0) F / q. Once you know E at a point, the force on any charge q placed there is F = qE. For a negative q, the force is opposite to E.
Field of a point charge
Coulomb's law gives the field of a point charge Q at distance r:
E = kQ / r², with k = 1/(4πε₀) ≈ 8.99 × 10⁹ N m²/C²
The direction is radially outward for Q > 0 and radially inward for Q < 0. In vector form, with r̂ pointing from the charge to the field point:
E = (kQ / r²) r̂
For several point charges, superposition says the net field is the vector sum of the individual fields. Add components, not magnitudes.
import math
K = 8.9875e9 # N m^2 / C^2
def field_of_point_charges(charges, point):
"""Net field (Ex, Ey) at `point` from a list of (q, x, y) charges."""
ex = ey = 0.0
px, py = point
for q, x, y in charges:
dx, dy = px - x, py - y
r = math.hypot(dx, dy)
ex += K * q * dx / r**3 # (kq/r^2) * (dx/r)
ey += K * q * dy / r**3
return ex, ey
# +2 nC at (-1, 0) and +2 nC at (1, 0): field at (0, 1)
print(field_of_point_charges([(2e-9, -1, 0), (2e-9, 1, 0)], (0, 1)))The x components cancel by symmetry. The y components add, giving Ey ≈ 2 × (kq/2) × cos 45° ≈ 12.7 N/C.
Continuous distributions
For a charged rod, ring, disc or sphere, divide the charge into small elements dq. Each element acts as a point charge and contributes
dE = k dq / r² (along the direction from dq to the field point)
Then integrate the vector sum. The charge element depends on the geometry:
| Distribution | Charge density | Element dq |
|---|---|---|
| Line | λ (C/m) | λ dl |
| Surface | σ (C/m²) | σ dA |
| Volume | ρ (C/m³) | ρ dV |
The standard method has four steps:
- Choose a convenient element dq.
- Write dE and resolve it into components.
- Use symmetry to discard components that cancel.
- Integrate the surviving component.
Worked case: ring of charge on its axis
Take a ring of radius R and total charge Q. Find the field at distance x along the axis through its centre, perpendicular to the ring's plane.
Each element dq is at distance r = √(R² + x²) from the field point. Its field has an axial part dE cos θ and a perpendicular part dE sin θ. Elements on opposite sides of the ring cancel the perpendicular parts. Here cos θ = x / r, and it is the same for every element, so it leaves the integral:
E = ∫ (k dq / r²)(x / r) = (k x / r³) ∫ dq = kQx / (R² + x²)^(3/2)
The field points along the axis, away from the ring if Q > 0.
K = 8.9875e9
def ring_axis_field(Q, R, x):
"""Axial field of a uniformly charged ring at distance x from its centre."""
return K * Q * x / (R**2 + x**2) ** 1.5
print(ring_axis_field(Q=1e-9, R=0.1, x=0.0)) # 0 at the centre
print(ring_axis_field(Q=1e-9, R=0.1, x=0.05))
print(ring_axis_field(Q=1e-9, R=0.1, x=10.0)) # close to K*Q/x^2Checks you should always run on a result like this:
- At x = 0 the field is zero, because the contributions cancel in pairs.
- For x ≫ R the field becomes kQ/x², the field of a point charge.
- The field is maximum at x = R/√2, found by setting dE/dx = 0.
Other standard results
These follow from the same integration method. Gauss's law, covered later, reproduces several of them faster.
| Source | Field point | Magnitude |
|---|---|---|
| Disc, radius R, density σ | On axis, distance x | (σ / 2ε₀)(1 − x / √(R² + x²)) |
| Infinite line, density λ | Perpendicular distance d | λ / (2πε₀ d) |
| Infinite sheet, density σ | Any distance | σ / (2ε₀) |
| Finite rod, density λ | On the perpendicular bisector, distance d, half-length L | (λ / 2πε₀ d) · L / √(L² + d²) |
The disc result is a useful consistency check. Letting R → ∞ gives σ/(2ε₀), which is the infinite sheet. Letting L → ∞ in the rod result gives the infinite line.
Common errors
- Adding magnitudes instead of vectors. Always resolve into components first.
- Keeping a component that symmetry cancels, which gives a wrong answer with extra terms.
- Using the wrong distance. In the ring, r is the distance from dq to the field point, not x.
- Taking a variable out of the integral when it changes. In the ring, cos θ is constant. In a rod, it is not, so you must change variables, usually to the angle.
- Forgetting that the field of a charge is not the force. A charge does not feel its own field.
Practice
Exercise
A ring of radius 0.1 m carries 1 nC of uniformly distributed charge. Find the magnitude of the field on the axis at x = 0.1 m. Use k = 9 × 10⁹ N m²/C².
Show answer
E = kQx / (R² + x²)^(3/2) = (9 × 10⁹)(10⁻⁹)(0.1) / (0.02)^(3/2). Here (0.02)^(3/2) ≈ 2.83 × 10⁻³, so E ≈ 0.9 / 2.83 × 10⁻³ ≈ 318 N/C, directed along the axis away from the ring.
Exercise
Two charges, +q at (−a, 0) and −q at (a, 0), are fixed. What is the direction and magnitude of the field at the origin?
Show answer
Each charge is at distance a. The +q field at the origin points away from +q, so toward +x. The −q field points toward −q, which is also toward +x. The fields add: E = 2kq / a² along +x.