A curve C in polar form $r=f(\theta)$ is parameterized by $C(\theta) = \langle f(\theta)\cos(\theta),f(\theta) \sin(\theta)\rangle$ because the x- and y-coordinates are given by $x = r \cos(\theta)$ and $y=r \sin(\theta)$. Evaluate $\int_C(x-y)^2ds$ where C is given by $r= 2 \cos(\theta)$ , $0\le \theta\le\frac{\pi}{2}$.
I'm not sure I'm understanding this question. If $r= 2 cos(\theta)$, then $C(\theta) = \langle2\cos^2(\theta),2\cos(\theta) \sin(\theta)\rangle$
Since $C'(\theta) = \langle -4\cos(\theta)\sin(\theta), 2\cos(2\theta)\rangle$, $||C'(\theta)|| = 2$. The integral is set up like this: $$2\int_0^{\frac{\pi}{2}}(2\cos^2(\theta)-2\cos(\theta)\sin(\theta))^2d\theta$$
This is not an easy integral to do, unless I am missing something. Any tips?