Given:
Charge on the given capacitor,
Capacitance of the uncharged capacitor,
When the charged capacitor is connected with the uncharged capacitor, the net charge on the system of the capacitors becomes
The potential difference across the plates of the capacitors will be the same.
Thus,
From eqs. (i) and (ii), we get