changing SplinePotential to actually be a series of linear segments between a pair of quadratics