attempting to have straight segment path potential with quadratic ends