Why $$\int \frac{1}{2x+1}\mathrm dx\neq \ln |2x+1|$$?
While doing integration by partial fraction. I noticed they wrote that $$\int \frac{1}{2x+1}\mathrm dx=\frac{1}{2} \int \frac{2}{2x+1}=\frac{1}{2}\ln |2x+1|$$
Why $2$ is needed in numerator for this type of integration? There's only single $2$ in denominator.
If $F'(x)=f(x)$, then, for any two numbers $a$ and $b$, if you differentiate $F(ax+b)$, what you get is $af(ax+b)$ (by the chain rule).
So, since, when you differentiate $\ln|x|$, you get $\frac1x$, when you differentiate $\ln|2x+1|$, you get $\frac2{2x+1}$. Therefore, if what you want to get is $\frac1{2x+1}$, then differentiate $\frac12\ln|2x+1|$.