Apply the formula for integration by parts with u = ln x and v' = 1 to find
Answer
We take u and v' as suggested.
Then
Applying the formula,
Now there's magic. Rearranging the right-hand side, we get
which equals
x ln x – x + C.
So