Finding the equation and vertex of a parabola