Integrate : $$I=\int \frac{dx}{x\ln x}$$
I know this can be solved easily via substitution ($t=\ln x$) to obtain $I=\ln {\ln x} +C$, where $C$ is the constant of integration. But if we try to apply integration by parts, choosing $\frac{1}{\ln x}$ as $u(x)$ and $\frac{1}{x}$ as $v'(x)$, something goes wrong: $$I=\frac{1}{\ln x}\cdot\ln x - \int \left(\frac{-1}{(\ln x)^2}\cdot\frac{1}{x}\cdot\ln x\right)dx$$ This reduces to $I=1+I$ or $1=0$. Why does this happen?