Need help with this integration:
Let $$A = \int_0^\pi \frac{\cos x}{(x+2)^2}dx$$ Compute $$\int_0^{\frac{\pi}{2}} \frac{\sin x \cos x}{x+1}dx$$
In terms of $A$.
I tried to do some algebraic manipulations but either get something rather complicated or just dead ends. Any help would be great!
In the original integral change variables $x = u/2$ $$ I=\int_0^{\frac{\pi}{2}} \frac{\sin x \cos x}{x+1}dx = \int_0^{\pi} \frac{\sin(u)}{2(u+2)} \mathrm{d}u $$ Now integrate by parts: $$ I = \left[ -\frac{\cos(u)}{2(u+2)} \right]_{u=0}^{u = \pi} - \frac{1}{2} \int_0^\pi \frac{\cos(u)}{(u+2)^2} \mathrm{d}u = \frac{1}{4} + \frac{1}{2(\pi+2)} - \frac{1}{2} A $$