In order to find the extrema, we need to solve the equation
$$\frac{d}{d x} f{\left(x \right)} = 0$$
(the derivative equals zero),
and the roots of this equation are the extrema of this function:
$$\frac{d}{d x} f{\left(x \right)} = $$
the first derivative$$- \frac{2 \sin{\left(x \right)} \cos{\left(x \right)}}{\left(\sin^{2}{\left(x \right)} + 1\right)^{2}} = 0$$
Solve this equationThe roots of this equation
$$x_{1} = 0$$
$$x_{2} = \frac{\pi}{2}$$
$$x_{3} = \pi$$
$$x_{4} = \frac{3 \pi}{2}$$
The values of the extrema at the points:
(0, 1)
pi
(--, 1/2)
2
(pi, 1)
3*pi
(----, 1/2)
2
Intervals of increase and decrease of the function:Let's find intervals where the function increases and decreases, as well as minima and maxima of the function, for this let's look how the function behaves itself in the extremas and at the slightest deviation from:
Minima of the function at points:
$$x_{1} = \frac{\pi}{2}$$
$$x_{2} = \frac{3 \pi}{2}$$
Maxima of the function at points:
$$x_{2} = 0$$
$$x_{2} = \pi$$
Decreasing at intervals
$$\left[\frac{3 \pi}{2}, \infty\right)$$
Increasing at intervals
$$\left(-\infty, \frac{\pi}{2}\right] \cup \left[\pi, \frac{3 \pi}{2}\right]$$