Evaluating an integral over a symmetric range such as [−π,π] becomes significantly more manageable by classifying the integrand components as odd or even. Expanding the initial expression into two separate parts yields:
∫−ππ1+cos2x2xdx+∫−ππ1+cos2x2xsinxdx
The first term, 1+cos2x2x, represents an odd function because replacing x with −x negates the entire expression, causing its integral over the symmetric interval [−π,π] to equal zero. Conversely, the second term, 1+cos2x2xsinx, is an even function because the product of two odd functions-x and sinx-results in an even function, which allows us to double the integral over the half-interval [0,π] to obtain 4∫0π1+cos2xxsinxdx.
Applying the definite integral property ∫0af(x)dx=∫0af(a−x)dx to this expression transforms it into 4∫0π1+cos2(π−x)(π−x)sin(π−x)dx. Given that sin(π−x)=sinx and cos2(π−x)=cos2x, this simplifies to 4∫0π1+cos2x(π−x)sinxdx. Distributing the terms results in the equation I=4π∫0π1+cos2xsinxdx−I, where I represents the value of our integral. Rearranging this leads to 2I=4π∫0π1+cos2xsinxdx, which reduces to I=2π∫0π1+cos2xsinxdx.
To calculate this value, we substitute u=cosx, which implies du=−sinxdx, effectively changing the limits of integration from [0,π] to [1,−1]. The integral becomes:
I=2π∫−111+u2du=2π$[tan−1u]−11
Evaluating this at the boundaries yields 2π(4π−(−4π)), which simplifies to 2π⋅2π, resulting in a final value of π2.