3.1 Quadratic functions