Skip to content

Unit 8: Electric Charges, Fields, and Gauss's Law

Electric Fields of Charge Distributions

Find the electric field of a charged rod, line, ring or arc by integrating point-charge fields over the charge and letting symmetry cancel components.

Topic 8.4 · 11 min read

Coulomb's law gives the field of a point charge (topic 8.3), but a charged rod or ring is not a point: its charge sits at many different distances and directions from the spot where you want the field. The fix is to cut the object into pieces small enough to be point charges, write the field of one piece, and add all of them as vectors. Because there are infinitely many pieces, the sum is an integral.

Building a field from point-charge pieces

Charge spread along a thin object is described by its linear charge density λ\lambda, the charge per length in C/m\text{C/m}. A piece of length dℓd\ell carries dq=λ dℓdq = \lambda\,d\ell. (A surface uses σ\sigma in C/m2\text{C/m}^2 and a volume uses ρ\rho in C/m3\text{C/m}^3, with dq=σ dAdq = \sigma\,dA or dq=ρ dVdq = \rho\,dV.) For a uniform rod of charge QQ and length LL, λ=QL\lambda = \frac{Q}{L}.

The integral of a vector is not the integral of magnitudes: two pieces whose fields point in different directions partly cancel, and only the components keep track of that.

The cleanest case has no cancellation at all. Take a uniform rod of charge Q>0Q > 0 along the xx-axis from x=0x = 0 to x=Lx = L, and find the field at a point on the same line, a distance dd past the right end, at x=L+dx = L + d. Every piece pushes a positive test charge in the +x+x direction, so the components all add. The piece at position xx is a distance L+d−xL + d - x from PP:

E=∫0L14πε0λ dx(L+d−x)2=λ4πε0[1L+d−x]0L=λ4πε0(1d−1L+d)=14πε0Qd(L+d),E = \int_0^L \frac{1}{4\pi\varepsilon_0}\frac{\lambda\,dx}{(L + d - x)^2} = \frac{\lambda}{4\pi\varepsilon_0}\left[\frac{1}{L + d - x}\right]_0^L = \frac{\lambda}{4\pi\varepsilon_0}\left(\frac{1}{d} - \frac{1}{L + d}\right) = \frac{1}{4\pi\varepsilon_0}\frac{Q}{d(L + d)},

directed in +x+x. Check the limit: when d≫Ld \gg L, d(L+d)≈d2d(L + d) \approx d^2 and the result becomes the point-charge field Q4πε0d2\frac{Q}{4\pi\varepsilon_0 d^2}. Seen from far away, any finite object looks like a point, and a correct answer must reproduce that.

Letting symmetry cancel components

Before integrating, ask what the arrangement looks like after a reflection or rotation that leaves the charge unchanged. The field must be unchanged by that same operation, and that often forces a component to be zero. In practice you pair each piece with a mirror-image partner: their fields have equal magnitude, and the components perpendicular to the mirror line cancel.

Take a uniform rod of length LL and charge QQ along the xx-axis from −L2-\frac{L}{2} to L2\frac{L}{2}, and a point PP a distance yy from its center on the perpendicular bisector.

A horizontal charged rod runs from x equals minus L over 2 to plus L over 2. Point P is a distance y straight above the rod's center. A piece dq at position x to the right of center is joined to P by a line of length r equal to the square root of x squared plus y squared, making angle phi with the vertical. The field dE from that piece at P points along that line, up and to the left. Its mirror piece at minus x gives a field up and to the right. The horizontal components cancel and the vertical components add.

The piece at xx is a distance r=x2+y2r = \sqrt{x^2 + y^2} from PP, and its field makes angle φ\varphi with the yy-axis, where cos⁡φ=yr\cos\varphi = \frac{y}{r}. The piece at −x-x has the same rr and the opposite horizontal component, so Ex=0E_x = 0 and only the yy-components survive:

