$$ \int_{-\frac\pi2}^\frac\pi2 \left(\cos(x) \right)^{\alpha}\, \mathrm{d}x $$
I'm supposed to prove for what values this improper integral converges.
My "feeling" is that it converges for $\alpha \ge 0$, and diverges else, but I don't really know how to prove it.
I know the behavior of cosine should be like this:
In that area $\left(\frac\pi2 \text{ and } -\frac\pi2\right)$ when $\alpha \ge 0$ it should be kind of like upside-down parabola, and as $\alpha$ gets bigger, the parabola gets closer to the $y$ line. When $\alpha <0$ we should get an unbounded function.
But I don't really know how to prove my intuition.
I believe I should probably use a comparison test, but I don't know with what function as for proving for when $\alpha <0$ I don't really have an idea.