Parametric arc length?

I don't understand the part where the integral bounds switch to arctan. Why is this necessary?

computer

The red marks mean "1" since the bounds are #0\let\le1# (not #2\pi#)