My thinking started when I got the answer to below integral $$\int_{-2}^{1}\frac{1}{x^2}dx$$
I normally found the anti-derivative as $\frac{-1}{x}$ and just substituted the limit. The answer I was getting is $\frac{-3}{2}$. Suddenly I thought "why would I get a negative value for this integral. The integrand is positive for all real values, then why would I get a negative answer?"
The question for which I was solving this integral asked to also plot the area for of this integral. Thus, I have also looked at the graph then I remembered that this function is discontinuous at $x=0$ which is inside the interval of the limits.
Now, my question is how did I even get the answer $-3/2$ and how can I evaluate this integral?
I honestly think the question is incorrect and the limits should be different. Cus it approaches infinity at $x=0$ thus area won't be a finite value. Am I correct?