I don't understand why these two problems are solved differently here the first one $fig(1)$ and 2nd one $fig(2)$. Why did we take the limit $\displaystyle \lim_{r\to0^+}\int_r^\pi \sqrt{2-2cost}\space dt$ in the arc length problem but not in the Surface are problem, Although the cycloid is not differentiable at $\theta=0$ and $\theta=\pi$
$fig(1)$
$fig(2)$