Integral: \int x^n e^x dx, where n is a positive integer.
We anticipate that the solution will depend on n
Use integration by parts: choose u and \frac{dv}{dx}.
Differentiate u: \frac{du}{dx} = nx^{n-1}.
Integrate \frac{dv}{dx}: v = e^x.
Apply integration by parts formula: \int u dv = uv - \int v du
\int x^n e^x dx = x^n e^x - \int e^x nx^{n-1} dx
\int x^n e^x dx = x^n e^x - n \int x^{n-1} e^x dx
This is a reduction formula because it reduces the power of x in the integral from n to n-1.
Second part of the example: evaluate the integral \int x^2 e^x dx