Solving: $$\int \frac 1 {x\ln^2x}dx$$ with parts.
$$\int \frac 1 {x\ln^2x}dx= \int \frac {(\ln x)'} {\ln^2x}dx \overset{parts} = \frac {1} {\ln x}-\int \frac {(\ln x)} {(\ln^2x)'}dx$$
$$\int \frac {(\ln x)} {(\ln^2x)'}dx=\int \frac {(x\ln x)} {(2\ln x)}dx=\frac {x^2} 4$$
So $$\int \frac 1 {x\ln^2x}dx= \frac {1} {\ln x} - \frac {x^2} 4$$
But the answer should be $-\frac {1} {\ln x}$ and I can't find which step is wrong...
http://www.integral-calculator.com/#expr=1%2F%28x%28lnx%29%5E2%29
If you want to proceed using integration by parts, then we have the following
$$\begin{align} I&=\int \frac{dx}{x(\log x)^2}\\\\ &=\frac{1}{\log x}+2\int \frac{dx}{x(\log x)^2}-C\\\\ &=\frac{1}{\log x}+2I-C \end{align}$$
whereupon solving for $I$ reveals that
$$I=-\frac{1}{\log x}+C$$