Re: where does 1/2 come from in capacitor energy calculation
For a capacitor C=Q/V or Q=CV where C is the capacitance, Q is the charge on the capacitor, and V is the capacitor voltage.
Also, the energy to move a charge is E =QV where E is the energy, Q is the charge transferred, and V is the voltage it takes to transfer (move) that charge.
If you substitute from the capacitance equation, you get E = CV*V = CV².
(So where does the 1/2 come from)?
V is the final voltage on the capacitor but all the charges transferred to the capacitor did not require that final voltage to be transferred into the capacitor.
The voltage to move each charge starts at zero and linearly increases to the final voltage as the capacitor charges.
Thus the average to move the charge is 1/2 the final voltage or 1/2V, making the energy to charge the capacitor 1/2 CV², which has to equal the energy stored on the capacitor.
An interesting observation of this is that charging the capacitor from a fixed voltage through a resistor will dissipate the same amount of energy in the resistor as ends up stored on the capacitor, since the total energy transferred is CV² but the stored capacitive energy is only 1/2 CV².
Thus the charging efficiency from a resistive source is 50%.
This loss can be minimized if the capacitor is resonantly charged through an inductor with low or negligible resistance, which can give a charging efficiency of near 100%.