Electric Potential from Electric Field

The source charges make a field. The potential difference between two points A and B follows from that field along any path between them:

Here is a small step along the path. The sign rule:

  • The top limit B is the final point. Its potential comes first on the left side.
  • The bottom limit A is the initial point. Its potential is subtracted.
  • The minus sign stays in front of the integral.

With this order and sign, the result never has a sign error. The formula gives only differences. To get the potential at a point P, choose a reference point where and integrate from it to P:

The reference point can be any point where stays finite.

The integral needs at every point of a path. A value at one point is not enough. The method therefore works when Gauss’s law gives in a whole region. When the field would need slice and dice, the potential is found by slice and dice directly. That takes one integral, while the route through takes two.

Standard results:

  • A uniform field with the zero at has . Two points a distance apart along the field differ by .
  • An infinite line with charge per length has , where is the distance from the line. The zero sits at a chosen finite distance . Neither nor can be the zero, since is infinite at both.
  • A neutral conducting shell with inner radius and outer radius surrounds a point charge at its center. With the zero at infinity, its potential in the three regions is

The potential is continuous across the charged surfaces at and , where the field jumps. It is constant throughout the metal, where .

Intuition

The field sets how fast the potential changes along a path. Moving along , the potential drops by volts for every meter. Moving across the field, it does not change. The integral adds up these small changes from A to B.

The minus sign comes from the definition . The field does positive work on a positive charge that moves along . That charge loses potential energy, so the potential falls along .

The shell shows how the method handles separate regions. Outside the shell, the field is the same as a bare point charge’s. In the metal, the field is zero, so the potential keeps the value it had at the outer surface. In the cavity, the field again matches the point charge’s. The potential grows inward at the same rate as near a bare charge. It starts from a different value at , so it differs from the bare charge’s potential by a constant. That constant comes from the charges on the shell’s two surfaces.

A point P moves toward a positive charge and back out. The green area under from P to infinity equals at P. Moving against raises , and moving along lowers it.

