Solving exponential equations and inequalities