Question

$$\displaystyle\int{ \frac{ \cos x }{ { \sin }^{ 2 } x+1 } }d x$$