I was solving a problem with partial fractions but I am going to skip all of that.
Lets say we are given $f(x)= \frac{\frac{-9}{77}}{2x+5}$ and we want to find the indefinite integral:
$$\int \frac{\frac{-9}{77}}{2x+5}\,dx$$ Letting:
$u=2x+5$ $du=2$
then
$\int \frac{\frac{-9}{77}}{2x+5}\,dx = \frac{-9}{77}\int\frac{1}{u}du= \frac{-18}{77}ln \vert 2x+5 \vert$
Am I missing some basic algebreic principle? Because I know that the answer should come out to be $\frac{-9}{144} ln \vert 2x+5 \vert$ Why should $du$ be multiplied into the denominator and not the numerator?
First, when you write $du=2$, this is inaccurate, it is $du=2dx$.
In light of this, you realise that your integral was missing a $dx$ from the beginning.
When you put back the missing $dx$ and then replace it with $\frac12 du$ as it should be, you get the right answer.