Simplifying exponential functions