\usepackage{tikz}
\usetikzlibrary{animations}
\begin{document}
\makeatletter\@ifundefined{pgf@sys@id@count}{}{\global\pgf@sys@id@count=85000\relax}\@ifundefined{pgf@sys@svg@objectcount}{}{\global\pgf@sys@svg@objectcount=85000\relax}\makeatother
\definecolor{hot}{HTML}{D9483B}
\definecolor{grn}{HTML}{2F9E44}
\definecolor{prp}{HTML}{8E6BD6}
\begin{tikzpicture}[font=\small, >=latex]
\path (-1.0,-1.45) rectangle (7.5,7.45);
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3.6s = "true", 4.7s = "false", 25.9s = "false", repeats}}}]
\fill[grn] (5.88,3.35)--(5.88,3.38)--(6.3,3.37)--(6.3,3.35)--cycle;
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 4.7s = "true", 5.8s = "false", 25.9s = "false", repeats}}}]
\fill[grn] (4.41,3.35)--(4.41,3.4)--(6.3,3.37)--(6.3,3.35)--cycle;
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 5.8s = "true", 6.9s = "false", 25.9s = "false", repeats}}}]
\fill[grn] (3.26,3.35)--(3.26,3.44)--(4.47,3.4)--(6.3,3.37)--(6.3,3.35)--cycle;
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.9s = "true", 8s = "false", 25.9s = "false", repeats}}}]
\fill[grn] (2.42,3.35)--(2.42,3.51)--(3,3.45)--(3.77,3.42)--(6.3,3.37)--(6.3,3.35)--cycle;
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 8s = "true", 9.1s = "false", 25.9s = "false", repeats}}}]
\fill[grn] (1.78,3.35)--(1.78,3.64)--(2.01,3.58)--(2.31,3.53)--(3.14,3.45)--(4.34,3.4)--(6.3,3.37)--(6.3,3.35)--cycle;
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 9.1s = "true", 10.2s = "false", 25.9s = "false", repeats}}}]
\fill[grn] (1.31,3.35)--(1.31,3.89)--(1.56,3.73)--(1.81,3.64)--(2.14,3.55)--(2.64,3.48)--(3.22,3.44)--(3.97,3.41)--(6.3,3.37)--(6.3,3.35)--cycle;
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 10.2s = "true", 11.3s = "false", 25.9s = "false", repeats}}}]
\fill[grn] (1,3.35)--(1,4.29)--(1.17,4.03)--(1.26,3.94)--(1.44,3.8)--(1.62,3.71)--(1.79,3.64)--(2.23,3.54)--(2.77,3.47)--(3.56,3.42)--(4.71,3.39)--(6.3,3.37)--(6.3,3.35)--cycle;
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 11.3s = "true", 14.7s = "false", 25.9s = "false", repeats}}}]
\fill[grn] (0.79,3.35)--(0.79,4.86)--(0.88,4.56)--(0.97,4.34)--(1.06,4.18)--(1.16,4.05)--(1.25,3.95)--(1.43,3.81)--(1.61,3.71)--(1.89,3.61)--(2.44,3.51)--(3.27,3.44)--(4.46,3.4)--(6.3,3.37)--(6.3,3.35)--cycle;
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 14.7s = "true", 15.8s = "false", 25.9s = "false", repeats}}}]
\fill[grn] (1.05,3.35)--(1.05,4.2)--(1.23,3.97)--(1.31,3.89)--(1.49,3.77)--(1.66,3.69)--(1.84,3.63)--(2.28,3.53)--(2.89,3.46)--(3.68,3.42)--(6.3,3.37)--(6.3,3.35)--cycle;
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 15.8s = "true", 16.9s = "false", 25.9s = "false", repeats}}}]
\fill[grn] (1.63,3.35)--(1.63,3.7)--(1.86,3.62)--(2.17,3.55)--(2.48,3.5)--(2.95,3.46)--(4.2,3.4)--(6.3,3.37)--(6.3,3.35)--cycle;
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 16.9s = "true", 19.9s = "false", 25.9s = "false", repeats}}}]
\fill[grn] (2.52,3.35)--(2.52,3.5)--(3.09,3.45)--(3.84,3.41)--(6.3,3.37)--(6.3,3.35)--cycle;
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 19.9s = "true", 25.9s = "true", repeats}}}]
\fill[grn] (2.52,3.35)--(2.52,3.5)--(3.09,3.45)--(3.84,3.41)--(6.3,3.37)--(6.3,3.35)--cycle; \fill[prp] (1.05,3.35)--(1.05,4.2)--(1.15,4.06)--(1.27,3.93)--(1.42,3.82)--(1.59,3.72)--(1.76,3.65)--(1.98,3.59)--(2.52,3.5)--(2.52,3.35)--cycle;
\end{scope}
\draw[->] (0,3.35)--(6.65,3.35) node[right] {$r$}; \draw[->] (0,3.35)--(0,6) node[above] {$E$}; \draw[->] (0,0)--(6.65,0) node[right] {$r$}; \draw[->] (0,0)--(0,2.65) node[above] {$V$}; \draw[very thick] (0.65,5.6)--(0.74,5.06)--(0.83,4.7)--(0.93,4.44)--(1.02,4.25)--(1.12,4.1)--(1.3,3.9)--(1.49,3.77)--(1.68,3.68)--(1.96,3.59)--(2.25,3.54)--(3,3.45)--(4.23,3.4)--(6.3,3.37); \node[anchor=west,fill=white,inner sep=1pt] at (1.03,4.55) {$E = \frac{kq}{r^2}$}; \node[anchor=east] at (6.6,3.03) {\scriptsize out to $r = \infty$}; \draw[thick] (0.22,6.75)--(6.65,6.75); \draw[->,thick] (1.61,6.75)--(1.75,6.75); \draw[->,thick] (2.98,6.75)--(3.11,6.75); \draw[->,thick] (4.34,6.75)--(4.48,6.75); \draw[->,thick] (5.71,6.75)--(5.85,6.75); \node[anchor=west] at (6.7,6.75) {$\vec E$}; \fill[hot] (0,6.75) circle (0.22); \node[white] at (0,6.75) {\small$+$}; \node[hot] at (-0.48,6.75) {$q$};
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3.6s = "true", 25.9s = "true", repeats}}}]
\draw[very thick] (6.3,0.22)--(5.88,0.23);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 4.7s = "true", 25.9s = "true", repeats}}}]
\draw[very thick] (5.88,0.23)--(4.41,0.31);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 5.8s = "true", 25.9s = "true", repeats}}}]
\draw[very thick] (4.41,0.31)--(3.26,0.42);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.9s = "true", 25.9s = "true", repeats}}}]
\draw[very thick] (3.26,0.42)--(2.8,0.49)--(2.42,0.57);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 8s = "true", 25.9s = "true", repeats}}}]
\draw[very thick] (2.42,0.57)--(2.08,0.66)--(1.78,0.76);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 9.1s = "true", 25.9s = "true", repeats}}}]
\draw[very thick] (1.78,0.76)--(1.53,0.89)--(1.31,1.04);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 10.2s = "true", 25.9s = "true", repeats}}}]
\draw[very thick] (1.31,1.04)--(1.14,1.19)--(1,1.37);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 11.3s = "true", 25.9s = "true", repeats}}}]
\draw[very thick] (1,1.37)--(0.89,1.54)--(0.79,1.73);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 5.8s = "true", 25.9s = "true", repeats}}}]
\node[anchor=west,fill=white,inner sep=1pt] at (3.68,0.75) {$V = \frac{kq}{r}$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3.6s = "true", 19.9s = "false", 25.9s = "false", repeats}}}]
\node[anchor=west,fill=white,inner sep=1pt] at (2.73,5.2) {green area $= \int_r^\infty E\,d\tilde r$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3.6s = "true", 4.7s = "false", 25.9s = "false", repeats}}}]
\draw[densely dotted] (5.88,6.65)--(5.88,0); \draw[grn,line width=3pt] (5.88,0)--(5.88,0.23); \fill (5.88,0.23) circle (0.075); \fill (5.88,3.38) circle (0.075); \fill (5.88,6.75) circle (0.085); \node at (5.88,7.07) {P}; \draw[->,very thick,prp] (5.88,6.45)--(5.28,6.45); \node[prp] at (5.58,6.17) {\scriptsize $d\vec s$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 4.7s = "true", 5.8s = "false", 25.9s = "false", repeats}}}]
\draw[densely dotted] (4.41,6.65)--(4.41,0); \draw[grn,line width=3pt] (4.41,0)--(4.41,0.31); \fill (4.41,0.31) circle (0.075); \fill (4.41,3.4) circle (0.075); \fill (4.41,6.75) circle (0.085); \node at (4.41,7.07) {P}; \draw[->,very thick,prp] (4.41,6.45)--(3.81,6.45); \node[prp] at (4.11,6.17) {\scriptsize $d\vec s$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 5.8s = "true", 6.9s = "false", 25.9s = "false", repeats}}}]
\draw[densely dotted] (3.26,6.65)--(3.26,0); \draw[grn,line width=3pt] (3.26,0)--(3.26,0.42); \fill (3.26,0.42) circle (0.075); \fill (3.26,3.44) circle (0.075); \fill (3.26,6.75) circle (0.085); \node at (3.26,7.07) {P}; \draw[->,very thick,prp] (3.26,6.45)--(2.66,6.45); \node[prp] at (2.96,6.17) {\scriptsize $d\vec s$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.9s = "true", 8s = "false", 25.9s = "false", repeats}}}]
\draw[densely dotted] (2.42,6.65)--(2.42,0); \draw[grn,line width=3pt] (2.42,0)--(2.42,0.57); \fill (2.42,0.57) circle (0.075); \fill (2.42,3.51) circle (0.075); \fill (2.42,6.75) circle (0.085); \node at (2.42,7.07) {P}; \draw[->,very thick,prp] (2.42,6.45)--(1.81,6.45); \node[prp] at (2.12,6.17) {\scriptsize $d\vec s$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 8s = "true", 9.1s = "false", 25.9s = "false", repeats}}}]
\draw[densely dotted] (1.78,6.65)--(1.78,0); \draw[grn,line width=3pt] (1.78,0)--(1.78,0.76); \fill (1.78,0.76) circle (0.075); \fill (1.78,3.64) circle (0.075); \fill (1.78,6.75) circle (0.085); \node at (1.78,7.07) {P}; \draw[->,very thick,prp] (1.78,6.45)--(1.19,6.45); \node[prp] at (1.48,6.17) {\scriptsize $d\vec s$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 9.1s = "true", 10.2s = "false", 25.9s = "false", repeats}}}]
\draw[densely dotted] (1.31,6.65)--(1.31,0); \draw[grn,line width=3pt] (1.31,0)--(1.31,1.04); \fill (1.31,1.04) circle (0.075); \fill (1.31,3.89) circle (0.075); \fill (1.31,6.75) circle (0.085); \node at (1.31,7.07) {P}; \draw[->,very thick,prp] (1.31,6.45)--(0.71,6.45); \node[prp] at (1.01,6.17) {\scriptsize $d\vec s$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 10.2s = "true", 11.3s = "false", 25.9s = "false", repeats}}}]
\draw[densely dotted] (1,6.65)--(1,0); \draw[grn,line width=3pt] (1,0)--(1,1.37); \fill (1,1.37) circle (0.075); \fill (1,4.29) circle (0.075); \fill (1,6.75) circle (0.085); \node at (1,7.07) {P}; \draw[->,very thick,prp] (1,6.45)--(0.4,6.45); \node[prp] at (0.7,6.17) {\scriptsize $d\vec s$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 11.3s = "true", 14.7s = "false", 25.9s = "false", repeats}}}]
\draw[densely dotted] (0.79,6.65)--(0.79,0); \draw[grn,line width=3pt] (0.79,0)--(0.79,1.73); \fill (0.79,1.73) circle (0.075); \fill (0.79,4.86) circle (0.075); \fill (0.79,6.75) circle (0.085); \node at (0.79,7.07) {P}; \draw[->,very thick,prp] (0.79,6.45)--(0.19,6.45); \node[prp] at (0.49,6.17) {\scriptsize $d\vec s$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 14.7s = "true", 15.8s = "false", 25.9s = "false", repeats}}}]
\draw[densely dotted] (1.05,6.65)--(1.05,0); \draw[grn,line width=3pt] (1.05,0)--(1.05,1.3); \fill (1.05,1.3) circle (0.075); \fill (1.05,4.2) circle (0.075); \fill (1.05,6.75) circle (0.085); \node at (1.05,7.07) {P}; \draw[->,very thick,prp] (1.05,6.45)--(1.65,6.45); \node[prp] at (1.35,6.17) {\scriptsize $d\vec s$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 15.8s = "true", 16.9s = "false", 25.9s = "false", repeats}}}]
\draw[densely dotted] (1.63,6.65)--(1.63,0); \draw[grn,line width=3pt] (1.63,0)--(1.63,0.84); \fill (1.63,0.84) circle (0.075); \fill (1.63,3.7) circle (0.075); \fill (1.63,6.75) circle (0.085); \node at (1.63,7.07) {P}; \draw[->,very thick,prp] (1.63,6.45)--(2.23,6.45); \node[prp] at (1.93,6.17) {\scriptsize $d\vec s$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 16.9s = "true", 19.9s = "false", 25.9s = "false", repeats}}}]
\draw[densely dotted] (2.52,6.65)--(2.52,0); \draw[grn,line width=3pt] (2.52,0)--(2.52,0.54); \fill (2.52,0.54) circle (0.075); \fill (2.52,3.5) circle (0.075); \fill (2.52,6.75) circle (0.085); \node at (2.52,7.07) {P}; \draw[->,very thick,prp] (2.52,6.45)--(3.12,6.45); \node[prp] at (2.82,6.17) {\scriptsize $d\vec s$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 19.9s = "true", 25.9s = "true", repeats}}}]
\draw[densely dotted] (2.52,6.65)--(2.52,0); \draw[densely dotted] (1.05,6.65)--(1.05,0); \draw[grn,line width=3pt] (2.52,0)--(2.52,0.54); \draw[grn,line width=3pt] (1.05,0)--(1.05,0.54); \draw[prp,line width=3pt] (1.05,0.54)--(1.05,1.3); \draw[densely dashed] (1.05,0.54)--(2.52,0.54); \fill (2.52,0.54) circle (0.075); \fill (1.05,1.3) circle (0.075); \node[anchor=north west] at (2.58,0.5) {\scriptsize $V_A$}; \node[anchor=east] at (0.95,1.3) {\scriptsize $V_B$}; \node[anchor=west,prp] at (1.45,1.42) {\scriptsize $V_B - V_A$}; \draw[prp] (1.47,1.34)--(1.13,0.92); \fill (2.52,6.75) circle (0.085); \node at (2.52,7.07) {A}; \fill (1.05,6.75) circle (0.085); \node at (1.05,7.07) {B}; \draw[->,very thick,prp] (2.37,6.45)--(1.2,6.45); \node[prp] at (1.79,6.17) {\scriptsize $d\vec s$}; \node[prp,anchor=west,fill=white,inner sep=1pt] at (2.73,5.2) {purple area $= V_B - V_A$}; \draw[prp,thick] (2.73,5.15)--(1.68,3.55);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "true", 3.6s = "false", 25.9s = "false", repeats}}}]
\node[anchor=north,align=center] at (3.2,-0.6) {A positive charge $q$ has the field $E = kq/r^2$, with $k = 1/4\pi\varepsilon_0$.\\ The zero of $V$ is at infinity.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3.6s = "true", 4.7s = "false", 25.9s = "false", repeats}}}]
\node[anchor=north,align=center] at (3.2,-0.6) {Bring P in from far away. $V(r) = -\int_\infty^r E\,d\tilde r$ is the green area\\ under $E$ from $r$ out to infinity. The green bar shows that value.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 4.7s = "true", 11.3s = "false", 25.9s = "false", repeats}}}]
\node[anchor=north,align=center] at (3.2,-0.6) {P moves against $\vec E$, so each step has $\vec E\cdot d\vec s < 0$.\\ The green area grows, and $V$ rises.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 11.3s = "true", 14.7s = "false", 25.9s = "false", repeats}}}]
\node[anchor=north,align=center] at (3.2,-0.6) {Near the charge the area is large. At every $r$ it equals $kq/r$,\\ the height of the $V$ curve.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 14.7s = "true", 19.9s = "false", 25.9s = "false", repeats}}}]
\node[anchor=north,align=center] at (3.2,-0.6) {Now P moves along $\vec E$, so each step has $\vec E\cdot d\vec s > 0$.\\ The green area shrinks, and $V$ falls.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 19.9s = "true", 25.9s = "true", repeats}}}]
\node[anchor=north,align=center] at (3.2,-0.6) {For two points, $V_B - V_A = -\int_A^B \vec E\cdot d\vec s$ is the purple area between them.\\ B is closer to $q$, so $V_B > V_A$.};
\end{scope}
\end{tikzpicture}
\end{document}

