General polar form (r,θ)
r=√x2+y2
x=rcosθ
y=rsinθ
θ=tan−1yx
Now given in the question
x2+y2=2ax
⇒r2=2a×rcosθ
⇒r=2acosθ