I've attempted the following question which involves integration by parts. I've only recently learnt come across this skill, which means there is a very large chance that I'm doing something wrong.
Find $$\int_{-∞}^{∞} Ax^2e^{-x^2/2σ^2} \,dx$$ given that $$\int_{-∞}^{∞} Ae^{-x^2/2σ^2} \,dx =1$$
Using the general form for integration by parts, $$\int_{-∞}^{∞} f(x)g'(x) \,dx=f(x)g(x)-\int_{-∞}^{∞} g(x)f'(x) \,dx$$, I let $f(x)=x^2$, and $g'(x)=Ae^{-x^2/2σ^2}$. Therefore, $f'(x)=2x$ and $g(x)=1$. Substituting these in to the formula, I get $$\int_{-∞}^{∞} Ax^2e^{-x^2/2σ^2} \,dx=x^2-\int_{-∞}^{∞}2x \, dx=x^2-(x^2+c)=-c$$. However, this is incorrect (I know this because I have to submit the answer and the website, which is Isaac Physics, will tell me whether it is correct or not with no explanation). I don't know where I've gone wrong.