# Apparent contradiction when working out $\int \frac{dx}{x\ln |x|}$

Considering the integral $\int \frac{dx}{x\ln |x|}$ I understand the u-substitution way to proceed by substituting $u=\ln |x|; du=dx/x$ and solving. However, I began by trying integration by parts and came up with the following, $u=\frac{1}{\ln |x|}, u’=\frac{-1}{x(\ln |x|)^2}, v’=1/x, v=\ln |x|$ such that $$\int \frac{dx}{x\ln |x|}=\frac{\ln |x|}{\ln |x|}-\int \frac{-1}{x\ln |x|}dx$$ And, if we factor the -1 from the integral on the RHS and then subtract the integral from both sides, haha, presto $0=1$. Help please, I can’t spot my error. Does integration by parts just fail here, and why doesn’t it work out?

• Those are indefinite integrals, and so they differ by a constant of integration. Common mishap when applying integration by parts. Dec 28, 2017 at 1:34
• There's always a $+C$ when you do antidifferentiation. So there's no contradiction. But nor is there any progress in solving the integral. Dec 28, 2017 at 1:34
• Ahh, yes there it is! Thank you both @Simply Beautiful Art, and Ted Shifrin Dec 28, 2017 at 1:38
• Also, consider using a better title. Don't be afraid to make the title long, and be sure to include at least some plain words. Dec 28, 2017 at 1:39
• @SimplyBeautifulArt I've edited the title with "some plain words". :) Dec 28, 2017 at 1:41

Try and use the same method for the more fully-formed definate integral $$\int_a^b \frac{dx}{x \log(x)}$$
you can treat $a$ and $b$ as variables if you like, as long as they are independent of $x$. You should understand your error now!