Find the anti-derivative of this function where $a>0$:$$\frac{dy}{dx} =(1+sin(x))^a$$ This is the answer given by Wolfram (link):
$$ y = \frac{\sqrt{2}\, cos(x) (sin(x) + 1)^a\, _2F_1(\frac{1}{2}, a + \frac{1}{2}, a + \frac{3}{2}, \frac{cos^2(x)}{2 - 2 sin(x)})}{(2 a + 1) \sqrt{1 - sin(x)}} + constant$$
But this has singularities whenever $sin(x)=1$, irrespective of the value of $a$, which says to me that it is not correct.
By comparison, the anti-derivative of $y=(1+sin(x))^1$ given by Wolfram is entirely different to the above result at $a=1$.