Writing exponential functions in a specific form