So here I am asked to find the reduction formula for:
$I_n=\int_{0}^{1} (2x-1)^ne^{x-x^2} dx$
The problem I have though is that the integration by parts is a mess. It doesn't matter what I let u equal. If $dv=e^{x-x^2} dx$ then I am unable to integrate and if $u=(2x-1)^n$ then I end up increasing the powers so I am stuck because in one case, I increase a function's power and in the other, I get something that can't be integrated...
I then noticed that if I let $u=x-x^2$, then $du=1-2x$ which is just the negative of what I have inside of the parenthesis but I am not really sure how to relate that...
If anyone could provide some guidance, that would be much appreciated. Thanks!
Let $I_n$ be the integral given by
$$I_n=\int_0^1 (2x-1)^ne^{x-x^2}\,dx \tag 1$$
Integrating by parts the integral in $(1)$ with $u=(2x-1)^{n-1}$ and $v=-e^{x-x^2}$ reveals
$$\begin{align} I_n&=\left.\left(-(2x-1)^{n-1}e^{x-x^2}\right)\right|_{x=0}^{x=1}+2(n-1)\int_0^1 (2x-1)^{n-2}e^{x-x^2}\,dx\\\\ &=-(1-(-1)^{n})+2(n-1)I_{n-2} \end{align}$$
It is straightforward to show that $I_0=e^{1/4}\sqrt{\pi}\text{erf}(1/2)$ and $I_1=0$.
Hence, we have $I_{2n+1}=0$ and the reduction formula for even terms
with $I_0=e^{1/4}\sqrt{\pi}\text{erf}(1/2)$.