[Physics] Conservation of Energy of two charged blocks connected by light spring

electrostaticsenergy-conservationequilibriumnewtonian-mechanicsspring

Two identical blocks resting on a frictionless, horizontal surface are
connected by a light spring having a spring constant $k = 100 N/m$ and
an unstretched length $L_i=0.400 m$. A charge $Q$ is slowly placed on
each block, causing the spring to stretch to an equilibrium length
$L=0.500 m$. Determine the value of $Q$, modeling the blocks as
charged particles.

So I was able to solve the problem using particle in equilibrium as follows
$$ F_e = k\Delta x \Rightarrow $$
$$ F_e = \frac{k_e Q^2}{L^2} = k(L-L_i) \Leftrightarrow $$
$$ Q= L \sqrt{\frac{k(L-L_i)}{k_e}} = \boxed{ 1.67 \times 10^{-5}C} $$

However, I am trying to solve the problem using conservation of energy, but I am getting a different answer probably due to something wrong I did:

Since the blocks are charged slowly, I ignored kinetic energy: External work done by the force $F_e$ is equivalent to the spring elastic potential energy,

$$ \int_{L_i}^{L} F_e dx = \frac{1}{2}k \left(L-L_i\right)^2 \Rightarrow $$
$$ \int_{L_i}^{L} \frac{k_e Q^2}{x^2} dx = 0.5 \Leftrightarrow $$
$$ \left.\frac{-k_e Q^2}{x}\right|^{0.5}_{0.4} = 0.5 \Leftrightarrow \boxed{Q= 1.05 \times 10^{-5}C } $$
The answers do not match! I assume there is missing energy.

Best Answer

The charge on one block not only repels the charge on the other block, but it also repels the $dq$ charge that you are bringing to charge the system.

As you are slowly charging the system and slowly building up the charges, the force $F_e$ as you integrate is not a constant since the charge is increasing slowly. You may also need to account for the self-energy to build the charged system from scratch (a charge of 0 to 2Q).

Related Question