Energy lost in Capacitors [duplicate]

Suppose there are two identical capacitors of capacitance C and one of them is charged to a potential V and gets a charge q. The energy stored in this capacitor is $1/2cv^2$ or $q^2/2c$ . Now this capacitor is connected with the uncharged capacitor. Now the net energy of this system will be $q^2/4c$ . How is the other half of the energy lost ? Where does it go ?

• it go to the uncharged capacitor ? Energy is never lost ! Apr 19 '18 at 14:25
• Of course energy is lost in some form. We can say that from the above equations. I just want to know where the other half goes Apr 19 '18 at 14:28
• Each capacitor will only have half the charge. Apr 19 '18 at 14:43
• The only energy loss is in the resistance of the wiring - which is not being shown in the equations in the OP. Meanwhile, the second equation applies to both capacitors, not just the second. So, like oldfart says, the energy is split among both capacitors. Apr 19 '18 at 16:01

To expand on Spehro's answer, let's assume a superconducting capacitor and wires. Then, when connection is made, charge will start flowing from the first cap to the second. When the voltage is equal, current will not, due to the inductance of the wires. Instead, the first cap will completely discharge, and the second will fully charge. At this point, the process will repeat in reverse. The result will be a sinusoidal oscillation with frequency $$f = \frac{1}{2{\pi LC}}$$ where L is the inductance of the entire system, including wires and internal capacitor structure.