Ey=∫−L/2L/214πε0λ dxx2+y2⋅yx2+y2=λy4πε0∫−L/2L/2dx(x2+y2)3/2.E_y = \int_{-L/2}^{L/2} \frac{1}{4\pi\varepsilon_0}\frac{\lambda\,dx}{x^2 + y^2}\cdot\frac{y}{\sqrt{x^2 + y^2}} = \frac{\lambda y}{4\pi\varepsilon_0}\int_{-L/2}^{L/2}\frac{dx}{(x^2 + y^2)^{3/2}}.

The substitution x=ytan⁡φx = y\tan\varphi makes this easy: dx=ysec⁡2φ dφdx = y\sec^2\varphi\,d\varphi and (x2+y2)3/2=y3sec⁡3φ(x^2 + y^2)^{3/2} = y^3\sec^3\varphi, so the integrand becomes cos⁡φ dφy2\frac{\cos\varphi\,d\varphi}{y^2} and the integral is sin⁡φy2\frac{\sin\varphi}{y^2} evaluated between the angles to the two ends. With sin⁡φ=xx2+y2\sin\varphi = \frac{x}{\sqrt{x^2 + y^2}},

E=λ4πε0y⋅Ly2+L2/4=14πε0Qyy2+L2/4,E = \frac{\lambda}{4\pi\varepsilon_0 y}\cdot\frac{L}{\sqrt{y^2 + L^2/4}} = \frac{1}{4\pi\varepsilon_0}\frac{Q}{y\sqrt{y^2 + L^2/4}},

directed away from the rod along the bisector for Q>0Q > 0.

Two limits tell you what this formula means.

  • Far away (y≫Ly \gg L): y2+L2/4≈y\sqrt{y^2 + L^2/4} \approx y, so E≈Q4πε0y2E \approx \frac{Q}{4\pi\varepsilon_0 y^2}, a point charge.
  • Very close, or an infinitely long line (y≪Ly \ll L, or L→∞L \to \infty with λ\lambda fixed): Ly2+L2/4→2\frac{L}{\sqrt{y^2 + L^2/4}} \to 2, so
E=λ2πε0y.E = \frac{\lambda}{2\pi\varepsilon_0 y}.

The field of an infinite line falls off as 1y\frac{1}{y}, not 1y2\frac{1}{y^2}: moving away from a line, you get farther from every piece, but more of the line's length comes into view at a useful angle, and the two effects leave a slower falloff. Near the middle of any long rod (a few millimeters from a meter-long wire), the line result is an excellent approximation.

A long uniformly charged cylinder, solid or hollow, can be cut into thin lines parallel to its axis. At a point outside it, those lines together produce the same field as one line on the axis carrying the cylinder's charge per length λ\lambda, so E=λ2πε0rE = \frac{\lambda}{2\pi\varepsilon_0 r} with rr measured from the axis. Topic 8.6 gets that result, and the field inside the cylinder, from Gauss's law with no integral at all.

Arcs and rings: curved charge

When the charge lies on a circle, polar angle is the natural variable. A piece of arc of radius RR spanning angle dθd\theta has length R dθR\,d\theta, so dq=λR dθdq = \lambda R\,d\theta.

At the center of an arc, every piece is the same distance RR away, which is what makes this case easy. Put the arc's center at the origin and let the arc run from θ=−α\theta = -\alpha to θ=+α\theta = +\alpha, symmetric about the +x+x-axis. The piece at angle θ\theta sits at (Rcos⁡θ,Rsin⁡θ)(R\cos\theta, R\sin\theta), and for positive charge its field at the center points from the piece toward the center, in the direction (−cos⁡θ,−sin⁡θ)(-\cos\theta, -\sin\theta). The yy-components cancel in pairs, and

Ex=−∫−αα14πε0λR dθR2cos⁡θ=−2λsin⁡α4πε0R.E_x = -\int_{-\alpha}^{\alpha}\frac{1}{4\pi\varepsilon_0}\frac{\lambda R\,d\theta}{R^2}\cos\theta = -\frac{2\lambda\sin\alpha}{4\pi\varepsilon_0 R}.

For a semicircle, α=π2\alpha = \frac{\pi}{2} and λ=QπR\lambda = \frac{Q}{\pi R}, so the field at the center has magnitude

