Due to presence of voltage V, the force between the plates of the capacitor will be equal to the restoring force of the dielectric pad of spring constant k. The dielectric displaces by a fractional distance ∆d(∆ represents small change)
Therefore the equation is,
Q^2/2A€ = k∆d...