0

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)$?

1 Answers1

2

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.

  • 2
    But the first version doesn't easily describe $\int_{-2}^{-1} \frac{dx}{x}$, without the complication of a complex log branch. – aschepler Jan 24 '22 at 14:55
  • 1
    @aschepler: there is no perfect solution. –  Jan 24 '22 at 14:56
  • @ryang: check the comments and most texbooks. :-) –  Jan 24 '22 at 15:03
  • 1
    Why would the comments and textbooks know what you are trying to say? I was merely suggesting a disambiguation edit. – ryang Jan 24 '22 at 15:07
  • @aschepler Untrue, since you can use the antiderivative family you yourself provided, which coincides with Bobby's, to apply the fundamental theorem of calculus: refer to the part where $x\lt0.$ – Angel Jan 24 '22 at 20:23