# Force on a dielectric inside a capacitor and conservation of energy

The problem is as follows: Two long coaxial cylindrical metal tubes (inner radius a, outer radius b) stand vertically in a tank of dielectric oil (susceptibility χe, density ρ). The inner one is maintained a potential V, and the outer one is grounded. To what height (h) does the oil rise in the space between the tubes? (Griffiths Introduction to Electrodynamics, problem 4.28).

First I calculated the capacitance of the system, as a function of the height of the oil, as C(h) = 2πε0eh + l)/ln(b/a), where l is the total height of the capacitor.

Then I say: let the initial potential energy stored in the electric field be U0 = 1/2 C(h=0)V2, and the final energy be Uf = 1/2 C(h)V2.

The difference of energy has to be the potential energy gained by the system as gravitational, namely by the rising of the oil: ΔU = ρhπ(b2-a2)g(h/2).

This gives, after some rearrangement, h = 2V2ε0χe / ln(b/a)ρg(b2-a2).

This is the solution given by Griffiths, except for the factor 2 I'm writing. He solves it by balance of force, saying that the electrostatic force has to be equal and opposite to the gravitational force, while I solve it by conservation of energy. What is wrong with my solution? Is energy not conserved?

I'm aware that the energy is not conserved in the ideal charge of an ideal capacitor with a voltage source, that is, the energy provided by the source is VQ, while the energy stored in the electric field is VQ/2. Does this also have to do with my solution being off by the same factor?