Integrate Exponential Functions with Various Bases