capacitor & voltage source power transfer
It may be a voltage source but it can still take reverse current and the &quot;negative power&quot; goes back into the voltage source because the current is reversed. In a real supply this may not be possible of course (think voltage regulator) but, in something that behaves like an ideal voltage source, then energy is returned.