I'm trying to compute $\int x \log (\sqrt{1+x^2}) dx$ but I have had some trouble... I explain :
Previously, I've done $\int \log (\sqrt{1+x^2})= x \log(\sqrt{x^2+1})-x+tan^{-1}(x)$(I've checked it in WA),
so I thought the most straightforward way of resolving the new integral was using integration by
parts..with f=x and g'=$\log (\sqrt{1+x^2})$, and I got:
$\int x \log (\sqrt{1+x^2}) =x[x \log(\sqrt{x^2+1})-x+tan^{-1}]-\int x \log(\sqrt{x^2+1})-x+tan^{-1}(x)$
Then, passing $\int x \log (\sqrt{1+x^2})$ to the other side of the equation, I finally get:
$\int x \log (\sqrt{1+x^2})=\dfrac{1}{2}[\dfrac{-1}{1+x^2}-\dfrac{x^2}{2}+x^2\log \sqrt{1+x^2}+x \tan^{-1}(x)]$.
On the other hand, Wolfram says that the right answer is
, while computing the derivative of my answer I get:
I know that two functions with the same derivative differ from a constant, so the graphics should be one over the other, but they are not...I've already checked my computations trice, but I see no mistake..Could you help me, please?
From
to
I believe that you used that
$$\int \tan^{-1}x\ dx=\frac{1}{x^2+1}+C$$
which is not correct.