Finding the vertex and zeros