A point moves outward from the charge through the cavity, the metal, and the region outside. The graphs trace and in each region.

\usepackage{tikz}
\usetikzlibrary{animations}
\begin{document}
\makeatletter\@ifundefined{pgf@sys@id@count}{}{\global\pgf@sys@id@count=68000\relax}\@ifundefined{pgf@sys@svg@objectcount}{}{\global\pgf@sys@svg@objectcount=68000\relax}\makeatother
\definecolor{hot}{HTML}{D9483B}
\definecolor{cold}{HTML}{2F80ED}
\definecolor{mid}{HTML}{8A8A8A}
\begin{tikzpicture}[font=\small, >=latex]
\path (-3.2,-4.25) rectangle (9.3,3.45);
\fill[mid,even odd rule] (0,0) circle (1.6) (0,0) circle (1.0); \draw[thick] (0,0) circle (1.0); \draw[thick] (0,0) circle (1.6);
\draw[thick] (0.23,0.06) -- (0.97,0.26); \draw[->,thick] (0.58,0.15) -- (0.69,0.19); \draw[thick] (1.55,0.41) -- (2.95,0.79); \draw[->,thick] (2.12,0.57) -- (2.23,0.60); \fill[cold] (1.10,0.30) circle (0.11); \fill[hot] (1.41,0.38) circle (0.11); \draw[thick] (0.17,0.17) -- (0.71,0.71); \draw[->,thick] (0.42,0.42) -- (0.51,0.51); \draw[thick] (1.13,1.13) -- (2.16,2.16); \draw[->,thick] (1.55,1.55) -- (1.64,1.64); \fill[cold] (0.81,0.81) circle (0.11); \fill[hot] (1.03,1.03) circle (0.11); \draw[thick] (0.06,0.23) -- (0.26,0.97); \draw[->,thick] (0.15,0.58) -- (0.19,0.69); \draw[thick] (0.41,1.55) -- (0.79,2.95); \draw[->,thick] (0.57,2.12) -- (0.60,2.23); \fill[cold] (0.30,1.10) circle (0.11); \fill[hot] (0.38,1.41) circle (0.11); \draw[thick] (-0.06,0.23) -- (-0.26,0.97); \draw[->,thick] (-0.15,0.58) -- (-0.19,0.69); \draw[thick] (-0.41,1.55) -- (-0.79,2.95); \draw[->,thick] (-0.57,2.12) -- (-0.60,2.23); \fill[cold] (-0.30,1.10) circle (0.11); \fill[hot] (-0.38,1.41) circle (0.11); \draw[thick] (-0.17,0.17) -- (-0.71,0.71); \draw[->,thick] (-0.42,0.42) -- (-0.51,0.51); \draw[thick] (-1.13,1.13) -- (-2.16,2.16); \draw[->,thick] (-1.55,1.55) -- (-1.64,1.64); \fill[cold] (-0.81,0.81) circle (0.11); \fill[hot] (-1.03,1.03) circle (0.11); \draw[thick] (-0.23,0.06) -- (-0.97,0.26); \draw[->,thick] (-0.58,0.15) -- (-0.69,0.19); \draw[thick] (-1.55,0.41) -- (-2.95,0.79); \draw[->,thick] (-2.12,0.57) -- (-2.23,0.60); \fill[cold] (-1.10,0.30) circle (0.11); \fill[hot] (-1.41,0.38) circle (0.11); \draw[thick] (-0.23,-0.06) -- (-0.97,-0.26); \draw[->,thick] (-0.58,-0.15) -- (-0.69,-0.19); \draw[thick] (-1.55,-0.41) -- (-2.95,-0.79); \draw[->,thick] (-2.12,-0.57) -- (-2.23,-0.60); \fill[cold] (-1.10,-0.30) circle (0.11); \fill[hot] (-1.41,-0.38) circle (0.11); \draw[thick] (-0.17,-0.17) -- (-0.71,-0.71); \draw[->,thick] (-0.42,-0.42) -- (-0.51,-0.51); \draw[thick] (-1.13,-1.13) -- (-2.16,-2.16); \draw[->,thick] (-1.55,-1.55) -- (-1.64,-1.64); \fill[cold] (-0.81,-0.81) circle (0.11); \fill[hot] (-1.03,-1.03) circle (0.11); \draw[thick] (-0.06,-0.23) -- (-0.26,-0.97); \draw[->,thick] (-0.15,-0.58) -- (-0.19,-0.69); \draw[thick] (-0.41,-1.55) -- (-0.79,-2.95); \draw[->,thick] (-0.57,-2.12) -- (-0.60,-2.23); \fill[cold] (-0.30,-1.10) circle (0.11); \fill[hot] (-0.38,-1.41) circle (0.11); \draw[thick] (0.06,-0.23) -- (0.26,-0.97); \draw[->,thick] (0.15,-0.58) -- (0.19,-0.69); \draw[thick] (0.41,-1.55) -- (0.79,-2.95); \draw[->,thick] (0.57,-2.12) -- (0.60,-2.23); \fill[cold] (0.30,-1.10) circle (0.11); \fill[hot] (0.38,-1.41) circle (0.11); \draw[thick] (0.17,-0.17) -- (0.71,-0.71); \draw[->,thick] (0.42,-0.42) -- (0.51,-0.51); \draw[thick] (1.13,-1.13) -- (2.16,-2.16); \draw[->,thick] (1.55,-1.55) -- (1.64,-1.64); \fill[cold] (0.81,-0.81) circle (0.11); \fill[hot] (1.03,-1.03) circle (0.11); \draw[thick] (0.23,-0.06) -- (0.97,-0.26); \draw[->,thick] (0.58,-0.15) -- (0.69,-0.19); \draw[thick] (1.55,-0.41) -- (2.95,-0.79); \draw[->,thick] (2.12,-0.57) -- (2.23,-0.60); \fill[cold] (1.10,-0.30) circle (0.11); \fill[hot] (1.41,-0.38) circle (0.11);
\foreach \ang in {15,45,...,345} {\node[white] at (\ang:1.1400000000000001) {\tiny$-$}; \node[white] at (\ang:1.46) {\tiny$+$};}
\fill[hot] (0.00,0.00) circle (0.22); \node[white] at (0.00,0.00) {\small$+$};
\node[hot] at (0,0.48) {\scriptsize $q$};
\node at (0,-0.84) {\scriptsize $a$}; \node at (0,-1.82) {\scriptsize $b$};
\draw[->] (4.00,0.60) -- (8.66,0.60) node[right] {$r$}; \draw[->] (4.00,0.60) -- (4.00,3.10) node[above] {$E$};
\fill[mid] (5.30,0.54) rectangle (6.08,0.66);
\draw[->] (4.00,-3.20) -- (8.66,-3.20) node[right] {$r$}; \draw[->] (4.00,-3.20) -- (4.00,-0.70) node[above] {$V$};
\fill[mid] (5.30,-3.26) rectangle (6.08,-3.14);
\draw[densely dotted] (5.30,-3.20) -- (5.30,2.90); \node[below] at (5.30,-3.25) {\scriptsize $a$};
\draw[densely dotted] (6.08,-3.20) -- (6.08,2.90); \node[below] at (6.08,-3.25) {\scriptsize $b$};
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 9.5s = "true", 18.9s = "true", repeats}}}]
\node at (7.12,1.10) {\scriptsize $kq/r^2$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 9.5s = "true", 18.9s = "true", repeats}}}]
\node at (7.12,-2.51) {\scriptsize $kq/r$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.9s = "true", 18.9s = "true", repeats}}}]
\node at (5.69,-2.39) {\scriptsize $kq/b$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3s = "true", 4.3s = "false", 18.9s = "false", repeats}}}]
\draw[very thick] (4.92,2.90) -- (4.94,2.82); \draw[very thick] (4.47,-1.04) -- (4.56,-1.43) -- (4.66,-1.77) -- (4.79,-2.05) -- (4.94,-2.29); \fill (4.94,2.82) circle (0.08); \fill (4.94,-2.29) circle (0.08); \draw[thick] (0.22,0) -- (0.72,0.00); \fill (0.72,0.00) circle (0.08);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 4.3s = "true", 5.6s = "false", 18.9s = "false", repeats}}}]
\draw[very thick] (4.92,2.90) -- (5.09,2.23); \draw[very thick] (4.47,-1.04) -- (4.58,-1.51) -- (4.71,-1.90) -- (4.88,-2.21) -- (5.09,-2.47); \fill (5.09,2.23) circle (0.08); \fill (5.09,-2.47) circle (0.08); \draw[thick] (0.22,0) -- (0.84,0.00); \fill (0.84,0.00) circle (0.08);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 5.6s = "true", 6.9s = "false", 18.9s = "false", repeats}}}]
\draw[very thick] (4.92,2.90) -- (5.06,2.33) -- (5.23,1.87); \draw[very thick] (4.47,-1.04) -- (4.60,-1.58) -- (4.76,-2.00) -- (4.97,-2.33) -- (5.23,-2.59); \fill (5.23,1.87) circle (0.08); \fill (5.23,-2.59) circle (0.08); \draw[thick] (0.22,0) -- (0.95,0.00); \fill (0.95,0.00) circle (0.08);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.9s = "true", 8.2s = "false", 18.9s = "false", repeats}}}]
\draw[very thick] (4.92,2.90) -- (5.09,2.23) -- (5.19,1.98) -- (5.30,1.75); \draw[very thick] (5.30,0.60) -- (5.56,0.60); \draw[very thick] (4.47,-1.04) -- (4.55,-1.41) -- (4.65,-1.73) -- (4.76,-2.00) -- (4.89,-2.23) -- (5.08,-2.45) -- (5.30,-2.64) -- (5.56,-2.64); \draw[densely dashed] (5.30,0.60) -- (5.30,1.75); \fill (5.56,0.60) circle (0.08); \fill (5.56,-2.64) circle (0.08); \draw[thick] (0.22,0) -- (1.20,0.00); \fill (1.20,0.00) circle (0.08);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 8.2s = "true", 9.5s = "false", 18.9s = "false", repeats}}}]
\draw[very thick] (4.92,2.90) -- (5.09,2.23) -- (5.19,1.98) -- (5.30,1.75); \draw[very thick] (5.30,0.60) -- (5.85,0.60); \draw[very thick] (4.47,-1.04) -- (4.56,-1.46) -- (4.68,-1.83) -- (4.83,-2.13) -- (5.00,-2.37) -- (5.14,-2.51) -- (5.30,-2.64) -- (5.85,-2.64); \draw[densely dashed] (5.30,0.60) -- (5.30,1.75); \fill (5.85,0.60) circle (0.08); \fill (5.85,-2.64) circle (0.08); \draw[thick] (0.22,0) -- (1.42,0.00); \fill (1.42,0.00) circle (0.08);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 9.5s = "true", 10.8s = "false", 18.9s = "false", repeats}}}]
\draw[very thick] (4.92,2.90) -- (5.09,2.23) -- (5.19,1.98) -- (5.30,1.75); \draw[very thick] (5.30,0.60) -- (6.08,0.60); \draw[very thick] (6.08,1.05) -- (6.41,0.94); \draw[very thick] (4.47,-1.04) -- (4.59,-1.55) -- (4.73,-1.95) -- (4.93,-2.28) -- (5.16,-2.53) -- (5.30,-2.64) -- (6.08,-2.64) -- (6.41,-2.71); \draw[densely dashed] (5.30,0.60) -- (5.30,1.75); \draw[densely dashed] (6.08,0.60) -- (6.08,1.05); \fill (6.41,0.94) circle (0.08); \fill (6.41,-2.71) circle (0.08); \draw[thick] (0.22,0) -- (1.85,0.00); \fill (1.85,0.00) circle (0.08);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 10.8s = "true", 12.1s = "false", 18.9s = "false", repeats}}}]
\draw[very thick] (4.92,2.90) -- (5.09,2.23) -- (5.19,1.98) -- (5.30,1.75); \draw[very thick] (5.30,0.60) -- (6.08,0.60); \draw[very thick] (6.08,1.05) -- (6.49,0.91) -- (6.99,0.82); \draw[very thick] (4.47,-1.04) -- (4.61,-1.62) -- (4.78,-2.04) -- (5.00,-2.37) -- (5.29,-2.63) -- (6.08,-2.64) -- (6.50,-2.73) -- (6.99,-2.81); \draw[densely dashed] (5.30,0.60) -- (5.30,1.75); \draw[densely dashed] (6.08,0.60) -- (6.08,1.05); \fill (6.99,0.82) circle (0.08); \fill (6.99,-2.81) circle (0.08); \draw[thick] (0.22,0) -- (2.30,0.00); \fill (2.30,0.00) circle (0.08);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 12.1s = "true", 13.4s = "false", 18.9s = "false", repeats}}}]
\draw[very thick] (4.92,2.90) -- (5.09,2.23) -- (5.19,1.98) -- (5.30,1.75); \draw[very thick] (5.30,0.60) -- (6.08,0.60); \draw[very thick] (6.08,1.05) -- (6.34,0.95) -- (6.68,0.87) -- (7.09,0.80) -- (7.58,0.75); \draw[very thick] (4.47,-1.04) -- (4.60,-1.60) -- (4.78,-2.04) -- (4.90,-2.23) -- (5.01,-2.38) -- (5.30,-2.64) -- (6.08,-2.64) -- (6.72,-2.77) -- (7.58,-2.87); \draw[densely dashed] (5.30,0.60) -- (5.30,1.75); \draw[densely dashed] (6.08,0.60) -- (6.08,1.05); \fill (7.58,0.75) circle (0.08); \fill (7.58,-2.87) circle (0.08); \draw[thick] (0.22,0) -- (2.75,0.00); \fill (2.75,0.00) circle (0.08);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 13.4s = "true", 14.7s = "false", 18.9s = "false", repeats}}}]
\draw[very thick] (4.92,2.90) -- (5.09,2.23) -- (5.19,1.98) -- (5.30,1.75); \draw[very thick] (5.30,0.60) -- (6.08,0.60); \draw[very thick] (6.08,1.05) -- (6.44,0.93) -- (6.86,0.84) -- (7.43,0.77) -- (8.16,0.71); \draw[very thick] (4.47,-1.04) -- (4.61,-1.61) -- (4.79,-2.06) -- (4.91,-2.25) -- (5.02,-2.39) -- (5.30,-2.64) -- (6.08,-2.64) -- (6.48,-2.73) -- (6.94,-2.80) -- (8.16,-2.92); \draw[densely dashed] (5.30,0.60) -- (5.30,1.75); \draw[densely dashed] (6.08,0.60) -- (6.08,1.05); \fill (8.16,0.71) circle (0.08); \fill (8.16,-2.92) circle (0.08); \draw[thick] (0.22,0) -- (3.20,0.00); \fill (3.20,0.00) circle (0.08);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 14.7s = "true", 18.9s = "true", repeats}}}]
\draw[very thick] (4.92,2.90) -- (5.09,2.23) -- (5.19,1.98) -- (5.30,1.75); \draw[very thick] (5.30,0.60) -- (6.08,0.60); \draw[very thick] (6.08,1.05) -- (6.48,0.92) -- (6.93,0.83) -- (7.56,0.75) -- (8.36,0.70); \draw[very thick] (4.47,-1.04) -- (4.61,-1.63) -- (4.78,-2.05) -- (5.00,-2.37) -- (5.15,-2.52) -- (5.30,-2.64) -- (6.08,-2.64) -- (6.51,-2.73) -- (7.02,-2.81) -- (8.36,-2.93); \draw[densely dashed] (5.30,0.60) -- (5.30,1.75); \draw[densely dashed] (6.08,0.60) -- (6.08,1.05);
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "true", 3s = "false", 18.9s = "false", repeats}}}]
\node[anchor=north,align=center] at (3.00,-3.70) {A point charge $q$ sits inside an uncharged conducting shell with radii $a$ and $b$.\\ Here $k = 1/4\pi\varepsilon_0$.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3s = "true", 6.9s = "false", 18.9s = "false", repeats}}}]
\node[anchor=north,align=center] at (3.00,-3.70) {In the cavity, $E = kq/r^2$ and $V = kq\left(\frac{1}{r} - \frac{1}{a} + \frac{1}{b}\right)$.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.9s = "true", 9.5s = "false", 18.9s = "false", repeats}}}]
\node[anchor=north,align=center] at (3.00,-3.70) {In the metal, $E = 0$. So $V$ stays flat at $kq/b$.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 9.5s = "true", 14.7s = "false", 18.9s = "false", repeats}}}]
\node[anchor=north,align=center] at (3.00,-3.70) {Outside, $E = kq/r^2$ and $V = kq/r$, as if the shell were absent.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 14.7s = "true", 18.9s = "true", repeats}}}]
\node[anchor=north,align=center] at (3.00,-3.70) {$E$ jumps at each surface charge. $V = \int_r^\infty E\,dr$ has no jumps.};
\end{scope}
\end{tikzpicture}
\end{document}

