Solving inequalities with quadratics