Linear and Quadratic Inequalities