A friend of mine told me to evaluate the following integral.... $$\int x!\left(\frac1x+\frac{1}{x-1}+...+\frac11\right)dx$$
I have two questions here
$1)$ Does the integral even actually exist in terms of elementary functions? This is because $x!$ is defined for integer values..
$2)$If the integral exists , how to evaluate it? Multiplying makes the expression even more complicated....So , I tried writing this as $e^{\ln x!+\ln\left(\frac1x+\frac{1}{x-1}+...+\frac11\right)}$
But I don't know how to proceed further? Any help would be appreciated.....
Let $\psi(z) = \frac{\Gamma'(z+1)}{\Gamma(z+1)}$, then we can resolve your ambiguous notation with the following.
$$\psi(z) = -\gamma + \sum_{n=1}^\infty \frac{1}{k} - \frac{1}{z+k}$$
$$\psi(n+1) - \psi(1) = \sum_{j=1}^n \frac{1}{j}$$
so that naturally
$$\psi(x+1) - \psi(1) = \frac{1}{x} + \frac{1}{x-1} + ... + 1$$
Therefore the integral you want to evaluate is
$$\int_a^z \Gamma(x+1)(\psi(x+1) - \psi(1))\,dx$$
which becomes at best
$$\Gamma(z+1) - \Gamma(a+1) - \psi(1)\int_a^z \Gamma(x+1)\,dx$$