AvgStudent
Full Member
- Joined
- Jan 1, 2022
- Messages
- 256
[math]\int\frac{1}{1+\sin(x)}\space dx=?[/math]Hint given: Use trig sub.
Any idea what u should be?
Any idea what u should be?
It is... get some coffee! Does the denominator of the integrand factor? What further substitution could you make?[math] u=\tan\left(\frac{x}{2}\right),du=\frac{1}{2}\sec^2\left(\frac{x}{2}\right)dx\\ \sin(x)=\frac{2u}{u^2+1},\cos(x)=\frac{1-u^2}{u^2+1}\implies dx=\frac{2}{u^2+1}du [/math]Substitution:
[math]\int\frac{1}{1+\sin(x)}\space dx= \int \frac{2du}{(u^2+1)(\frac{2u}{u^2+1}+1)} =\int \frac{2du}{u^2+2u+1}[/math]Stuck here, I feel it should be easy.![]()
Coffee needed, indeed!It is... get some coffee! Does the denominator of the integrand factor? What further substitution could you make?
-Dan
[math]\int\frac{1}{1+\sin(x)}\space dx=?[/math]Hint given: Use trig sub.
Any idea what u should be?
I'll give your approach a go.There's a much simpler way to integrate this; just multiply numerator and denominator by (1 - sin(x)).
But apparently that's not what you're expected to do.
I've struggled to prove (other than by graphing) that the answer I get this way is equal to the other (with C differing by 1), but it is.
I agree with you Dr.Peterson that this is a simpler way. But trust me the idea of this type of integral is to use the half tangent formula. What if the integral has a negative sign instead of positive? What if there was \(\displaystyle \sin x + \cos x\) in the denominator? By coincidence in the OP case \(\displaystyle 1 - \sin x\) works pretty good.There's a much simpler way to integrate this; just multiply numerator and denominator by (1 - sin(x)).
But apparently that's not what you're expected to do.
I've struggled to prove (other than by graphing) that the answer I get this way is equal to the other (with C differing by 1), but it is.