## Expectation value of position of wavepacket

Hello, this is just a general question, how is <x^2> evaluated, if

<x> = triple integral of psi*(r,t).x.psi(r,t).dr (this is the expectation value of position of wavepacket)

Is it possible to square a triple integral? Is <x^2> the same as <x>^2 ?

I'm only wondering how the squared works in this situation, I would understand how to use <x> if the square wasn't there.

Thank you!
 PhysOrg.com science news on PhysOrg.com >> Ants and carnivorous plants conspire for mutualistic feeding>> Forecast for Titan: Wild weather could be ahead>> Researchers stitch defects into the world's thinnest semiconductor
 You cannot square the integral. The way it is written is (in 1 dimension): $$\left = \int \psi(x)^{\dagger}x^2\psi(x) dx$$ It will be different in most cases from ^2. For example, $$\int x^2 dx = \tfrac13 x^3 \neq \left(\int x dx\right)^2 = \tfrac14 x^4$$ So you are unable to take the square outside of the integral.
 Got it, thank you very much!