Hello, I never really understood how to choose the u and the v' when integrating by parts. I know if you choose the wrong one sometimes you end up in a loop.

For the question

Integrate ln x dx

It becomes : Integrate 1 * ln x dx

Now do I set u' as 1 or as ln x? And how do you decide which one is which?

Thank you