or
where (h,k) is the coordinate of the vertex (labeled as V in the graph).
For the parabola of type (1), the parabola is either opening upwards (p > 0) or downwards (p < 0). This type of parabola has a focus at F(h, k + p) and a directrix at y = k - p.
On the other hand, for the parabola of type (2), the parabola is either opening rightwards (p > 0) or leftwards (p < 0). This type of parabola has a focus at F(h + p, k) and a directrix at x = h - p.
Betty, Created with GeoGebra