(a) Find the distance traveled by a particle with position $x=\cos^2(t),\;\;y=\cos(t)$ as $t$ varies in the time interval $0 \le t \le 4\pi.$

Distance traveled =

(b) Find the length of the curve on which the particle traveled.

Length of curve =