We all know that gamma function's definition is $$\Gamma \left( x \right) = \int\limits_0^\infty {s^{x - 1} e^{ - s} ds}$$ and it is divergent for $x<0$.
Yesterday, I was studying about Bessel function and i came up with a dilemma. In Bessel function for negative numbers, i.e. $J_{-\alpha}$ they use a term like $\Gamma(m-\alpha+1)$ and when $m<\alpha-1$ series is defined although gamma function is undefined. Also in class there were questions like finding $\Gamma\left(-\frac{1}{2}\right)$ where it is a definite value? $$\Gamma\left(-\frac{1}{2}\right)=-2\sqrt{\pi}$$ but how is it well-defined, isn't it diverging? And how is it a negative number?
Summarizing, how exactly is gamma function defined?