I'm having some trouble understanding a homework question and would appreciate some help.
The question is as follows:
Jenny charges a capacitor with the help of a battery. She then removes the battery and halves the distance between the two plates. How does the energy conserved in the capacitor change?
I solved the question like this:
$E=\frac{U}d$ and $U= \frac{W}Q$
$\implies W=EQd$
Hence, the energy doubles (as $E=\frac{U/d}2 \implies 2E=\frac{U}d$)
where:
$W$ = energy, $E$ = Electric field intensity, $Q$ = charge, $U$ = voltage, $d$ = distance
This answer doesn't make any sense to me, considering the law of conservation of energy (So, Where did all that energy come from?)
It also turns out that my answer is wrong, in fact the energy is halved. This also doesn't make any sense to me, what am I missing?
