Finding the x-intercepts and the vertex of a parabola