I'm trying to solve this definite integral $$\int_{1}^{e} \frac{x^2-3x^3+1}{2x^3}$$ but the result do not coincide with the one on my book and even in wolframalpha the result is different but I do not see any error in it.
Here my steps:
$$\int_{1}^{e} \frac{x^2-3x^3+1}{2x^3} = \frac{1}{2}\int_{1}^{e} \frac{x^2-3x^3+1}{x^3}$$
$$ \frac{1}{2} \big[ \int\frac{x^2}{x^3}-3\int\frac{x^3}{x^3}+\int\frac{1}{x^3}\big]$$
$$ \frac{1}{2} \big[ ln|x| -3x - \frac{2}{x^2} \big]$$ $$ \big[ \frac{1}{2}ln|x| -\frac{3}{2}x - \frac{1}{x^2} \big]_{1}^{e}$$
And I get:
$$ \frac{ln|e|}{2} - \frac{3}{2}e - \frac{1}{e^2} - \frac{1}{2}ln|1| + \frac{3}{2} + 1 = 3-\frac{3}{2}e - \frac{1}{e^2}$$
So: $$\int_{1}^{e} \frac{x^2-3x^3+1}{2x^3} = 3-\frac{3}{2}e - \frac{1}{e^2}$$