You know how to add the fields of several point charges: find each one's field at the point, then add them as vectors. A charged rod is the same problem with infinitely many charges. Cut it into pieces $dq = \lambda\,dx$ (charge densities), treat each piece as a point charge, and add the pieces with an integral.
Key idea
Why it works
A recipe for any shape
- Draw axes and one piece $dq$ at a general position, say $x$.
- Write its distance $r$ to the point, and the angle or ratio that gives each component (for example $\cos\theta = d/r$).
- Write $dE_x$ and $dE_y$ in terms of $x$ and $dx$.
- Use symmetry to drop components that cancel.
- Integrate over the whole object, then check a limit you know (far away, it must look like a point charge).
Worked examples
Worked example: On the rod's own line
- Put P at the origin and the rod from $x = a = 0.10\ \text{m}$ to $x = a + L = 0.30\ \text{m}$. Every piece pushes along the same line, so here the sizes may be added.
- $$E = \int_a^{a+L}\frac{k\lambda\,dx}{x^2} = k\lambda\left(\frac{1}{a} - \frac{1}{a+L}\right) = \frac{kQ}{a(a+L)}$$ using $\lambda L = Q$.
- $$E = \frac{(8.99 \times 10^{9})(8.0 \times 10^{-9})}{(0.10)(0.30)} = 2400\ \text{N/C}$$
- Check: far away ($a \gg L$) this is $kQ/a^2$, a point charge.
Answer: $E \approx 2400\ \text{N/C}$, along the rod's line, away from the rod
Worked example: Above the middle
- Rod from $x = -L/2$ to $L/2$, P at $(0, d)$. A piece at $x$ is $r = \sqrt{x^2 + d^2}$ away.
- Mirror pieces at $\pm x$ cancel each other's $x$-parts. The $y$-part of each is $dE\cos\theta = \dfrac{k\lambda\,dx}{r^2}\cdot\dfrac{d}{r}$.
- $$E = k\lambda d\int_{-L/2}^{L/2}\frac{dx}{(x^2 + d^2)^{3/2}}$$ With the substitution $x = d\tan\theta$, $dx = d\sec^2\theta\,d\theta$, the integrand becomes $\cos\theta\,d\theta/d^2$, so the antiderivative is $\dfrac{x}{d^2\sqrt{x^2 + d^2}}$.
- $$E = \frac{k\lambda L}{d\sqrt{d^2 + L^2/4}} = \frac{kQ}{d\sqrt{d^2 + L^2/4}}$$
- $$E = \frac{(8.99 \times 10^{9})(10 \times 10^{-9})}{(0.10)\sqrt{0.010 + 0.040}} = 4020\ \text{N/C}$$ pointing straight away from the rod.
Answer: $E \approx 4020\ \text{N/C}$
Worked example: Two checks on the answer
- Far away, $d \gg L$: the square root is about $d$, so $E \approx kQ/d^2$. From far off, the rod looks like a point.
- Very close, $d \ll L$: the root is about $L/2$, so $E \approx \dfrac{2kQ}{dL} = \dfrac{2k\lambda}{d}$. Up close, the rod looks endless. Gauss's law will give the same $2k\lambda/d$ in one line.
Answer: Both limits come out right, a good sign the integral is correct.
Common mistake