# How to compute the following integral

I was wondering how to compute the following integral:
$$\int xe^{\frac{-x^2+2x\cdot x_0-x_{0}^2}{2a^2}}dx$$

it would be quite simple if there was no term in the exponent x times x0 i think...any help on this thanks

## Answers and Replies

Related Calculus and Beyond Homework Help News on Phys.org
Factor the expression in the exponent and then make a substitution.

i factored the exponent to be -(x-x0)^2 but what is the substitution to make? u = x-xo? this does not help because of the x...

use integration by parts after making the substitution.

so the substitution i proposed is the correct one to make?

Try u=(x-x0)2, I think that should work, but it might be a bit messy, I'm pretty sure parts will not work though.

but for what you propose then du=2(x-xo)dx, which cannot be put into the integral like this...

dextercioby