Write a quadratic function from its vertex and another point