I ran into this problem where I needed to use the following integral equality in my physics textbook.
$$\int_0^\infty x^ne^{-\alpha x} \, dx=\frac{n!}{\alpha^{n+1}}$$
where $n$ is a positive integer and $\alpha$ is a positive constant.
I was just wondering how one arrives at this equality.
\begin{align} & \int_0^\infty x^ne^{-\alpha x} \, dx \\[8pt] = {} & \frac 1 {\alpha^{n+1}} \int_0^\infty (\alpha x)^n e^{-\alpha x} \, (\alpha\, dx) \\[8pt] = {} & \frac 1 {\alpha^{n+1}} \int_0^\infty y^n \big( e^{-y} \, dy\big) \\[8pt] = {} & \frac 1 {\alpha^{n+1}} \int u\, dv \\[8pt] & \text{where } u = y^n \text{ and } dv = e^{-y}\, dy. \end{align} From here you integrate by parts: $\displaystyle \int u\, dv = uv - \int v\,du.$
In the $uv$ term, the value when $y=0$ will be $0$ except when $n=0.$
The value when $y\to\infty$ can be found via L'Hopital's rule to be $0.$
You should end up with $\displaystyle \frac 1 {\alpha^{n+1}} \cdot n \int_0^\infty y^{n-1} e^{-y} \, dy.$
So doing the same thing again will give you $\displaystyle \frac 1 {\alpha^{n+1}} \cdot n(n-1) \int_0^\infty y^{n-2} e^{-y} \, dy.$
And again, and you get: $\displaystyle \frac 1 {\alpha^{n+1}} \cdot n(n-1)(n-2) \int_0^\infty y^{n-3} e^{-y} \, dy.$
And so on, so you just need to recognize the pattern. Or to put it another way, use mathematical induction on $n.$