Question:
Find the following integral: $\int{(1+x^{-1}+x^{-2})dx}$
My book's attempt:
$$\int{(1+x^{-1}+x^{-2})dx}$$
$$...$$
$$x+\ln x-x^{-1}\tag{1}$$
Shouldn't the answer be $x+\ln|x|-x^{-1}$ instead of $(1)$?
Question:
Find the following integral: $\int{(1+x^{-1}+x^{-2})dx}$
My book's attempt:
$$\int{(1+x^{-1}+x^{-2})dx}$$
$$...$$
$$x+\ln x-x^{-1}\tag{1}$$
Shouldn't the answer be $x+\ln|x|-x^{-1}$ instead of $(1)$?
This is debatable.
If you want to apply the FTC, you will subtract two values of this antiderivative,
$$\int_a^b\frac{dx}{x}=\log b-\log a=\log\frac ba$$ or $$\int_a^b\frac{dx}{x}=\log|b|-\log|a|=\log\left|\frac ba\right|.$$
But as the integrand has a singularity at $x=0$, $a,b$ may not differ in sign.
For this reason, I prefer the non-standard expression.
Also note that
$$\begin{cases}x<0\to\log(-x)+C_-,\\x>0\to\log(x)+C_+\end{cases}$$ is also a valid antiderivative.