I know that the Gamma distribution is given by: $$\frac{1}{\beta^{\alpha}\Gamma(\alpha)}\int x^{\alpha-1}e^{-x/\beta}\,dx.$$ But when I calculate it, I'll always have to use integration by parts to solve it. Which takes so much time. I've seen a quick solution for this example like: $$\frac{1}{16}\int_{12}^{+\infty} x^2e^{-x/2}\,dx=25e^{-6}\approx 0.062.$$
But I didn't understand how they went from the left side to the right side. Is there a "quick and dirty" solution to solve such integral without having to use integration by parts? Same for Exponentional distribution.