The only differences between \(U_{\mathrm{electric}} = q^2/(2C)\) from Equation 17-17 and the expression in Equation 6-19 is that the spring displacement \(x\) is replaced by the charge \(q\) and the spring constant \(k\) is replaced by the reciprocal of the capacitance, \(1/C\). This similarity isn’t surprising. To add potential energy to a spring by stretching it, you have to pull against the force of magnitude \(F = kx\) that the spring exerts on you. The greater the distance that the spring is already stretched, the more force it exerts and the harder it is to stretch it further.