exponential function formula example with solution