Skip to main content
Physics LibreTexts

17.4: Energy of Electric and Magnetic Fields

  • Page ID
    32852
  • \( \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}\)

    In this section we calculate the energy stored by a capacitor and an inductor. It is most profitable to think of the energy in these cases as being stored in the electric and magnetic fields produced respectively in the capacitor and the inductor. From these calculations we compute the energy per unit volume in electric and magnetic fields. These results turn out to be valid for any electric and magnetic fields — not just those inside parallel plate capacitors and inductors!

    emenergy.png
    Figure \(\PageIndex{7}\):: Capacitor (left) and inductor (right) being charged respectively by constant sources of current and voltage.

    Let us first consider a capacitor starting in a discharged state at time \(t = 0\). A constant current i is caused to flow through the capacitor by some device such as a battery or a generator, as shown in the left panel of Figure \(\PageIndex{7}\):. As the capacitor charges up, the potential difference across it increases with time:

    \[\Delta \phi=\frac{q}{C}=\frac{i t}{C}\label{17.20}\]

    The EMF supplied by the generator has to increase to match this value.

    The generator does work on the positive charges moving around the circuit in the direction indicated by the arrow. We assume that \(\Delta \phi\) equals the EMF or work per unit charge done by the generator \(V\)G, so the work done in time \(dt\) by the generator is \(\mathrm{dW}=\mathrm{V}_{\mathrm{G}} \mathrm{dq}=\mathrm{V}_{\mathrm{G}} \text { idt }\). Using the equation for the potential difference across a capacitor, we see that the power input is

    \[ P=\frac{d W}{d t}=\Delta \phi i=\frac{i^{2} t}{C} . \label{17.21}\]

    Integrating this in time yields the total energy \(U\) E supplied to the capacitor by the generator:

    \[ U_{E}=\frac{i^{2} t^{2}}{2 C}=\frac{q^{2}}{2 C} \quad(\text { capacitor }) \label{17.22}\]

    Assuming that we have a parallel plate capacitor, let’s insert the formula for the capacitance of such a device, \(\mathrm{C}=\epsilon_{0} \mathrm{~S} / \mathrm{d}\). Let us further recall that the electric field in a parallel plate capacitor is \(\mathrm{E}=\sigma / \epsilon_{0}=\mathrm{q} /\left(\epsilon_{0} \mathrm{~S}\right), \text { so that } \mathrm{q}=\epsilon_{0} \mathrm{ES}\) and

    \[ U_{E}=\frac{\left(E \epsilon_{0} S\right)^{2}}{2\left(\epsilon_{0} S / d\right)}=\frac{\epsilon_{0} E^{2} S d}{2}\label{17.23}\]

    The combination \(Sd \) is just the volume between the capacitor plates. The energy density in the capacitor is therefore

    \[u_{E}=\frac{U_{E}}{S d}=\frac{\epsilon_{0} E^{2}}{2} \quad(\text { electric energy density })\label{17.24}\]

    This formula for the energy density in the electric field is specific to a parallel plate capacitor. However, it turns out to be valid for any electric field.

    A similar analysis of a current increasing from zero in an inductor yields the energy density in a magnetic field. Imagine that the generator in the right panel of Figure \(\PageIndex{7}\): produces a constant EMF, \(V\) G, starting at time \(t \) = 0 when the current is zero. The work done by the generator in time \(dt \) is \(dW \) = \(V\) G\(dq \) = \(V\) G\(idt \) so that the power is

    \[ P=\frac{d W}{d t}=V_{G} i=L i \frac{d i}{d t}=\frac{d}{d t}\left(\frac{L i^{2}}{2}\right)\label{17.25}\]

    We have assumed that the EMF supplied by the generator, \(V\) G, balances the voltage drop across the inductor: \(V\) G = Δ\(ϕ \) = \(L\) (\(di∕dt\) ).

    If we integrate the above equation in time, we get the energy added to the inductor as a result of increasing the current through it. Substituting the formula for the inductance of a parallel plate inductor, \(L \) = \(μ\) 0\(dl∕w\), we arrive at the equation for the energy stored by the inductor:

    \[ U_{B}=\frac{L i^{2}}{2}=\frac{\mu_{0} i^{2} l d}{2 w} \quad(\text { parallel plate inductor }) .\label{17.26}\]

    Finally, using the relationship between the current and the magnetic field in a parallel plate inductor, \(B \) = \(μ\) 0\(i∕w\), we can eliminate the current \(i \) and write

    \[ U_{B}=\frac{B^{2} l w d}{2 \mu_{0}}\label{17.27}\]

    The volume between the inductor plates is just \(dlw\), so again we can write an energy density, this time for the magnetic field:

    \[ u_{B}=\frac{U_{B}}{l w d}=\frac{B^{2}}{2 \mu_{0}} \quad \text { (magnetic energy density). } \label{17.28}\]

    Though we only proved this equation for the magnetic field inside a parallel plate inductor, it turns out to be true for any magnetic field.

    The total energy density is just the sum of the electric and magnetic energy densities:

    \[ u_{T}=u_{E}+u_{B}=\frac{\epsilon_{0} E^{2}}{2}+\frac{B^{2}}{2 \mu_{0}} \label{17.29}\]


    This page titled 17.4: Energy of Electric and Magnetic Fields is shared under a CC BY-NC-SA 3.0 license and was authored, remixed, and/or curated by David J. Raymond (The New Mexico Tech Press) via source content that was edited to the style and standards of the LibreTexts platform.