When using integration by parts, the LIATE rule (Logarithmic, Inverse, Algebraic, Trigonometric, Exponential) is a good guideline for choosing the function 'u'. In this case, the logarithmic function $\ln x$ is chosen as 'u' because its derivative is a simpler algebraic function.