Sub topic 2
The Electric Field: Force per Unit Test Charge
This chapter assumes you know vector addition and components, Newton's second law (F = ma), and Coulomb's law for the force between two point charges.
Defining the field
The electric field at a point is the force per unit charge that a small positive test charge, q0, would feel there:
E = F / q0
The field is measured in newtons per coulomb (N/C). Because force is a vector, E has both magnitude and direction. By convention, E points the way a positive test charge would be pushed.
The field belongs to space itself. Once you know E at a point, the force on any charge q placed there is F = qE. A negative charge feels a force opposite to E.
The field of a point charge
Substitute Coulomb's law, F = kQq0/r², into E = F/q0. The test charge cancels:
E = kQ/r²
The field points away from Q when Q is positive and toward Q when Q is negative. The code below handles both cases with the sign of q.
import math
K = 8.9875517923e9 # Coulomb constant, N*m^2/C^2
def point_charge_field(q, source, point):
"""Electric field (Ex, Ey) in N/C at point due to point charge q at source."""
dx = point[0] - source[0]
dy = point[1] - source[1]
r = math.hypot(dx, dy)
e = K * q / r**2 # negative when q is negative, which reverses the direction
return e * dx / r, e * dy / rAdding fields from several charges
Fields superpose as vectors. Find the x and y components from each charge, then add them separately.
def net_field(point, charges):
ex = ey = 0.0
for q, source in charges:
fx, fy = point_charge_field(q, source, point)
ex += fx
ey += fy
return ex, ey
# +1 nC and -1 nC charges, 2 cm apart. Evaluate at their midpoint.
charges = [(1e-9, (-0.01, 0.0)), (-1e-9, (0.01, 0.0))]
ex, ey = net_field((0.0, 0.0), charges)
print(f"Ex = {ex:.4g} N/C, Ey = {ey:.4g} N/C")Output: Ex = 1.798e+05 N/C, Ey = 0 N/C. Both contributions point in the +x direction, so they add.
Exercise
What is the magnitude and direction of the electric field 0.02 m from a +2 µC point charge?
Show answer
E = kQ/r² = (8.9876 × 10⁹)(2 × 10⁻⁶)/(0.02)² ≈ 4.49 × 10⁷ N/C. The field points directly away from the positive charge.