Solving equations that contain exponential functions