Sub topic 3
The electric field of point charges and continuous distributions
This chapter assumes you can add vectors by components, integrate simple functions, and use Coulomb's law from the previous chapters.
Definition of the field
The electric field at a point is the force per unit positive test charge placed there:
E = F / q₀
The test charge q₀ must be small enough not to disturb the source charges. Since F = qE, a charge q in a field feels a force along E if q is positive and opposite to E if q is negative.
Point charge and superposition
For a point charge q, the field at displacement r from it is:
E = k q r̂ / r², where k = 1/(4πε₀) ≈ 8.99 × 10⁹ N m² C⁻²
The field points away from a positive charge and toward a negative one. For several charges, add the individual field vectors: E = Σ kqᵢ r̂ᵢ / rᵢ².
Continuous distributions
Split the source into small elements dq, treat each as a point charge, and integrate:
E = ∫ k dq r̂ / r²
The charge element depends on the geometry:
| Distribution | Density | dq |
|---|---|---|
| Line | λ (C/m) | λ dl |
| Surface | σ (C/m²) | σ dA |
| Volume | ρ (C/m³) | ρ dV |
Worked example: ring on its axis
Take a ring of radius R and total charge Q. A point on the axis is a distance x from the centre. Each element dq lies at distance √(R² + x²) from that point. Its field has an axial part dE cos α and a perpendicular part dE sin α. Opposite elements cancel the perpendicular parts. With cos α = x/√(R² + x²):
E = kQx / (R² + x²)^(3/2)
At the centre (x = 0) the field is zero. For x ≫ R it becomes kQ/x², the field of a point charge.
The program below checks the formula by summing many point-charge elements as vectors.
import math
K = 8.9875e9 # N m^2 / C^2
def ring_axis_formula(Q, R, x):
return K * Q * x / (R**2 + x**2) ** 1.5
def ring_axis_numeric(Q, R, x, n=2000):
dq = Q / n
ex = ey = ez = 0.0
for i in range(n):
t = 2 * math.pi * i / n
# vector from the element at (0, R cos t, R sin t) to the point (x, 0, 0)
dx, dy, dz = x, -R * math.cos(t), -R * math.sin(t)
r = math.sqrt(dx**2 + dy**2 + dz**2)
f = K * dq / r**3
ex += f * dx
ey += f * dy
ez += f * dz
return ex, ey, ez
Q, R, x = 2e-9, 0.1, 0.1
print(ring_axis_formula(Q, R, x))
print(ring_axis_numeric(Q, R, x)) # ey and ez are about 0Common errors
- Adding magnitudes instead of vectors. Resolve into components first.
- Forgetting that q's sign reverses the direction of E.
- Using the distance from the origin instead of from the element to the field point.
- Leaving components in the integral that cancel by symmetry.
Exercise
A ring of radius R carries charge Q. At what axial distance x is the field largest, and what is its value there?
Show answer
Set dE/dx = 0 for E = kQx/(R² + x²)^(3/2). This gives R² + x² = 3x², so x = R/√2. The maximum field is E = 2kQ / (3√3 R²).