E=2λ4πε0R=14πε02QπR2,E = \frac{2\lambda}{4\pi\varepsilon_0 R} = \frac{1}{4\pi\varepsilon_0}\frac{2Q}{\pi R^2},

pointing away from the arc's midpoint for Q>0Q > 0. That is 2π≈0.64\frac{2}{\pi} \approx 0.64 of the Q4πε0R2\frac{Q}{4\pi\varepsilon_0R^2} you'd get by pretending all the charge sat at one spot RR away, because the pieces near the ends of the semicircle push almost sideways and cancel each other. For a full circle, α=π\alpha = \pi and sin⁡π=0\sin\pi = 0: every piece has an opposite partner, and the field at the center of a uniform ring is zero.

On the axis of a ring, the field is not zero. Every piece of the ring is the same distance x2+R2\sqrt{x^2 + R^2} from a point a distance xx along the axis, and opposite pieces cancel each other's components perpendicular to the axis, but the components along the axis all point the same way and add. Example 3 carries out that integral and finds where the field is strongest.

Distribution (uniform, charge QQ)PointField magnitude
Rod of length LLOn its line, dd past an end14πε0Qd(L+d)\dfrac{1}{4\pi\varepsilon_0}\dfrac{Q}{d(L + d)}
Rod of length LLPerpendicular bisector, yy from center14πε0Qyy2+L2/4\dfrac{1}{4\pi\varepsilon_0}\dfrac{Q}{y\sqrt{y^2 + L^2/4}}
Infinite line or long cylinder, λ\lambdaDistance rr from the axis (outside)λ2πε0r\dfrac{\lambda}{2\pi\varepsilon_0 r}
Arc of radius RR spanning 2α2\alphaCenter14πε02λsin⁡αR\dfrac{1}{4\pi\varepsilon_0}\dfrac{2\lambda\sin\alpha}{R}
Ring of radius RRAxis, xx from center14πε0Qx(x2+R2)3/2\dfrac{1}{4\pi\varepsilon_0}\dfrac{Qx}{(x^2 + R^2)^{3/2}}

These are the arrangements the exam expects you to integrate. Don't memorize the table: the exam rewards the setup (the dqdq, the rr, the component, the limits), and each row takes a few lines once the setup is right. A nonuniform density changes only the dqdq: on a rod with λ=βx\lambda = \beta x, use dq=βx dxdq = \beta x\,dx inside the same integral.

Worked examples

Worked exampleExample 1: when a rod is not a point

A thin plastic rod 0.20 m0.20\ \text{m} long carries +6.0 nC+6.0\ \text{nC} spread uniformly along it. Point PP lies on the rod's line, 0.10 m0.10\ \text{m} beyond one end. Use k=9.0×109 N⋅m2/C2k = 9.0\times10^{9}\ \text{N}\cdot\text{m}^2/\text{C}^2.

(a) Calculate the field at PP.

(b) A student models the rod as a point charge at its center. What field does that model predict at PP, and why is it too small?

(c) Repeat both calculations for a point 2.0 m2.0\ \text{m} beyond the end.

Show solution

(a) Every piece of the rod is on the same line as PP, so all the fields point the same way (away from the rod) and add directly. From the collinear result,

E=kQd(L+d)=(9.0×109)(6.0×10−9)(0.10 m)(0.30 m)=1.8×103 N/C,E = \frac{kQ}{d(L + d)} = \frac{(9.0\times10^{9})(6.0\times10^{-9})}{(0.10\ \text{m})(0.30\ \text{m})} = 1.8\times10^{3}\ \text{N/C},

directed along the rod's line, away from the rod.

(b) The center is 0.20 m0.20\ \text{m} from PP, so the model gives kQ(0.20)2=1.35×103 N/C\frac{kQ}{(0.20)^2} = 1.35\times10^{3}\ \text{N/C}, about 25% low. The field goes as 1r2\frac{1}{r^2}, so the half of the rod nearer PP adds far more than the far half loses. Averaging 1r2\frac{1}{r^2} over the rod is not the same as taking 1r2\frac{1}{r^2} at the average distance.

