Derivation of energy stored in a capacitor?

Derivation of energy stored in a capacitor?