Solving logarithmic equations and inequalities