How do you write a quadratic function from its graph or from a set of points? Write the equation of the quadratic function that passes through the points (-2, 5), (0, -1), and (2, 5).