I need to calculate <x^n> and <p^n> for psi(x)=exp(-ax^2/2) for n even. For <x^n>: <x^n>=integral(exp(-ax^2)*x^n )dx from -inf to +inf then i use integration by parts to get an infinite series and i use a formula to find the finite sum of the series =[exp(-ax^2)*x^(n+1)/((n+1-2a*(n+1)^2)] with limits -infinity to +infinity i don't think this is sufficient as i believe the answer should result in a constant and when i use this to work out <x^2>, i can't get a finite answer. I am not sure of another way to work through this question. For <p^n> i have shown that for n odd, this vanishes, but for n even i am not sure what the answer is. I would appreciate any help or suggestions on where to start with this question, thanks.