(c) Now d=2.0 md = 2.0\ \text{m}: the exact field is 54(2.0)(2.2)=12.3 N/C\frac{54}{(2.0)(2.2)} = 12.3\ \text{N/C} and the point model, with the center 2.1 m2.1\ \text{m} away, gives 54(2.1)2=12.2 N/C\frac{54}{(2.1)^2} = 12.2\ \text{N/C}. They agree to within 0.3%, because from ten rod-lengths away the rod looks like a point.

Worked exampleExample 2: a quarter-circle of negative charge

A thin wire bent into a quarter-circle of radius 0.15 m0.15\ \text{m} lies in the first quadrant, from the positive xx-axis to the positive yy-axis, centered on the origin. It carries −4.0 nC-4.0\ \text{nC} spread uniformly. Find the magnitude and direction of the electric field at the origin. Use k=9.0×109 N⋅m2/C2k = 9.0\times10^{9}\ \text{N}\cdot\text{m}^2/\text{C}^2.

Show solution

The arc's length is πR2\frac{\pi R}{2}, so ∣λ∣=2∣Q∣πR|\lambda| = \frac{2|Q|}{\pi R}. A piece at angle θ\theta (measured from the +x+x-axis) sits at (Rcos⁡θ,Rsin⁡θ)(R\cos\theta, R\sin\theta) and carries dq=λR dθdq = \lambda R\,d\theta. Because the charge is negative, its field at the origin points toward the piece, in the direction (cos⁡θ,sin⁡θ)(\cos\theta, \sin\theta). All pieces are a distance RR away, so

Ex=∫0π/2k∣λ∣R dθR2cos⁡θ=k∣λ∣R,Ey=∫0π/2k∣λ∣Rsin⁡θ dθ=k∣λ∣R.E_x = \int_0^{\pi/2}\frac{k|\lambda|R\,d\theta}{R^2}\cos\theta = \frac{k|\lambda|}{R}, \qquad E_y = \int_0^{\pi/2}\frac{k|\lambda|}{R}\sin\theta\,d\theta = \frac{k|\lambda|}{R}.

Here the components don't cancel; they come out equal because the arc is symmetric about the line y=xy = x, which already told you the field must point along that line. Numerically, k∣λ∣R=2k∣Q∣πR2=2(9.0×109)(4.0×10−9)π(0.15)2=1.02×103 N/C\frac{k|\lambda|}{R} = \frac{2k|Q|}{\pi R^2} = \frac{2(9.0\times10^{9})(4.0\times10^{-9})}{\pi(0.15)^2} = 1.02\times10^{3}\ \text{N/C}, so

E=2 k∣λ∣R=1.44×103 N/C,E = \sqrt{2}\,\frac{k|\lambda|}{R} = 1.44\times10^{3}\ \text{N/C},

directed at 45∘45^\circ above the +x+x-axis, toward the middle of the arc (as it must be for negative charge). Putting all the charge at the arc's midpoint would give k∣Q∣R2=1.60×103 N/C\frac{k|Q|}{R^2} = 1.60\times10^{3}\ \text{N/C}, too large, because the pieces near the two ends pull partly against each other.

Worked exampleExample 3: the field along a ring's axis (free-response style)

A thin ring of radius RR carries charge +Q+Q spread uniformly. The ring lies in the yzyz-plane, centered on the origin, so the xx-axis is its axis. Express answers in terms of QQ, RR, xx and physical constants.

(a) Derive an expression for the electric field at a point on the axis a distance xx from the center.

(b) At what distance from the center is the field strongest?

(c) Sketch ExE_x as a function of xx from x=−3Rx = -3R to x=3Rx = 3R.

(d) A student estimates the field at x=3Rx = 3R by treating the ring as a point charge at the origin. Is the estimate too large or too small? Justify your answer, and find the percent difference.

Show solution

(a) Take a piece dqdq of the ring. Its distance to PP is r=x2+R2r = \sqrt{x^2 + R^2}, the same for every piece. The piece diametrically opposite has the same distance and a field whose component perpendicular to the axis is equal and opposite, so those components cancel around the ring and only dEx=dEcos⁡θdE_x = dE\cos\theta survives, with cos⁡θ=xr\cos\theta = \frac{x}{r}:

