\(I=\int\dfrac{2}{2+5sinxcosx}dx=\int\dfrac{2sec^2x}{2sec^2x+5tanx}dx\\ =\int\dfrac{2sec^2x}{2tan^2x+5tanx+2}dx\)
We substitute :
\(u=tanx,du=sec^2xdx\\ I=\int\dfrac{2}{2u^2+5u+2}du\\ =\int\dfrac{2}{2\left(u+\dfrac{5}{4}\right)^2-\dfrac{9}{8}}du\\ =\int\dfrac{1}{\left(u+\dfrac{5}{4}\right)^2-\dfrac{9}{16}}du\\ \)
Then,
\(t=u+\dfrac{5}{4}\\I=\int\dfrac{1}{t^2-\dfrac{9}{16}}dt\\ =\int\dfrac{\dfrac{2}{3}}{t-\dfrac{3}{4}}-\dfrac{\dfrac{2}{3}}{t+\dfrac{3}{4}}dt\)
Finally,
\(I=\dfrac{2}{3}ln\left(\left|\dfrac{t-\dfrac{3}{4}}{t+\dfrac{3}{4}}\right|\right)+C=\dfrac{2}{3}ln\left(\left|\dfrac{tanx+\dfrac{1}{2}}{tanx+2}\right|\right)+C\)