Derivation

Start from the definition of potential. A test charge moves from A to B, and the electric force does the work

The potential energy changes by . Dividing by removes the test charge:

The electric force is conservative, so every path from A to B gives the same value.

For a uniform field , each step has . The tilde marks the integration variable, so it differs from the limit . From the reference point to ,

For the infinite line, Gauss’s law gives , pointing straight away from the line. A radial path has . From the reference distance to ,

The two natural choices of zero both fail. With , the ratio is infinite. With , the ratio is zero, and is infinite. So must be a finite distance, and fixes it.

For the conducting shell, 3.3.3a Conducting Shells gives the field in three regions. In the cavity and outside the shell, . In the metal, . Integrate from the reference point at infinity inward to the point at radius , along a radial path.

  • Outside, , the whole path lies outside the shell:
  • In the metal, , split the integral at . The piece from to is the outside result at . The piece from to is zero, because there:
  • In the cavity, , split at and at . The first two pieces give . The last piece runs from to :

Properties

(Choose the Easiest Path) The integral is the same for every path, so the path can be chosen to make simple.

For a radial field, a radial path gives . For a uniform field, a path along the field gives . Any leg that runs across the field adds nothing, because on it. Two points at the same distance from a line charge lie on one cylinder around the line. A path on that cylinder has at every step, so the two points have the same potential.

