Field of a Rod with a Linear Charge-Density Gradient
1 Problem
A rod spans −L ≤ x′≤ L on the x axis. Its density is λ(x′) = λ0(1 + x′∕L), with λ0 > 0. Find the
field at (0,a), a > 0.
Figure 1. The shaded density rises to the right. Reflected source elements have unequal charges.
Try first.
The geometry is reflection-symmetric. Separate the even and odd pieces of the density to see what
survives.
2 Worked solution
The displacement is (−x′,a), so
Only the uniform density contributes to Ey. Using ∫
dx′∕(
2 + a2)3∕2 = x′∕(a2
) gives
Ey = 2keλ0L∕(a
). Only the density gradient contributes to Ex. Use
2 = (
2 + a2) −a2
to obtain
The denser right half pushes the field toward negative x.
Check.
Far from the rod Ey tends to ke(2Lλ0)∕a2. Expanding the bracket gives
the equatorial field of the rod’s dipole moment.
3 Practice variation
Reverse the gradient by using λ0(1 − x′∕L).
Solution.
The odd part of the density changes sign and the even part stays fixed. Ex reverses, and Ey stays
the same.
4 Evaluate both component integrals explicitly
The even and odd parts of a density are [λ(x′) + λ(−x′)]∕2 and [λ(x′) − λ(−x′)]∕2. Here they are
λ0 and λ0x′∕L. The denominator is even. The uniform contribution to Ex is odd because of the
numerator −x′, whereas the gradient gives −(x′)2∕L, even. The gradient contribution to E
y is odd.
Hence
For the first integral set x′ = a tan u, with bounds 0 and arctan(L∕a). The differential is a sec 2udu
and
= a sec u because cos u > 0. The transformed integral is a−2 ∫ cos udu, giving
L∕(a2
) at the upper bound. For the second integral split (x′)2 = [(x′)2 + a2] −a2. The first
term has primitive arsinh(x′∕a) and the second has the primitive already obtained times a2. Both
primitives vanish at zero.
5 Worked example 2: choose a = L
Now Ey =
keλ0∕L and Ex = −2keλ0[ln(1 +
) − 1∕
]∕L. Their ratio is about
−0.246. The field tilts to the left of the upward Normal. At large a, setting u = L∕a gives
arsinh u = u − u3∕6 + O(u5) and u∕
= u − u3∕2 + O(u5). Their difference is
u3∕3 + O(u5).
Figure 2. Even and odd contributions to a linear charge-density gradient. The even part sets the
perpendicular field; the odd part sets the horizontal field at the midpoint.
6 Worked example 3: a controllable gradient parameter
The same geometry is useful with λ(x′) = λ0(1 + βx′∕L) for −1 ≤ β ≤ 1. The restriction ensures
nonnegative density over the entire rod. The even part remains λ0, whereas the odd part is
λ0βx′∕L. Therefore
The first component is independent of β because the total even source charge does not change.
The second varies linearly with β and changes sign when the density slope is reversed.
At β = 0 the field has no horizontal component; at β = 1 it reduces to the original
problem.
7 Worked example 4: use the dipole moment to anticipate the far field
Compute the total charge and dipole moment of the gradient family directly:
For an observer on the positive y axis with a ≫ L, the leading monopole field is keQy∕a2. The
dipole field at a point perpendicular to p = pxx is −kepxx∕a3. Consequently
Expanding the exact inverse square root in Ey confirms the leading term. For Ex, let u = L∕a and
expand
Subtracting gives u3∕3 − 3u5∕10 +
, which reproduces the dipole contribution and its first
correction.
8 Worked example 5: a piecewise constant charge distribution
Suppose instead the left and right halves have densities λL and λR, respectively. The observation
point is again (0,a), with a > 0. Using the same source kernel and integrating over each
half,
The horizontal field points toward the side with lower positive charge density. If λR = −λL, the
total charge vanishes and Ey = 0, but the horizontal field survives. The piecewise model shows that
the even/odd decomposition works even without a differentiable density.
9 Exercises
Exercise 1.
Remove the uniform component of the rod. Predict Q, the dipole moment, and the field direction
above the midpoint.
Solution.
The remaining density is odd, so Q = 0. Its first moment is (λ0∕L) ∫
−LL(x′)2 dx′ = 2λ
0L2∕3. The
previous Ex stays negative and Ey = 0.
Exercise 2.
Where does the net charge of the original rod sit in a first-moment description?
Solution.
Its total is 2Lλ0. Dividing the first moment by this total gives x = L∕3, toward the more strongly
charged end.
10 Further exercises and complete solutions
- For β = 0, which components remain? Verify the physical direction. Solution. The rod
has uniform positive density. Horizontal contributions from ±x′ cancel; Ex = 0, and
Ey = 2keλ0L∕(a
) > 0.
- Find the dipole moment for β = −1∕2. Solution. px = 2λ0βL2∕3 = −λ
0L2∕3. The
greater charge lies to the left.
- What happens to the field components when the observation height doubles, assuming
a ≫ L? Solution. Ey decreases approximately by four (monopole a−2); E
x decreases
by eight (dipole a−3).
- A piecewise rod has λL = λ and λR = 3λ. State the field directions and total charge.
Solution. Ex < 0 since λL − λR = −2λ; Ey > 0 since λL + λR = 4λ. Total charge is
Q = L(λL + λR) = 4λL.
References
[1] P. Dourmashkin et al., Electricity and Magnetism, MIT TEAL, chapter 2.
[2] D. J. Griffiths, Introduction to Electrodynamics, 4th ed., chapters 2–3.
[3] Massachusetts Institute of Technology, Electricity and Magnetism: Electrostatics,
MIT Open Learning Library, 8.02.1x, course materials.