Find the length of $r=1+\sin{\theta}$.
I got to $\sqrt{2} \int\limits_{0}^{2\pi}\sqrt{1+\sin{\theta}} \,\mathrm{d}\theta$.
And the first way I used to solve the integral was substitution of $1+\sin{\theta}=u$.
Thus $ \cos\theta \,\mathrm{d}\theta = \mathrm{d}u$. and I used $\cos\theta=+\sqrt{1-\sin^2\theta}$
to find the interval which is $[-\pi/2,\pi/2]$. Considering the original interval of $[0,2\pi]$, I multiplied the result by $2$ for the symmetry to make the length of the interval $2\pi$, without knowing if it's correct.
The second way is $\frac{1+\cos{\phi}}{2}=\cos^2{(\phi/2)}$, substituting $\phi=\theta-\pi/2$,
thus $\sqrt{1+\sin{\theta}}=\sqrt{2\cos^2{(\theta/2-\pi/4)}}=+\sqrt{2}\cos{(\theta/2-\pi/4)}$.
From $-\pi/2 <\theta/2-\pi/4<\pi/2$, I got the interval $[-\pi/2,3\pi/2]$.
I end up with an interval length of $2\pi$, so I just found the final result from this interval.
So, I used two method to solve the integral and needed to reconsider the interval for integral.
Though I got a result, I'm not fully understanding the way to find the interval.
Could you tell why these methods are correct or incorrect?
Edit: I should have mentioned I found the answer of $8$. It's not the way to get the answer that I'm asking. I'm confused about interval.