From Wikipedia, the parametric equations for a trefoil knot are
\begin{align*} x(t) &= \sin t + 2\sin 2t \\ y(t) &= \cos t - 2\cos 2t \\ z(t) &= -\sin 3t. \end{align*}
I am only interested in the $x$ and $y$ dimensions, so $z(t)$ is ignored. When I plot it with Wolfram|Alpha, I get the expected general shape. However, when I try to convert it to polar coordinates, it (seemingly) just doesn't work.
\begin{align*} r^2 &= x^2 + y^2 \\ &= (\sin t + 2\sin 2t)^2 + (\cos t + 2\cos 2t)^2 \\ &= (\sin^2 t + 4\sin t \sin 2t + 4\sin^2 2t) + (\cos^2 t - 4\cos t \cos 2t + 4\cos^2 2t) \\ &= 1+4 + 4(\sin t \sin 2t - \cos t \cos 2t) \\ &= 5-4\cos 3t \end{align*}
Yet, when I try to plot $r = \sqrt{5-4\cos 3t}$, I get something completely different. What's the problem? Additionally, how could you express the trefoil knot in polar coordinates?