(Zero Field in the Metal) Where , the potential is constant, and that constant is usually nonzero.

A common mistake sets inside the metal of the shell, because there. The zero field only means that does not change across the metal. The value of there comes from the region outside, . A field given piece by piece always needs the integral split at each boundary. Every piece between the reference point and P stays in the sum.

(No Jumps in the Potential) The potential is continuous at a charged surface, even where the field jumps.

The change in across a thin layer is the integral of a finite field over a short distance. Across a layer of thickness , it is at most . As shrinks to zero, so does the change. At the shell’s field jumps from to zero. The potential only changes its slope there. A graph of has corners at and and no gaps.

(No Zero at Infinity for a Line) An infinite line has no natural zero of potential because it carries an infinite total charge.

A point charge’s field falls as , and its integral out to infinity is finite. The line’s field falls only as , and grows without limit. The leftover distance never changes a physical result. It cancels in every potential difference, . A real wire has a finite length. Far from it the potential does fall to zero, as 3.4.4b Electric Potential of a Continuous Charge Distribution shows.

Examples

(Easy) A Diagonal Move

A uniform field of points along . Point A is at the origin, and point B is at .

(Medium) Two Distances From a Charged Wire

A long straight wire carries .

Not Taught in Lecture

Lecture worked only a neutral shell. The next example gives the shell its own net charge, as in Giancoli chapter 23.

(Hard) A Charged Shell Around a Charge

A point charge sits at the center of a metal shell. The shell has inner radius and outer radius . It carries its own net charge . Take at infinity.

Not Taught in Lecture

Lecture found the field of a uniformly charged ball but not its potential. The next example follows Giancoli chapter 23.

(Hard) Inside a Charged Ball

An insulating ball of radius carries spread evenly through its volume. Take at infinity.

See Also