For 0<x^2+1<π, evaluate x2 (x^2+1)- 2(x^2+1)2 (x^2+1)+ 2(x^2+1)dx=
A. \(\log (\sec (\frac{{x}^{2}+1}{2}))+\) c, where c is a constant of integration.
B. \(\log (\frac{{x}^{2}+1}{2})+c\), where \(c\) is a constant of integration.
C. \(\log (\sin (\frac{{x}^{2}+1}{2}))+\) c, where c is a constant of integration.
D. \(2\log ({x}^{2}+1)+c\), where \(c\) is a constant of integration.