Finding $\frac{\mathrm d}{\mathrm dx} x!$

585 Views Asked by At

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.

4

There are 4 best solutions below

0
On BEST ANSWER

Derivatives and Integrals make sense only for non integer functions. If you like a function that "flows". If you want to find the derivative of the factorial function you could consider extending it to the real numbers using the Gamma function. The gamma function acts like the factorial function for all positive integers however it also has values for real numbers.

The gamma function is defined as $\displaystyle \Gamma(x+1)=\int_0^\infty t^{x}e^{-t}\mathrm dt$. The gamma function satisfies $\Gamma(x+1)=x\Gamma(x)$ therefore for integer values of $x$ it can be said that $\Gamma(x+1)=x!$.

The derivative of the gamma function can be expressed in terms of the Digamma function. The Digamma function is defined as $$\psi(x)=\frac{\Gamma'(x)}{\Gamma(x)}$$ So the derivative of the Gamma function is $\psi(x)\Gamma(x)$. Now it may look like we are going round in circle by defining this special function however the digamma function has properties that are useful elsewhere and is an important special function. If you look at the article for the digamma function you will see many ways of computing it and its deep relationship with harmonic numbers and euler-mascheroni constant.


To address what wolfram alpha said:

There is a family of functions called the polygamma functions and they are the derivatives of the digamma function. Hence $\psi^{(0)}(x)=\psi(x)$. Remember that $x!=\Gamma(x+1)$ therefore $(x!)'=\Gamma'(x+1)=\Gamma(x+1)\psi(x+1)$.

5
On

Factorial is defined only for non-negative integers. As such, $x!$ will be a constant and it's derivative will hence be $0$. Perhaps, $x$ is a variable here taking non-negative integral values?

0
On

The function $x!$ of $x$ is defined only for nonnegative integers $x$, so its derivative is defined nowhere. However, one can extend the factorial function in a natural way to a function defined everywhere on $\mathbb{R}$ except the negative odd integers. This function is $\Gamma(x + 1)$, where $\Gamma$ is the Gamma function. One way to define it is via the integral formula

$\Gamma(u) = \int_0^{\infty} t^{u-1} e^{-t} \,dt$;

one can check manually that this agrees with $(u - 1)!$ for positive integers $u$ by integrating by parts $u - 1$ times.

This function is differentiable, but its derivative is simply given in terms of another special function, the digamma function, usually defined by $\psi := \frac{d}{du} \log \Gamma(u)$, so that $\Gamma' = \Gamma \psi$, which can again be given by various integral formulas.

1
On

Related problem: What is $\int x! $ $ dx$? See my answer there, that is also an answer to this question with changing integral to derivative.