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 its 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.
Let's look at the total charge enclosed by a volume V:
We'll say that the charge inside V changes according to the equation
We could consider a current through a closed service, the boundary of V ( ) for example, which would be
We can now bring in the equation and relate it to the enclosed charge. We see that the corresponding equation is
Because there positive flux of the current density (charge leaving V) when the enclosed charge is decreasing.
We see that
Then by using the divergence theorem on the right hand side, we get the law of local conservation of charge or the continuity equation.
[Law of Local Conservation of Charge]
Conservation of EnergyEdit
[Law of Conservation of Energy]