During the sharing of charges between the different bodies no net loss of charge takes place. During this process some energy is disappeared in the form of heat. But some amount of energy is scattered in sharing between these charges.Now if we want to calculate the total loss of energy during the process then we have to take two capacitors having capacity C1, C2.These also have their distinct potentials say V1 and V2. As we have discussed above that the charge always flows from the capacitor having higher potential to the capacitor having less potential.
So, their common potential is given by the equation below:
V=(C1V1+C2V2) / C1+C2
Total energy of the system will be given by:
From the above equations we have find that E1 – E2 > 0
Or E1> E2
Or E2 < E1
The above results shows that some loss of energy takes place when the bodies are in communication with each other. This energy wastage or scattering is in the form of heat and sparking in the wire connecting the two conductors with each other.