I am trying to convert this circle from cartesian to polar form. I have googled and searched for various guides/youtube videos and followed them. The answer is supposed to be in polar form $r = 2 \cos \theta$
After drawing the triangle, I could see that:
$x-r = r \cos \theta$
$y = r \sin \theta$
I had tried expanding it this way:
$(x-r)^2 + y^2 = r^2$ // equation of the circle
$x^2 - 2xr + r^2 + y^2 = r^2$
$x^2 - 2xr + y^2 = 0$
$(r \cos \theta + r)^2 - r^2\sin^2 \theta = 0$
$r^2\cos^2\theta + 2r^2\cos\theta + r^2 - 2r^2\cos\theta - 2r^2 + r^2\sin^2\theta = 0 $
The 2nd the 4th term cancels each other out
$r^2\cos^2\theta + r^2 - 2r^2 + r^2\sin^2\theta = 0 $
$r^2(\cos^2\theta + \sin^2\theta) - r^2 = 0$
$r^2 - r^2 = 0$
$0 = 0$ ?
What am I doing wrong?
Using a different named constant to prevent confusion we have \begin{align} (x-a)^2+y^2=a^2 &\iff(r\cos{(\theta)}-a)^2+(r\sin{(\theta)})^2=a^2\\ &\iff r^2(\sin^2{(\theta)}+\cos^2{(\theta)})-2ar\cos{(\theta)}+a^2=a^2\\ &\iff r^2-2ar\cos{(\theta)}=0\\ &\iff r(r-2a\cos{(\theta)})=0\\ &\iff r=0\text{ or }r=2a\cos{(\theta)} \end{align}