A capacitor of capacitance C which is initially charged up to a potential differnce ε is connected with a battery of emf ε such that the positive terminal of the battery is connected with the positive plate of the capacitor. Find the heat loss in the circuit the process of charging.

