\ddot{x}m=-\frac{k}{\sqrt{x^2+d^2}}\cdot\frac{x}{d}