I'm trying to differentiate $x!$ but I just can't seem to do it right. I define the function as follows:
$$x! = \prod_{r = 0}^{x}(x-r) \quad,\quad x \in \mathbb N$$
I've tried attempted to try it by the first principle, but that was a dead end. The following is a more fruitful attempt although it provides no conclusive result:
$$\frac{\mathrm d}{\mathrm dx} x! = \frac{\mathrm d}{\mathrm dx}x(x-1)!\\ = x\frac{\mathrm d}{\mathrm dx}(x-1)! + (x-1)!\\ = x( (x-1)\frac{\mathrm d}{\mathrm dx}(x-2)! + (x-2)! ) + (x-1)!\\ = x((x-1)((x-2)\frac{\mathrm d}{\mathrm dx} (x-3)! + (x-3)!) + (x-2)!) + (x-1)!\\ = \dots$$
This pattern just goes on repeating, and I can't even find a good way to express the pattern. I tried opening the brackets and rearranging but even then I don't see any pattern which holds.
Maybe there isn't a derivative? I don't know. Can you help me out?
Edit: Thanks to @Belgi and others, I have realized that it is not possible to differentiate the factorial function by the definition I had given (silly me!) and now, I understand why the digamma function is required.
But, as noted in the comments by @WarrenHill, the computational engine WolframAlpha says the following: $$\frac{\mathrm d}{\mathrm dx} (x!) = \Gamma(x+1)\Psi^{(0)}(x+1) $$
Please justify all aspects of this answer.