The function γ(s) is the integral, as x runs from 0 to infinity, of E-xxs-1.
Note that γ(1) = 1, and using integration by parts, γ(s+1) = s×γ(s). Therefore s! may be defined as γ(s+1), for all real s ≥ 0.
For our first noninteger, let s = ½. Substitute x = u2, and integrate 2E-u2, from 0 to ∞. This is the same as integrating E-u2 from -∞ to ∞. This integral is solved by a clever trick, hence γ(½) = sqrt(π). Moving to factorials, ½! = γ(1+½), which is ½γ(½), or sqrt(π)/2. Next time this question comes up at a party - what is ½ factorial - you'll know the answer.
What is γ(0)? Near x = 0, the integrand is bounded below by 1 over 2x, hence the integral is not defined. Thus gamma is not defined at 0. By the same reasoning, gamma is not defined for the negative integers.
Let s lie between 0 and 1. Now γ(s) is dominated by the integral of xs-1, and from 0 to 1, this is well defined. From 1 to infinity, γ(s) is dominated by the integral of e-x, which is also finite. Thus gamma is defined for all s between 0 and 1, including s = 1.
Use integration by parts, as described above, to advance s by 1. Repeat this process, and gamma is defined for all s > 0.
Note that γ(i+1) is not i×γ(i). Attempt integration by parts, as we did before. We need to evaluate e-xxi at 0 and infinity. Write xi as elog(x)i, and for x near 0, the point spins around the unit circle at break neck speed. There is no limit, and integration by parts fails.
Move to the right, and everything works again. For instance, γ(3+i) is 2+i times γ(2+i). The limit of x2+i, at 0, is the madly spinning xi, squashed down to the origin by x2, so it all works out.
Let c be 1/n, and let gn(s) be the integral of E-xxs-1, as x runs from c to infinity. This is almost the gamma function, except we start integrating at c instead of 0.
Use the reasoning outlined above to show that gn(s) is analytic on the half plane to the right of 0. Thus gn(s) is a sequence of analytic functions that approaches γ(s). If convergence is locally uniform, we're done.
Fix a point p in the complex plane to the right of 0, and choose a radius r so that the closed disk, centered at p, with radius r, lies to the right of 0. The difference between gn(s) and γ(s) is given by an integral from 0 to c. As n increases, c decreases. The integral is largest when the integrand is everywhere positive. This happens when s is real, so slide the disk down until it straddles the x axis. From there, the integral is largest when s is small. The left edge of our disk, s = p-r, is the worst case. Therefore gn approaches γ uniformly over a closed disk, and each gn is analytic, hence γ is analytic.