∫(x-lnx)^2 dx
=x(x-lnx)^2-∫2x(x-lnx)(1-1/x)dx
=x(x-lnx)^2-∫2(x-lnx)(x-1)dx
=x(x-lnx)^2-∫2(x^2-x-xlnx+lnx)dx
=x(x-lnx)^2-2x^2/3+x^2+∫lnxdx^2-2∫lnxdx
=x(x-lnx)^2-2x^2/3+x^2+x^2lnx-x^2/2-2xlnx+2x+C
最后化简下
∫(x-lnx)^2 dx
=x(x-lnx)^2-∫2x(x-lnx)(1-1/x)dx
=x(x-lnx)^2-∫2(x-lnx)(x-1)dx
=x(x-lnx)^2-∫2(x^2-x-xlnx+lnx)dx
=x(x-lnx)^2-2x^2/3+x^2+∫lnxdx^2-2∫lnxdx
=x(x-lnx)^2-2x^2/3+x^2+x^2lnx-x^2/2-2xlnx+2x+C
最后化简下