I'm trying to understand what happens, when the capacity of a capacitor connected to a battery changes.
I have this circuit formed by a battery that provides a potential difference of $\Delta V$ and a capacitor with capacity $C$, and I want to compute the work necessary to increase the distance between the parallel plates from $d$ to $2d$.
In this situation $\Delta V$ between the plates remains the same as that provided by the battery, so $C$ becomes $\frac{C}{2}$. Therefore, the potential energy stored in the capacitor changes:
$$\Delta U = \frac{1}{2}(\Delta V)^2(C_f-C)=-\frac{1}{4}(\Delta V)^2C \ .$$
Since, $C_f$ became half of $C$, the capacitor can now accumulate only half of the initial charge $Q=C \Delta V$, so half of that charge needs to be moved.
What I don't understand is what happens now: I seem to understand that the battery does an additional work:
$$W=\frac{Q}{2}\Delta V \ ,$$
but I don't understand why since I don't really get what physically happens. Before all of this happens we have a charge $Q$ on the plate of the capacitor that is connected to the positive pole of the battery, and an induced charge $-Q$ on the other plate. Does the positive charge $Q$ go back to the positive pole of the battery?
Does it need to be brought back to the negative pole?