theory of quadratic equations