Electric Field of a Continuous Charge Distribution

A continuous charge distribution is charge spread smoothly over a line, a surface, or a volume. It is described by a charge density, the charge per unit length, area, or volume:

  • Linear charge density , in , where is the arc length along the line.
  • Surface charge density , in .
  • Volume charge density , in .

Each density can be constant or can vary from place to place. The field is found by the slice-and-dice method. Cut the distribution into pieces small enough to act as point charges. Each piece adds a small field

where is the distance from the piece to the field point and points from the piece toward it. The total field is the sum of all the pieces, which becomes an integral:

The steps of the method:

  • Draw a picture. Mark one typical piece , the line from it to the field point, and its small field .
  • Use symmetry to decide which components cancel. Keep only the others.
  • Write the surviving component, such as , with and the angle read from the right triangle in the picture.
  • Write in terms of one variable, such as , , or .
  • Set the limits so that the integral covers every piece of charge exactly once.
  • Underline the integration variable. Move everything else outside the integral as a constant.
  • Integrate, then check the units and a limiting case.

Intuition

Coulomb’s law handles point charges, but real charged objects are rods, rings, plates, and spheres. The fix is to treat a large object as many small ones. Cut it into pieces so small that each piece is a point charge. The field of each piece is known. Superposition then says the total field is the sum over pieces. Making the pieces smaller and their number larger turns the sum into an integral.

The animation runs the whole method on an infinite line of charge. It dices the line, keeps the component perpendicular to the line, adds the pieces, and substitutes. The right side writes each step as an equation.

