Just as Equation 22-14 tells us that there is electric energy wherever there is an electric field, Equation 22-19 tells us that there is magnetic energy wherever there is a magnetic field. This is true for an inductor, so we can think of the energy stored in a current-carrying inductor as being stored in the magnetic field within the inductor. But Equation 22-19 is valid wherever there is a magnetic field.