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