A friend is trying to derive the equation for the energy stored in a capacitor by analyzing the change in potential on one plate when the capacitor is shorted. However, I don't think this is valid. Could anyone explain why this is right or wrong?