Ex=∫14πε0dqr2⋅xr=x4πε0(x2+R2)3/2∫dq=14πε0Qx(x2+R2)3/2,E_x = \int\frac{1}{4\pi\varepsilon_0}\frac{dq}{r^2}\cdot\frac{x}{r} = \frac{x}{4\pi\varepsilon_0(x^2 + R^2)^{3/2}}\int dq = \frac{1}{4\pi\varepsilon_0}\frac{Qx}{(x^2 + R^2)^{3/2}},

directed along the axis away from the ring (+x+x for x>0x > 0, −x-x for x<0x < 0).

(b) Set the derivative to zero for x>0x > 0:

dExdx=Q4πε0⋅(x2+R2)−3x2(x2+R2)5/2=0⇒x=R2.\frac{dE_x}{dx} = \frac{Q}{4\pi\varepsilon_0}\cdot\frac{(x^2 + R^2) - 3x^2}{(x^2 + R^2)^{5/2}} = 0 \quad\Rightarrow\quad x = \frac{R}{\sqrt{2}}.

The derivative is positive for x<R2x < \frac{R}{\sqrt{2}} and negative beyond, so this is a maximum, with Emax⁡=233⋅Q4πε0R2≈0.385 Q4πε0R2E_{\max} = \frac{2}{3\sqrt{3}}\cdot\frac{Q}{4\pi\varepsilon_0R^2} \approx 0.385\,\frac{Q}{4\pi\varepsilon_0R^2}. By symmetry the field has the same magnitude at x=−R2x = -\frac{R}{\sqrt{2}}.

(c) The graph is zero at the center, rises steeply to its peak at x=0.71Rx = 0.71R, then decays toward zero, approaching the point-charge curve Q4πε0x2\frac{Q}{4\pi\varepsilon_0x^2}. For negative xx it is the same shape flipped below the axis, because the field points in −x-x there.

Graph of E sub x against x from minus 3R to 3R, in units of Q over 4 pi epsilon zero R squared. The curve passes through zero at the origin with positive slope, peaks at 0.385 at x equals R over root 2, then decays toward zero, reaching about 0.095 at x equals 3R. For negative x it is the mirror image through the origin: a minimum of minus 0.385 at x equals minus R over root 2, rising back toward zero. Dashed curves for a point charge, plus or minus 1 over x squared, drawn beyond 1.5R on each side, lie farther from the axis than the solid curve and close in on it as x grows.

(d) Too large. The exact field at 3R3R is Q4πε0⋅3R(10R2)3/2=0.0949 Q4πε0R2\frac{Q}{4\pi\varepsilon_0}\cdot\frac{3R}{(10R^2)^{3/2}} = 0.0949\,\frac{Q}{4\pi\varepsilon_0R^2}, while the point-charge estimate is Q4πε0(3R)2=0.111 Q4πε0R2\frac{Q}{4\pi\varepsilon_0(3R)^2} = 0.111\,\frac{Q}{4\pi\varepsilon_0R^2}, about 17% larger. Two effects make the real field smaller: every piece of the ring is 10R≈3.16R\sqrt{10}R \approx 3.16R away rather than 3R3R, and only the axial component, a fraction 310\frac{3}{\sqrt{10}} of each piece's field, counts.

Where students lose points

On the exam

Derivations are graded on the setup as much as the answer: a correct dqdq in terms of one variable (λ dx\lambda\,dx, λR dθ\lambda R\,d\theta), the correct distance rr, the surviving component with a stated reason the others cancel, and limits of integration that cover the object once. Give the direction with the magnitude, and expect to explain a result through a limit ("far away it matches a point charge") or to predict a factor of change from the result's dependences: a semicircle of fixed charge whose radius doubles has one quarter the field at its center, because E∝QR2E \propto \frac{Q}{R^2}. The exam's integrals here are limited to the rod, line, cylinder, ring and arc cases above; for other shapes, reason about direction from symmetry instead.

