Problem 3.1 Gamma function
Integrate by parts:
\begin{align} \Gamma (x+1) & = \int\_{0}^{\infty} u^{x} e^{-u} , du \\ & = \int\_{0}^{\infty} u^{x} (-e^{-u})' d u \\ & = \left\[ u^{x}(-e^{-u}) \right]_{0}^{\infty} - \int_{0}^{\infty} (-e^{-u}) (x u ^{x-1}) , du \\ & = - \lim\_{ u \to \infty } \frac{u^{x}}{e^{u}} + x \int\_{0}^{\infty} e^{-u}u^{x-1} , du \\ & = x\Gamma(x) \end{align} \Gamma(1) = \int\_{0}^{\infty} e^{-u} , du \stackrel{s(u)=-u}= - \int\_{0}^{-\infty} e^s , ds = - \left\[ e^{s} \right]\_{0}^{-\infty} = 1Problem 3.2 MAP for the exponential density
let has an exponential density
the prior