How is the following result of a parabola with focus $F(0,0)$ and directrix $y=-p$, for $p \gt 0$ reached? It is said to be $$r(\theta)=\frac{p}{1-\sin \theta} $$
I started by saying the the standard equation of a parabola, in Cartesian form is $y= \frac{x^2}{4p} $, where $p \gt 0 $ and the focus is at $F(0,p)$ and the directrix is $y=-p$. So for the question above, would the equation in Cartesian form be $$y= \frac{x^2}{4 \cdot \left(\frac{1}{2}p\right)}=\frac{x^2}{2p}?$$
I thought this because the vertex is halfway between the directrix and the focus of a parabola.
Then I tried to use the facts: $$r^2 = x^2 +y^2 \\ x =r\cos\theta \\ y=r\sin\theta.$$
But I couldn't get the form required, any corrections, or hints?
Cheers.
No, that can't work, because you've shown that these parabolae have different foci.
Since there are lots of parabolae ($x^2=4ay$, $y^2=4ax$, any rotation and translation of one of these), it's easier to work backwards. So let's do that: $\sin{\theta} = y/r$, so $$ p= r(1-\sin{\theta}) = r-y, $$ so $$ x^2+y^2 = r^2 = (p+y)^2 = p^2+2py+y^2, $$ and $$ x^2 = 2py+p^2. $$ In particular, if we look more closely, we notice that $$ \sqrt{x^2+y^2} = p+y $$ is the definition of a parabola: the distance from $(0,0)$ to the point is the same as $y+p$, the distance from the horizontal line $y=-p$.