Had taken a break from studying, and to get back into it I did some review questions. Was evaluating this with integration by parts.
$$\int_1^3 (x-1)\ln x dx$$
Initially I chose $u = (x-1)$ and $\frac{dv}{dx} = \ln x$ as it led to a simpler expression.
However that is wrong and of course I should have chosen $u = \ln x$
But I can't see why the first choice was wrong; the algebra seemed to follow just fine but the answer was wrong.
I had the following expression following my initial incorrect choice of $u$ and $v$:
$$\left. (x-1)\frac{1}{x} \right\vert_1^3 - \int_1^3 \frac {1}{x} dx $$
Can anyone help me see where I've gone wrong? Or is it simply that the choice of $u$ and $v$ are simply wrong because the answer is wrong?
I've now refreshed the order of preference for choosing $u$ but this seems like an easy trap to fall into; in all previous problems I've done the incorrect choice was obvious as it led to something much more complicated or impossible (at this level).
Perhaps I've made a mistake elsewhere and welcome your input.
Thanks in advance.