Problem: $\int x\ln x^2 \,dx$
So what I did first was make $u = \ln x^2$ and $dv = x$
Then I solved by getting the derivative of $u$ and the anti derivative of $dv$ and I got $du = 1/x^2 $ and $v = x^2/2$ then I did the formula $$\int udv = uv - \int vdu$$ which then after plugging in the numbers and simplifying got me
$$ \frac{ x^2}{2}\ln x^2 - \frac{1}{2x} +C$$
Is this the right way to do the problem and answer?
First note that $\ln(x^2)=2\ln(x)$. Now we have $$u=2\ln(x), \ \ du = \frac{2}{x}dx, \ \ dv=xdx, \ \ v=\frac{x^2}{2}$$ Integration by parts tells us that $$\int\! 2x\ln(x) \, \mathrm{d}x=2\ln(x) \cdot \frac{x^2}{2}-\int\! \frac{2}{x} \cdot \frac{x^2}{2} \, \mathrm{d}x$$ $$=\ln(x) \cdot x^2-\int\! x \, \mathrm{d}x$$ $$=\ln(x) \cdot x^2-\frac{x^2}{2}+C$$