# Math Help - Integral of 1/1+sinx

1. ## Integral of 1/1+sinx

How do you integrate this:
$\int \frac {1}{1+sinx}dx$

I tried expanding the '1' as $sin^2 x+cos^2 x$
And then i tried multiplying numerator and denominator by $cos x$.. But it was of no use..

What do you do generally, when you have a trigonometric equation in the denominator??

2. ## Re: Integral of 1/1+sinx

Originally Posted by animesh271094
How do you integrate this:
$\int \frac {1}{1+sinx}dx$
It is true that $\frac {1}{1+sinx}=\frac{1-\sin(x)}{\cos^2(x)}=\sec^2(x)+\frac{-\sin(x)}{\cos^2(x)}$

3. ## Re: Integral of 1/1+sinx

Alright.. thanx..

4. ## Re: Integral of 1/1+sinx

Another way is with the Weierstrass substitution:
Let $t=\tan \left(\frac{x}{2}\right)$ and so the integral becomes:
$\int \frac{\frac{2}{1+t^2}}{1+\frac{2t}{1+t^2}}dt$
$=\int \left(\frac{2}{1+t^2}\cdot \frac{1+t^2}{1+t^2+2t}\right)dt$
$=\int \frac{2dt}{t^2+2t+1}dt=\int \frac{2dt}{(t+1)\cdot (t+1)}$

Now split in partial fractions.

5. ## Re: Integral of 1/1+sinx

Why partial fractions when having $t^2+2t+1=(t+1)^2$ ?

6. ## Re: Integral of 1/1+sinx

Yes, offcourse! I was to busy with partial fractions I didn't noticed that, thanks .