I an currently struggling with the following integral: $$ \int \frac{1}{r} \frac{1}{a(r+b)} dr $$
with $a,b>0$. An immediate attempt of integration by parts, by setting $u$ equal the 2nd term and $v'$ the first term doesn't seem to lead to any simplifications as we'll have to integrate something along $1/r^2 \ln(r)$. Any different approaches are highly welcome.
You can use some substitution and manipualtion to get something like this: $$\frac{C}{1-x^2}$$ And the integral of it will be: $$\tanh^{-1}(x)+C$$ but this is a bit complicated. But you can use partial fraction decomposition (I'll drop the $\frac{1}{a}$ and multiply by it at the end, because you can factor it out as you've said in your comment): $$\frac{1}{r^2+br}=\frac{1}{br}-\frac{1}{br+b^2}$$ $$\int \frac{1}{r^2+br}\mathrm{d}r=\int\frac{1}{br}-\frac{1}{br+b^2} \mathrm{d}r=\frac{1}{b} \int \frac{1}{r}\mathrm{d}r-\int \frac{1}{br+b^2} \mathrm{d}r=\frac{\log(r)}{b}-\int \frac{1}{br+b^2} \mathrm{d}r=\frac{\log(r)}{b}-\frac{1}{b}\int \frac{b}{br+b^2} \mathrm{d}r=\frac{1}{b}\left(\log(r)-\log(br+b^2)\right)+C$$ You can make it "nicer" a bit: $$\log(br+b^2)=\log(b(r+b))=\log(b)+\log(r+b)$$ And the $\log(b)$ and $b$ are just a constants, so $C-\frac{\log(b)}{b}$ is also a constant. So the result can be written as (after multiplying by $\frac{1}{a}$): $$\frac{\log(r)-\log(r+b)}{ab}+C$$