How would you go about integrating the function $\left(\frac{\ln(x)}{x}\right)^n$ for some integer $n≥2$?
I've managed to recursively calculate it using integration by parts to get a nasty series but WolframAlpha says it's equal to $$\frac{-\Gamma(n+1,(n-1)\ln(x))}{(n-1)^{n+1}}$$
where $\Gamma(a,x)$ is the incomplete gamma function. Why is this the case?
As Gary suggested, let $x=e^{\frac{t}{n-1} }$, then $t=(n-1)\ln x$ and $$ \begin{aligned} I & =\int \frac{\left(\frac{t}{n-1}\right)^n}{e^{\frac{n t}{n-1}}} \cdot \frac{1}{n-1} e^{\frac{t}{n-1}} d t \\ & =\frac{1}{(n-1)^{n+1}} \int t^n e^{-t} d t \\ & =-\frac{1}{(n-1)^{n+1}} \Gamma(n+1, t)\\&=-\frac{1}{(n-1)^{n+1}} \Gamma(n+1,(n-1)\ln x) \end{aligned} $$