Electrodynamics/Electric Energy
Introduction
Many objects in this universe are conservative, the charge of the universe for instance always remains constant. This is called Global Conservation of Charge. But also, if you take a defined area, then the charge in that also remains constant unless some is leaving through it's boundary. And if some charge is moving through the boundary, then it must be equal to the change in charge in the volume. Just like if you and your friends are in a room, you cannot just not be in the room, you must go out the door.
This is called Local Conservation of Charge.
Charge Conservation
Let's look at the total charge inside a Volume V:
And going from what was said in the introduction and that the current travelling through a surface is:
We see that,
Then by using the divergence theorem, we get the law of local conservation of charge
Conservation of Energy
Where