\usepackage{tikz}
\usetikzlibrary{animations}
\begin{document}
\makeatletter\@ifundefined{pgf@sys@id@count}{}{\global\pgf@sys@id@count=75000\relax}\@ifundefined{pgf@sys@svg@objectcount}{}{\global\pgf@sys@svg@objectcount=75000\relax}\makeatother
\definecolor{hot}{HTML}{D9483B}
\definecolor{grn}{HTML}{2F9E44}
\definecolor{prp}{HTML}{8E6BD6}
\begin{tikzpicture}[font=\small, >=latex]
\path (-3.2,-5.05) rectangle (12.4,4.4);
\draw[hot,line width=2.2pt] (0.00,-3.40) -- (0.00,3.40);
\draw[hot,line width=2.2pt,densely dotted] (0.00,3.40) -- (0.00,4.00); \draw[hot,line width=2.2pt,densely dotted] (0.00,-3.40) -- (0.00,-4.00);
\node[hot,inner sep=0pt] at (-0.22,-3.20) {\tiny$+$};
\node[hot,inner sep=0pt] at (-0.22,-2.80) {\tiny$+$};
\node[hot,inner sep=0pt] at (-0.22,-2.40) {\tiny$+$};
\node[hot,inner sep=0pt] at (-0.22,-2.00) {\tiny$+$};
\node[hot,inner sep=0pt] at (-0.22,-1.60) {\tiny$+$};
\node[hot,inner sep=0pt] at (-0.22,-1.20) {\tiny$+$};
\node[hot,inner sep=0pt] at (-0.22,-0.80) {\tiny$+$};
\node[hot,inner sep=0pt] at (-0.22,-0.40) {\tiny$+$};
\node[hot,inner sep=0pt] at (-0.22,0.40) {\tiny$+$};
\node[hot,inner sep=0pt] at (-0.22,0.80) {\tiny$+$};
\node[hot,inner sep=0pt] at (-0.22,1.20) {\tiny$+$};
\node[hot,inner sep=0pt] at (-0.22,1.60) {\tiny$+$};
\node[hot,inner sep=0pt] at (-0.22,2.00) {\tiny$+$};
\node[hot,inner sep=0pt] at (-0.22,2.40) {\tiny$+$};
\node[hot,inner sep=0pt] at (-0.22,2.80) {\tiny$+$};
\node[hot,inner sep=0pt] at (-0.22,3.20) {\tiny$+$};
\node[hot,anchor=east] at (-0.35,3.20) {$\lambda$};
\draw[densely dotted] (0.00,0.00) -- (2.00,0.00); \node[below] at (1.00,0.00) {$R$};
\fill (2.00,0.00) circle (0.06); \node[below right] at (2.00,0.00) {P};
\draw[->] (-0.60,-4.30) -- (-0.60,-3.70) node[left] {$y$};
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3s = "true", 14s = "false", 33.9s = "false", repeats}}}]
\draw[very thin] (-0.10,-3.40) -- (0.10,-3.40); \draw[very thin] (-0.10,-3.00) -- (0.10,-3.00); \draw[very thin] (-0.10,-2.60) -- (0.10,-2.60); \draw[very thin] (-0.10,-2.20) -- (0.10,-2.20); \draw[very thin] (-0.10,-1.80) -- (0.10,-1.80); \draw[very thin] (-0.10,-1.40) -- (0.10,-1.40); \draw[very thin] (-0.10,-1.00) -- (0.10,-1.00); \draw[very thin] (-0.10,-0.60) -- (0.10,-0.60); \draw[very thin] (-0.10,-0.20) -- (0.10,-0.20); \draw[very thin] (-0.10,0.20) -- (0.10,0.20); \draw[very thin] (-0.10,0.60) -- (0.10,0.60); \draw[very thin] (-0.10,1.00) -- (0.10,1.00); \draw[very thin] (-0.10,1.40) -- (0.10,1.40); \draw[very thin] (-0.10,1.80) -- (0.10,1.80); \draw[very thin] (-0.10,2.20) -- (0.10,2.20); \draw[very thin] (-0.10,2.60) -- (0.10,2.60); \draw[very thin] (-0.10,3.00) -- (0.10,3.00); \draw[very thin] (-0.10,3.40) -- (0.10,3.40);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3s = "true", 14s = "false", 33.9s = "false", repeats}}}]
\draw[prp,line width=4pt] (0.00,1.20) -- (0.00,1.60);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3s = "true", 6.2s = "false", 33.9s = "false", repeats}}}]
\draw[prp] (0.12,1.40) -- (0.90,2.30); \node[prp,anchor=west] at (0.90,2.30) {$dq = \lambda\,dy$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.2s = "true", 14s = "false", 33.9s = "false", repeats}}}]
\draw[prp,densely dashed] (0.00,1.40) -- (2.00,0.00);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.2s = "true", 14s = "false", 33.9s = "false", repeats}}}]
\draw[->,grn,very thick] (2.00,0.00) -- (3.31,-0.92);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.2s = "true", 9.6s = "false", 33.9s = "false", repeats}}}]
\node[grn,below] at (3.31,-0.92) {$d\vec E$}; \node[prp,anchor=south west] at (1.10,0.82) {$\sqrt{y^2+R^2}$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.2s = "true", 9.6s = "false", 33.9s = "false", repeats}}}]
\node[prp,anchor=east] at (-0.35,1.40) {$y$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.2s = "true", 14s = "false", 33.9s = "false", repeats}}}]
\draw[grn] (2.55,0.00) arc[start angle=0,end angle=-35.0,radius=0.55]; \node[grn] at (2.76,-0.24) {\footnotesize $\theta$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.2s = "true", 14s = "false", 33.9s = "false", repeats}}}]
\draw[densely dotted] (2.00,0.00) -- (5.00,0.00);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 9.6s = "true", 14s = "false", 33.9s = "false", repeats}}}]
\draw[prp,line width=4pt] (0.00,-1.60) -- (0.00,-1.20);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 9.6s = "true", 14s = "false", 33.9s = "false", repeats}}}]
\draw[prp,densely dashed] (0.00,-1.40) -- (2.00,0.00);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 9.6s = "true", 14s = "false", 33.9s = "false", repeats}}}]
\draw[->,grn,very thick] (2.00,0.00) -- (3.31,0.92);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 9.6s = "true", 14s = "false", 33.9s = "false", repeats}}}]
\draw[->,grn,densely dashed] (3.31,-0.92) -- (3.31,0.00);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 9.6s = "true", 14s = "false", 33.9s = "false", repeats}}}]
\draw[->,grn,densely dashed] (3.31,0.92) -- (3.31,0.00);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 9.6s = "true", 14s = "false", 33.9s = "false", repeats}}}]
\draw[->,grn,line width=2.2pt] (2.00,0.00) -- (4.62,0.00); \node[grn,above] at (4.52,0.02) {$2\,dE_x$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 14s = "true", 15.5s = "false", 33.9s = "false", repeats}}}]
\draw[prp,line width=4pt] (0.00,0.00) -- (0.00,0.80); \draw[prp,line width=4pt] (0.00,-0.80) -- (0.00,-0.00); \draw[->,grn,line width=2.2pt] (2.00,0.00) -- (3.11,0.00); \node[prp,anchor=east] at (-0.45,0.60) {pieces with}; \node[prp,anchor=east] at (-0.45,0.15) {$|y| < 0.4R$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 15.5s = "true", 17s = "false", 33.9s = "false", repeats}}}]
\draw[prp,line width=1.6pt] (0.00,-0.80) -- (0.00,0.80); \draw[prp,line width=4pt] (0.00,0.80) -- (0.00,1.60); \draw[prp,line width=4pt] (0.00,-1.60) -- (0.00,-0.80); \draw[->,grn,line width=2.2pt] (2.00,0.00) -- (3.87,0.00); \node[prp,anchor=east] at (-0.45,0.60) {pieces with}; \node[prp,anchor=east] at (-0.45,0.15) {$|y| < 0.8R$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 17s = "true", 18.5s = "false", 33.9s = "false", repeats}}}]
\draw[prp,line width=1.6pt] (0.00,-1.60) -- (0.00,1.60); \draw[prp,line width=4pt] (0.00,1.60) -- (0.00,2.40); \draw[prp,line width=4pt] (0.00,-2.40) -- (0.00,-1.60); \draw[->,grn,line width=2.2pt] (2.00,0.00) -- (4.30,0.00); \node[prp,anchor=east] at (-0.45,0.60) {pieces with}; \node[prp,anchor=east] at (-0.45,0.15) {$|y| < 1.2R$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 18.5s = "true", 20s = "false", 33.9s = "false", repeats}}}]
\draw[prp,line width=1.6pt] (0.00,-2.40) -- (0.00,2.40); \draw[prp,line width=4pt] (0.00,2.40) -- (0.00,3.20); \draw[prp,line width=4pt] (0.00,-3.20) -- (0.00,-2.40); \draw[->,grn,line width=2.2pt] (2.00,0.00) -- (4.54,0.00); \node[prp,anchor=east] at (-0.45,0.60) {pieces with}; \node[prp,anchor=east] at (-0.45,0.15) {$|y| < 1.6R$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 20s = "true", 22.6s = "false", 33.9s = "false", repeats}}}]
\draw[prp,line width=1.6pt] (0.00,-3.20) -- (0.00,3.20); \draw[prp,line width=4pt] (0.00,3.20) -- (0.00,4.00); \draw[prp,line width=4pt] (0.00,-4.00) -- (0.00,-3.20); \draw[->,grn,line width=2.2pt] (2.00,0.00) -- (5.00,0.00); \node[prp,anchor=east] at (-0.45,0.60) {the rest,}; \node[prp,anchor=east] at (-0.45,0.15) {out to $\pm\infty$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 14s = "true", 22.6s = "false", 33.9s = "false", repeats}}}]
\fill[prp] (7.15,-3.35) rectangle (7.57,-2.55);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 15.5s = "true", 22.6s = "false", 33.9s = "false", repeats}}}]
\fill[prp] (7.75,-3.35) rectangle (8.17,-2.80);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 17s = "true", 22.6s = "false", 33.9s = "false", repeats}}}]
\fill[prp] (8.35,-3.35) rectangle (8.77,-3.04);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 18.5s = "true", 22.6s = "false", 33.9s = "false", repeats}}}]
\fill[prp] (8.95,-3.35) rectangle (9.37,-3.18);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 20s = "true", 22.6s = "false", 33.9s = "false", repeats}}}]
\fill[prp] (9.55,-3.35) rectangle (9.97,-3.02);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 14s = "true", 22.6s = "false", 33.9s = "false", repeats}}}]
\draw (7.05,-3.35) -- (10.15,-3.35); \node[anchor=east,align=right] at (6.85,-3.00) {\footnotesize each pair's \\ \footnotesize $dE_x$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 14s = "true", 22.6s = "false", 33.9s = "false", repeats}}}]
\node[anchor=north] at (7.36,-3.35) {\scriptsize near}; \node[anchor=north] at (9.76,-3.35) {\scriptsize far};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 22.6s = "true", 27.4s = "false", 33.9s = "false", repeats}}}]
\draw[prp,densely dashed] (0.00,3.40) -- (2.00,0.00) -- (0.00,-3.40); \draw[prp,thick] (1.65,0.60) arc[start angle=120.5,end angle=239.5,radius=0.7]; \node[prp] at (1.00,0.32) {$u$}; \draw[->,grn,line width=2.2pt] (2.00,0.00) -- (5.00,0.00);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 27.4s = "true", 33.9s = "true", repeats}}}]
\draw[->,grn,line width=2.4pt] (2.00,0.00) -- (5.00,0.00); \node[grn,above] at (5.00,0.00) {$\vec E$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3s = "true", 33.9s = "true", repeats}}}]
\node[anchor=east] at (6.85,3.95) {\footnotesize dice}; \node[anchor=west] at (7.00,3.95) {$dq = \lambda\,dy$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.2s = "true", 33.9s = "true", repeats}}}]
\node[anchor=east] at (6.85,3.15) {\footnotesize one piece}; \node[anchor=west] at (7.00,3.15) {$\displaystyle dE = \frac{k\,dq}{y^2+R^2}$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 9.6s = "true", 33.9s = "true", repeats}}}]
\node[anchor=east] at (6.85,2.15) {\footnotesize symmetry}; \node[anchor=west] at (7.00,2.15) {$\displaystyle dE_x = dE\cos\theta = dE\,\frac{R}{\sqrt{y^2+R^2}}$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 14s = "true", 33.9s = "true", repeats}}}]
\node[anchor=east] at (6.85,0.90) {\footnotesize add}; \node[anchor=west] at (7.00,0.90) {$\displaystyle E_x = k\lambda R\int_{-\infty}^{\infty}\frac{dy}{(y^2+R^2)^{3/2}}$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 22.6s = "true", 33.9s = "true", repeats}}}]
\node[anchor=east] at (6.85,-0.40) {\footnotesize substitute}; \node[anchor=west] at (7.00,-0.40) {$y = R\tan u$: $\displaystyle E_x = \frac{k\lambda}{R}\int_{-\pi/2}^{\pi/2}\cos u\,du$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 27.4s = "true", 33.9s = "true", repeats}}}]
\node[anchor=east] at (6.85,-1.65) {\footnotesize result}; \node[anchor=west] at (7.00,-1.65) {$\displaystyle E_x = \frac{2k\lambda}{R}$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "true", 3s = "false", 33.9s = "false", repeats}}}]
\node[anchor=west] at (5.40,3.95) {Goal: the field $\vec E$ at P.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 27.4s = "true", 33.9s = "true", repeats}}}]
\node[anchor=west,align=left] at (7.00,-2.75) {\footnotesize units: $k\lambda/R$ is in $\mathrm{N/C}$ \\ \footnotesize falls as $1/R$, slower than a point charge};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "true", 3s = "false", 33.9s = "false", repeats}}}]
\node[anchor=north,align=center] at (4.6,-4.15) {An infinite line carries charge $\lambda$ per unit length. \\ Find the field at P, a distance $R$ from the line.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3s = "true", 6.2s = "false", 33.9s = "false", repeats}}}]
\node[anchor=north,align=center] at (4.6,-4.15) {Dice: cut the line into short pieces of length $dy$. \\ Each piece is a point charge $dq = \lambda\,dy$.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.2s = "true", 9.6s = "false", 33.9s = "false", repeats}}}]
\node[anchor=north,align=center] at (4.6,-4.15) {One piece at height $y$ pushes on P along the line that joins them. \\ The angle $\theta$ sets how much of the push is along $x$.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 9.6s = "true", 14s = "false", 33.9s = "false", repeats}}}]
\node[anchor=north,align=center] at (4.6,-4.15) {The piece at $-y$ gives the mirror image. \\ The $y$ parts cancel. The $x$ parts add.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 14s = "true", 15.5s = "false", 33.9s = "false", repeats}}}]
\node[anchor=north,align=center] at (4.6,-4.15) {Add the pieces in pairs, moving out from the middle. \\ Nearby pairs add the most to the field at P.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 15.5s = "true", 17s = "false", 33.9s = "false", repeats}}}]
\node[anchor=north,align=center] at (4.6,-4.15) {Add the pieces in pairs, moving out from the middle. \\ Nearby pairs add the most to the field at P.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 17s = "true", 18.5s = "false", 33.9s = "false", repeats}}}]
\node[anchor=north,align=center] at (4.6,-4.15) {Add the pieces in pairs, moving out from the middle. \\ Nearby pairs add the most to the field at P.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 18.5s = "true", 20s = "false", 33.9s = "false", repeats}}}]
\node[anchor=north,align=center] at (4.6,-4.15) {Add the pieces in pairs, moving out from the middle. \\ Nearby pairs add the most to the field at P.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 20s = "true", 22.6s = "false", 33.9s = "false", repeats}}}]
\node[anchor=north,align=center] at (4.6,-4.15) {The rest of the line, out to infinity, \\ still adds about 15 percent of the field.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 22.6s = "true", 27.4s = "false", 33.9s = "false", repeats}}}]
\node[anchor=north,align=center] at (4.6,-4.15) {Substitute $y = R\tan u$, where $u$ is the angle at P. \\ As $y$ runs over the whole line, $u$ runs from $-\pi/2$ to $\pi/2$.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 27.4s = "true", 33.9s = "true", repeats}}}]
\node[anchor=north,align=center] at (4.6,-4.15) {The field points away from the line, with size $2k\lambda/R$. \\ Check the units and the $1/R$ falloff.};
\end{scope}
\end{tikzpicture}
\end{document}

