Hi there, I am here for some major help in the Advanced Aplied maths forum and thought this small question is better asked here.

I have as part of a larger integral $\displaystyle 1/x^2$, the answer to which i believe to be $\displaystyle -1/x$. Could someone please explain to me how this is obtained?

The entire integral if it is helpful is:

$\displaystyle \int^{2}_{1}(1/x^2 + cos x) dx$