Concept:Use the symmetry of odd and even functions to simplify the integral, then apply the standard property ∫0πxf(x)dx=2π∫0πf(x)dx when f(π−x)=f(x).Explanation:LetI=∫−ππ1+cos2x2x(1+sinx)dx.Split the integrand:I=∫−ππ1+cos2x2xdx+∫−ππ1+cos2x2xsinxdx.Since 1+cos2x is even and 2x is odd, the first integrand is odd. Therefore, its integral over [−π,π] is 0.Thus,I=∫−ππ1+cos2x2xsinxdx.The integrand 1+cos2x2xsinx is even, soI=2∫0π1+cos2x2xsinxdx=4∫0π1+cos2xxsinxdx.LetJ=∫0π1+cos2xxsinxdx.Here, f(x)=1+cos2xsinx satisfies f(π−x)=f(x). Hence,J=2π∫0π1+cos2xsinxdx.Now substitute u=cosx, so du=−sinxdx.Limits change from x=0→u=1 and x=π→u=−1.Thus,∫0π1+cos2xsinxdx=∫−111+u2du=[tan−1u]−11=4π−(−4π)=2π.Therefore,J=2π⋅2π=4π2.Finally,I=4J=4⋅4π2=π2.Answer:π2So the correct option is Option B.