B32: Calculating the Electric Field from the Electric Potential
- Page ID
- 7922
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)The plan here is to develop a relation between the electric field and the corresponding electric potential that allows you to calculate the electric field from the electric potential.
The electric field is the force-per-charge associated with empty points in space that have a forceper- charge because they are in the vicinity of a source charge or some source charges. The electric potential is the potential energy-per-charge associated with the same empty points in space. Since the electric field is the force-per-charge, and the electric potential is the potential energy-per-charge, the relation between the electric field and its potential is essentially a special case of the relation between any force and its associated potential energy. So, I’m going to start by developing the more general relation between a force and its potential energy, and then move on to the special case in which the force is the electric field times the charge of the victim and the potential energy is the electric potential times the charge of the victim.
The idea behind potential energy was that it represented an easy way of getting the work done by a force on a particle that moves from point \(A\) to point \(B\) under the influence of the force. By definition, the work done is the force along the path times the length of the path. If the force along the path varies along the path, then we take the force along the path at a particular point on the path, times the length of an infinitesimal segment of the path at that point, and repeat, for every infinitesimal segment of the path, adding the results as we go along. The final sum is the work. The potential energy idea represents the assignment of a value of potential energy to every point in space so that, rather than do the path integral just discussed, we simply subtract the value of the potential energy at point \(A\) from the value of the potential energy at point \(B\). This gives us the change in the potential energy experienced by the particle in moving from point \(A\) to point \(B\). Then, the work done is the negative of the change in potential energy. For this to be the case, the assignment of values of potential energy values to points in space must be done just right. For things to work out on a macroscopic level, we must ensure that they are correct at an infinitesimal level. We can do this by setting:
\[\mbox{Work as Change in Potential Energy= Work as Force-Along-Path times Path Length} \nonumber \]
\[-dU=\vec{F}\cdot \vec{ds} \nonumber \]
where:
- \(dU\) is an infinitesimal change in potential energy,
- \(\vec{F}\) is a force, and
- \(\vec{ds}\) is the infinitesimal displacement-along-the-path vector.
In Cartesian unit vector notation, \(\vec{ds}\) can be expressed as \(\vec{ds}=dx \hat{i}+dy \hat{j}+dz\hat{k}\), and \(\vec{F}\) can be expressed as \(\vec{F}=F_x\hat{i}+F_y\hat{j}+F_z\hat{k}\). Substituting these two expressions into our expression \(-dU=\vec{F}\cdot\vec{ds}\), we obtain:
\[-dU=(F_x\hat{i}+F_y\hat{j}+F_z\hat{k})\cdot (dx\hat{i}+dy\hat{j}+dz\hat{k}) \nonumber \]
\[-dU=F_x dx+F_y dy+F_z dz \nonumber \]
Now check this out. If we hold \(y\) and \(z\) constant (in other words, if we consider \(dy\) and \(dz\) to be zero) then:
\[\underbrace{-dU=F_x dx}_{ \mbox{when y and z are held constant}} \nonumber \]
Dividing both sides by \(dx\) and switching sides yields:
\[\underbrace{F_x=-\frac{dU}{dx}}_{ \mbox{when y and z are held contsant}} \nonumber \]
That is, if you have the potential energy as a function of \(x\), \(y\), and \(z\); and; you take the negative of the derivative with respect to \(x\) while holding y and z constant, you get the \(x\) component of the force that is characterized by the potential energy function. Taking the derivative of \(U\) with respect to \(x\) while holding the other variables constant is called taking the partial derivative of \(U\) with respect to \(x\) and written
\[\frac{\partial U}{\partial x} \nonumber \]
Alternatively, one writes
\[\frac{\partial U}{\partial x}\Big|_{y,z} \nonumber \]
to be read, “the partial derivative of \(U\) with respect to \(x\) holding \(y\) and \(z\) constant.” This latter expression makes it more obvious to the reader just what is being held constant. Rewriting our expression for \(F_x\) with the partial derivative notation, we have:
\[F_x=-\frac{\partial U}{\partial x} \nonumber \]
Returning to our expression \(-dU=F_x dx+F_y dy+F_z dz\), if we hold \(x\) and \(z\) constant we get:
\[F_y=-\frac{\partial U}{\partial y} \nonumber \]
and, if we hold \(x\) and \(y\) constant we get,
\[F_z=-\frac{\partial U}{\partial z} \nonumber \]
Substituting these last three results into the force vector expressed in unit vector notation:
\[\vec{F}=F_x \hat{i}+F_y \hat{j}+F_z \hat{k} \nonumber \]
yields
\[\vec{F}=-\frac{\partial U}{\partial x}\hat{i}-\frac{\partial U}{\partial y}\hat{j}-\frac{\partial U}{\partial z}\hat{k} \nonumber \]
which can be written:
\[\vec{F}=-\Big(\frac{\partial U}{\partial x}\hat{i}+\frac{\partial U}{\partial y}\hat{j}+\frac{\partial U}{\partial z}\hat{k}\Big) \nonumber \]
Okay, now, this business of:
- taking the partial derivative of \(U\) with respect to \(x\) and multiplying the result by the unit vector \(\hat{i}\) and then,
- taking the partial derivative of \(U\) with respect to \(y\) and multiplying the result by the unit vector \(\hat{j}\) and then,
- taking the partial derivative of \(U\) with respect to \(z\) and multiplying the result by the unit vector \(\hat{k}\), and then,
- adding all three partial-derivative-times-unit-vector quantities up,
is called “taking the gradient of \(U\) “ and is written \(\nabla U\). “Taking the gradient” is something that you do to a scalar function, but, the result is a vector. In terms of our gradient notation, we can write our expression for the force as,
\[\vec{F}=-\nabla U \label{32-1} \]
Check this out for the gravitational potential near the surface of the earth. Define a Cartesian coordinate system with, for instance, the origin at sea level, and, with the \(x\)-\(y\) plane being horizontal and the \(+z\) direction being upward. Then, the potential energy of a particle of mass \(m\) is given as:
\[U=mgz \nonumber \]
Now, suppose you knew this to be the potential but you didn’t know the force. You can calculate the force using \(\vec{F}=-\nabla U\), which, as you know, can be written:
\[\vec{F}=-\Big(\frac{\partial U}{\partial x}\hat{i}+\frac{\partial U}{\partial y}\hat{j}+\frac{\partial U}{\partial z} \hat{k}\Big) \nonumber \]
Substituting \(U=mgz\) in for \(U\) we have
\[\vec{F}=-\Big(\frac{\partial}{\partial x}(mgz)\hat{i}+\frac{\partial}{\partial y}(mgz)\hat{j}+\frac{\partial}{\partial z}(mgz)\hat{k}\Big) \nonumber \]
Now remember, when we take the partial derivative with respect to \(x\) we are supposed to hold \(y\) and \(z\) constant. (There is no \(y\).) But, if we hold \(z\) constant, then the whole thing \((mgz)\) is constant. And, the derivative of a constant, with respect to \(x\), is \(0\). In other words, \(\frac{\partial}{\partial x}(mgz)=0\). Likewise, \(\frac{\partial}{\partial y}(mgz)=0\). In fact, the only non zero partial derivative in our expression for the force is \(\frac{\partial}{\partial z}(mgz)=mg\). So:
\[\vec{F}=-(0\hat{i}+0\hat{j}+mg \hat{k}) \nonumber \]
In other words:
\[\vec{F}=-mg\hat{k} \nonumber \]
That is to say that, based on the gravitational potential \(U=mgz\), the gravitational force is in the \(\hat{k}\)direction (downward), and, is of magnitude mg. Of course, you knew this in advance, the gravitational force in question is just the weight force. The example was just meant to familiarize you with the gradient operator and the relation between force and potential energy.
Okay, as important as it is that you realize that we are talking about a general relationship between force and potential energy, it is now time to narrow the discussion to the case of the electric force and the electric potential energy, and, from there, to derive a relation between the electric field and electric potential (which is electric potential-energy-per-charge).
Starting with \(\vec{F}=-\nabla U\) written out the long way:
\[\vec{F}=-\Big(\frac{\partial U}{\partial x}\hat{i}+\frac{\partial U}{\partial y}\hat{j}+\frac{\partial U}{\partial z}\hat{k}\Big) \nonumber \]
we apply it to the case of a particle with charge \(q\) in an electric field \(\vec{E}\) (caused to exist in the region of space in question by some unspecified source charge or distribution of source charge). The electric field exerts a force \(\vec{F}=q\vec{E}\) on the particle, and, the particle has electric potential energy \(U=q \varphi\) where \(\varphi\) is the electric potential at the point in space at which the charged particle is located. Plugging these into \(\vec{F}=-\Big(\frac{\partial U}{\partial x}\hat{i}+\frac{\partial U}{\partial y}\hat{j}+\frac{\partial U}{\partial z}\hat{k}\Big)\) yields:
\[q\vec{E}=-\Big(\frac{\partial (q\varphi)}{\partial x}\hat{i}+\frac{\partial (q\varphi)}{\partial y}\hat{j}+\frac{\partial (q\varphi)}{\partial z}\hat{k}\Big) \nonumber \]
which I copy here for your convenience:
\[q\vec{E}=-\Big( \frac{\partial(q\varphi)}{\partial x}\hat{i}+\frac{\partial (q\varphi)}{\partial y}\hat{j}+\frac{\partial(q\varphi)}{\partial z}\hat{k}\Big) \nonumber \]
The \(q\) inside each of the partial derivatives is a constant so we can factor it out of each partial derivative.
\[q\vec{E}=-\Big(q\frac{\partial \varphi}{\partial x}\hat{i}+q\frac{\partial \varphi}{\partial y} \hat{j}+q\frac{\partial \varphi}{\partial z}\hat{k}\Big) \nonumber \]
Then, since \(q\) appears in every term, we can factor it out of the sum:
\[q\vec{E}=-q\Big(\frac{\partial \varphi}{\partial x}\hat{i}+\frac{\partial \varphi}{\partial y}\hat{j}+\frac{\partial \varphi}{\partial z}\hat{k}\Big) \nonumber \]
Dividing both sides by the charge of the victim yields the desired relation between the electric field and the electric potential:
\[\vec{E}=-\Big(\frac{\partial \varphi}{\partial x}\hat{i}+\frac{\partial \varphi}{\partial y}\hat{j}+\frac{\partial \varphi}{\partial z}\hat{k}\Big) \nonumber \]
We see that the electric field \(\vec{E}\) is just the gradient of the electric potential \(\varphi\). This result can be expressed more concisely by means of the gradient operator as:
\[\vec{E}=-\nabla \varphi \label{32-2} \]