The graph of a quadratic function is shown above. It has a vertex at and passes the point . Find the quadratic function.