The correct option is A log|x|−12log(x2+1)+C
Let 1x(x2+1)=Ax+Bx+Cx2+1
⇒1=A(x2+1)+(Bx+C)x
Equating the coefficients of x2,x, the constant term, we obtain
A+B=0,C=0,A=1
On solving these equations, we obtain
A=1,B=−1, and C=0
∴1x(x2+1)=1x+−xx2+1
⇒∫1x(x2+1)dx=∫{1x−xx2+1}dx
=log|x|−12log|x2+1|+C