How does the law of conservation of energy work in circuits? If we have a voltage source to which a resistor, capacitor, and an inductor are connected, will the kinetic energy of the electrons be consumed in the resistor, be stored in an inductor in the form of a magnetic field, and be stored in a capacitor in the form of an electric field? And if we add the three energies of the resistor, inductor, and capacitor, will the total energy be equal to the energy supplied by the voltage source? Is this the way the law of conservation of energy works in circuits?