Check yourself

  1. Question 1

    A thin wire bent into a semicircle carries uniform charge QQ, and the field at its center is E0E_0. The wire is replaced by a semicircle of twice the radius carrying charge 2Q2Q. What is the field at the new center?

    1. A

      2E02E_0

    2. B

      E0E_0

    3. C

      E02\dfrac{E_0}{2}

    4. D

      E04\dfrac{E_0}{4}

    Show answer

    C

    The field at the center is 14πε02QπR2\frac{1}{4\pi\varepsilon_0}\frac{2Q}{\pi R^2}, so doubling QQ doubles it and doubling RR divides it by 4: the net factor is 24=12\frac{2}{4} = \frac{1}{2}. Choice B notices that λ=QπR\lambda = \frac{Q}{\pi R} is unchanged and assumes the field is too, but at fixed λ\lambda the field at the center, 2λ4πε0R\frac{2\lambda}{4\pi\varepsilon_0 R}, still falls as 1R\frac{1}{R}.

  2. Question 2

    A thin rod lies on the xx-axis from x=ax = a to x=bx = b (with 0<a<b0 < a < b) and has charge density λ=βx\lambda = \beta x, where β\beta is a positive constant. Find the electric field at the origin.

    Show answer

    E⃗=β4πε0ln⁡ba\vec{E} = \dfrac{\beta}{4\pi\varepsilon_0}\ln\dfrac{b}{a} in the −x-x direction.

    A piece at xx carries dq=βx dxdq = \beta x\,dx and is a distance xx from the origin, so dE=14πε0βx dxx2dE = \frac{1}{4\pi\varepsilon_0}\frac{\beta x\,dx}{x^2} and E=β4πε0∫abdxx=β4πε0ln⁡baE = \frac{\beta}{4\pi\varepsilon_0}\int_a^b\frac{dx}{x} = \frac{\beta}{4\pi\varepsilon_0}\ln\frac{b}{a}. The charge is positive and lies in +x+x, so the field at the origin points away from it, in −x-x.

  3. Question 3

    A uniformly charged straight rod is 1.0 m1.0\ \text{m} long. A point on its perpendicular bisector moves from 2.0 mm2.0\ \text{mm} to 4.0 mm4.0\ \text{mm} from the rod. By what factor does the field magnitude change, to a good approximation?

    1. A

      It falls to about one quarter.

    2. B

      It falls to about one half.

    3. C

      It stays about the same.

    4. D

      It falls to about 12\frac{1}{\sqrt{2}} of its value.

    Show answer

    B

    Millimeters from the middle of a meter-long rod, y≪Ly \ll L, so the rod acts as an infinite line with E=λ2πε0yE = \frac{\lambda}{2\pi\varepsilon_0 y}, and doubling yy halves EE (the exact ratio is 0.99998 of one half). Choice A applies the point-charge 1y2\frac{1}{y^2} law, which holds only when y≫Ly \gg L.

  4. Question 4

    A long hollow plastic tube of radius 2.0 cm2.0\ \text{cm} carries 3.0 nC3.0\ \text{nC} per meter of length, spread uniformly over its surface. What is the field magnitude 0.20 m0.20\ \text{m} from the tube's axis, far from its ends? Use k=9.0×109 N⋅m2/C2k = 9.0\times10^{9}\ \text{N}\cdot\text{m}^2/\text{C}^2.

    1. A

      135 N/C135\ \text{N/C}

    2. B

      270 N/C270\ \text{N/C}

    3. C

      300 N/C300\ \text{N/C}

    4. D

      2.7×103 N/C2.7\times10^{3}\ \text{N/C}

    Show answer

    B

    Outside, the tube acts like a line on its axis with the same λ\lambda, so E=λ2πε0r=2kλr=2(9.0×109)(3.0×10−9)0.20=270 N/CE = \frac{\lambda}{2\pi\varepsilon_0 r} = \frac{2k\lambda}{r} = \frac{2(9.0\times10^{9})(3.0\times10^{-9})}{0.20} = 270\ \text{N/C}. Choice A drops the factor of 2, choice C measures rr from the tube's surface (0.18 m), and choice D uses the tube's radius.

Go deeper