Writing the equation for exponential functions