Writing equation of a parabola from its vertex