Electronic – Strange behavior when connecting ideal voltage-source and capacitor in series

capacitor

I just learn from youtube video that if capacitor is connected with ideal voltage source in series, its voltage graph would be like this :
enter image description here

(Sorry, but adding as picture is much better than drawing it by myself)

What I can't understand is that when Vin goes high, why does Vout goes high, too? One side of capacitor could go high because voltage source draw electrons from capacitor, but other side of capacitor is floating state!..

I have no idea how I can interpret it.

Thanks

Best Answer

At the time of switch-on the charge on the capacitor is zero and the voltage across it is zero.

After switch-on the charge on the capacitor is still zero (and the voltage across it is still zero). At this point, however, the left side of the capacitor has risen to 1 V so the right side must also.

The situation changes if you add a resistor to the Vout terminals. The right side of the capacitor will jump up with the left side but will discharge to 0 V at a rate determined by R x C. The final state will be 1 V across the capacitor.