[Math] Factorial of Complex Values

complex numbersfactorialgamma functionrecreational-mathematics

Since the gamma function is an analytic continuation of the factorial function, we can find the factorial of complex values. How does one go about doing so? I've looked far and wide on the internet and am able to find values via wolfram alpha, but how can I calculate them myself. This is out of pure curiosity. Can we use the integral definition of the Gamma function and then some numerical technique like Simpson's Rule to approximate the complex integral? Please if someone could point me in the right direction or if its not too much to ask provide an example. Thank you very much.

Best Answer

Since there are no answers and some good ideas in the comments, I will try to make this a nice coherent answer.

As one noticed:

$$\Gamma(n+1)=n\Gamma(n)$$

This takes care of complex numbers almost entirely. In fact, it helps reduce the problem to purely imaginary inputs if we have:

$$\Gamma(n+a)$$

And $a$ is any integer.

However, the methods we use to solve this problem work for complex values and imaginary values: we use approximations.

Imagine trying to find $\Gamma(0.5)$. The best (simplest?) way to solve this is to write it out as an integral and solve the integral the same way we solve an unsolvable integral, we use the summation method. And amazingly, the summation method works for complex numbers.

Also note that the summation converges very rapidly, so we only have to approximate the summation. That is, solve the integral from $x=0$ to $x=10$ using approximated rectangles with a width of $\Delta x=0.001$. Doing this, we get a very good approximation for $\Gamma(0.5)$. Want to get a better approximation? Reduce $\Delta x$ or increase the integral closer to $\infty$.

Apply the same method for complex numbers.

Related Question