I searched and couldn't find any answers to this one. It's probably a dumb question but one that has been troubling me.
Let's say I have an integration: $$\int \frac{1}{3x+2}$$
It seems the correct way to solve it is by choosing $u=3x+2$. So
$$\begin{align}u &= 3x + 2 \\ \frac{du}{dx} &= 3 \\ dx &= \frac{1}{3}du \end{align}$$
and so on the answer comes down to $\frac{1}{3}\ln(3x+2)$
My question is, why do I need to choose it specifically this way: $ \frac{du}{dx} = 3$? If I choose $ \frac{dx}{du} = 3$, I get $dx=3du$ , but it gives me an answer different from the above.
How do I choose which one I use as a denominator and nominator for my u substitution?
Thank you.
Note: It's advisable to write $\int\frac{\color{blue}{dx}}{3x+2}$ which besides some other aspects indicates that $x$ is the integration variable.