The method takes practice, and most mistakes are bookkeeping mistakes. The integrand contains several letters. They include the size of the object, the distance to the field point, and the position of the piece. Only the position of the piece changes from one piece to the next. Identify that variable and pull everything else out as a constant. The integral is then usually a standard one.

Properties

(Limits Cover All Charge) A field integral always has limits, chosen so that every piece of charge is counted once.

An integral without limits gives an answer plus an arbitrary constant. A field equal to “this expression plus an unknown constant” answers nothing. The limits come from asking where the charge is. An infinite line needs to . A ring needs a full turn, to . A sphere sliced into rings needs the polar angle from to . Missing part of the range leaves out charge. Doubling part of the range counts some charge twice.

(Slice Into Known Shapes) Cutting an object into rings or strips whose field is already known avoids double integrals.

A charged sphere can be cut into point-like patches, but that needs a double integral. Cutting it into thin rings instead uses the ring result for each slice. A single integral over the rings remains. The same idea cuts a disk into rings or a plane into strips. The hard part is translating the variables of the known result to the slice. The Hard example in 3.2.4b Ring of Charge slices a sphere this way. With a well-chosen slice, a single integral is enough for every shape in these notes.

(Substitutions Keep Units) A substitution must keep both sides in the same units.

The integral over an infinite line contains . The substitution works, while does not. A tangent has no units, and is a length. The only length in the problem is , so it must multiply the tangent. This check finds the right substitution before any algebra is done.

Examples

(Easy) Charge Densities

A rod long carries spread evenly. A square plate on a side carries spread evenly over one face.

Not Taught in Lecture

Lecture did not work out the next two shapes, the end of a rod and a semicircle. They apply the method as in Giancoli section 21.7.

(Medium) Beyond the End of a Rod

The rod from the previous example lies on the -axis from to . Point P sits on the axis at , with .

(Hard) A Semicircle at Its Center

Charge is spread evenly over a thin semicircular wire of radius . The wire is the upper half of a circle centered at the origin.

See Also