Implement quadratic restraining potential $$ V(x) = \begin{cases} 0 & \mathrm{if} x \le a \cr k(x-a)^2 &\mathrm{if} x >a \end{cases} $$ This should be constructed via the combined potential.