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}}\)

    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 17.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 17.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 17.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; a detailed edit history is available upon request.