equation for exponential function given two points