Rewriting a quadratic function to find its vertex and sketch its graph