The given focus of parabola is
Since the focus lies on the x axis, the equation of the parabola is either
Also, the directrix,
Coordinates of focus are given by
Equation of directrix is given by
By comparing equation (1),(2) and (3) ,we get
Equation of parabola is
Thus, the equation of the parabola with focus