During the initial charge of a capacitor up to its max charge Vo, the initial energy stored in the capacitor is 1/2(CVo)^2 . Show mathematically that this energy is equal to the total energy dissipated as heat in the resistance through which discharging the current flows.