4

I have the definite integral $\displaystyle\int_{0}^{\pi }\frac{x^2 \cos(x)}{(1+ \sin(x))^2}\,dx.$
Since there are both algebraic and trigonometric functions in the numerator, I don't know what substitution to make. Can someone tell the method of solving the above integral (and not the complete solution). I don't want the antiderivative, only the definite integral.

Note: The answer is $\pi(2-\pi).$

Adrian Keister
  • 10,099
  • 13
  • 30
  • 43

1 Answers1

3

Hint. By integration by parts, $$\int_{0}^{\pi }\frac{x^2 \cos(x)}{(1+\sin(x))^2}dx=-\left[\frac{x^2}{1+\sin (x)}\right]_0^{\pi}+2\int_{0}^{\pi }\frac{x }{1+\sin (x)}dx.$$ For the second integral use the symmetry $\sin(\pi-x)=\sin(x)$ and then let $t=\tan\left(\frac{x}{2}\right)$.

Can you take it from here?

Robert Z
  • 145,942