Show that $\int_{0}^{\pi/2}\frac{\sin x\cdot \cos x}{x+1}dx=\frac{1}{2}(\frac{1}{2}+\frac{1}{\pi +2}-A)$ where $A=\int_0^\pi\frac{\cos x}{(x+2)^2}dx$.
I tried using partial integration on the integral $\int_0^{\pi/2}\frac{\sin x\cdot \cos x}{x+1}dx$ but I am in no luck. Also tried using $\frac12A=\int_0^{\pi/2}\frac{\cos x}{(x+2)^2}dx$. But still something is going wrong . Please suggest.
The best I could think of is :
$\int {\dfrac{sin2x}{2x+2}dx}=-\dfrac{1}{2x+2}cos2x+\dfrac{1}{4}\int {\dfrac{cos2x}{(x+1)^2}dx}$
Notice carefully that $\int_0^\pi\frac{\cos x}{(x+2)^2}dx$ has the same structure as $\int {\dfrac{cos2x}{(x+1)^2}dx}$
P.S. See I purposefully avoided the long details of my efforts as that would hamper the understandibility of the problem and may mislead the answerer as well.
You are on the right lines!
$$\small\int_0^{\pi/2} {\frac{\sin2x}{2x+2}dx}=\left[-\frac{1}{2x+2}\cos2x\right]_0^{\pi/2}-\int_0^{\pi/2} {\frac{\cos2x}{(2x+2)^2}dx}=\frac12\left(\frac12+\frac1{\pi+2}\right)-\int_0^{\pi/2} {\frac{\cos2x}{(2x+2)^2}dx}$$ Now use the substitution $u=2x$.