Potential energy curve piecewise