伽马函数 gamma function
定义如下
Γ
(
x
)
=
∫
0
+
∞
u
x
−
1
e
−
u
d
u
,
x
∈
R
\Gamma(x)=\int_0^{+\infty}{u^{x-1}e^{-u}\mathrm du},x\in\mathbb R
Γ(x)=∫0+∞ux−1e−udu,x∈R
根据分部积分有如下性质
Γ
(
x
)
=
(
x
−
1
)
Γ
(
x
−
1
)
\Gamma(x)=(x-1)\,\Gamma(x-1)
Γ(x)=(x−1)Γ(x−1)
以下计算
Γ
(
1
2
)
\Gamma(\frac12)
Γ(21)
Γ
(
1
/
2
)
=
∫
0
+
∞
1
t
e
−
t
d
t
=
∫
0
+
∞
2
s
s
e
−
s
2
d
s
=
2
∫
0
+
∞
e
−
s
2
d
s
=
π
\newcommand{\yint}{\displaystyle\int} \begin{matrix} \Gamma(1/2)&=&\yint_0^{+\infty}{\cfrac{1}{\sqrt t}\,e^{-t}\mathrm dt}\\ &=&\yint_0^{+\infty}{\cfrac{2s}{s}\,e^{-s^2}\mathrm ds}\\ &=&2\yint_0^{+\infty}{e^{-s^2}\mathrm ds} &=& \sqrt\pi \end{matrix}
Γ(1/2)===∫0+∞t1e−tdt∫0+∞s2se−s2ds2∫0+∞e−s2ds=π