# Expectation Values (Averages)

The expected value (or expectation, mathematical expectation, mean, or first moment) refers to the value of a variable one would "expect" to find if one could repeat the random variable process an infinite number of times and take the average of the values obtained. More formally, the expected value is a weighted average of all possible values.

## Expectation value of momentum

$\langle p_z \rangle = \int \Psi^* p_z \Psi\;dz$

where

$p_z = -i \hbar \dfrac{\partial}{\partial z}$

Example $$\PageIndex{1}$$: Free Particles

For a free particle $$\Psi= e^{ikz}$$.

$-i\hbar\dfrac{\partial}{\partial z}\ e^{ikz}=\hbar k\ e^{ikz}$

Example $$\PageIndex{2}$$: Bound in a Box

For a bound particle in a box of length $$L$$, $$\Psi = \sqrt{(2/L)}\sin(npz/L)$$

$\langle p_z\rangle=\dfrac{2}{L} \left(-i \dfrac{n\pi\hbar}{L}\right)\int_{0}^{L}\sin\left(\dfrac{n\pi\,z}{L}\right)\cos \left(\dfrac{n\pi\,z}{L}\right)dz$

$-i\hbar \dfrac{\partial }{\partial z}\sin \left(\frac{n\pi\,z}{L}\right)=-i \dfrac{\hbar\ n\pi}{L}\cos \left(\frac{n\pi\,z}{L}\right)$

Following a simple substitution approach to solving this integral, let $$u = npz/L$$ and $$du = np/L dz$$, then $$dz = L/np du$$

$\langle p_z\rangle=\frac{2}{L}(-i\hbar)\int_{0}^{n\pi}\sin(u)\cos(u) du=0$

Note that this makes sense since the particles spends an equal amount of time traveling in the $$+x$$ and $$–x$$ direction.

Expectation value of energy

$\langle E_z \rangle=\int\Psi^* T_z\Psi\,dz$

where the translation energy operation in the z-direction:

$T_z=-\dfrac{\hbar^2}{2m}\dfrac{\partial^2 }{\partial z^2}$

For a bound particle

$-\dfrac{\hbar^2}{2m}\dfrac{\partial^2 }{\partial z^2}\sin\left(\dfrac{n\pi\,z}{L}\right)=\dfrac{\hbar^2n^2\pi^2}{2mL^2}\sin \left(\dfrac{n\pi\,z}{L}\right)$

and using the normalized wavefunction

$\langle E_z\rangle=\dfrac{2}{L}\left(\dfrac{\hbar^2n^2\pi^2}{2mL^2}\right)\int_{0}^{L}\sin^2\left(\dfrac{n\pi\,z}{L}\right)\,dz$

Let $$u = npz/L$$ and $$du = np/L\, dz$$, then $$dz = L/np\, du$$

$\langle E_z\rangle=\dfrac{2}{L}\left(\dfrac{\hbar^2n^2\pi^2}{2mL^2}\right)\left(\dfrac{L}{n\pi}\right)\int_{0}^{n\pi}\sin^2(u)\,du=\dfrac{2}{L}\left(\dfrac{\hbar^2n^2\pi^2}{2mL^2}\right)\left(\dfrac{L}{n\pi}\right)\dfrac{u}{2}\Biggr\rvert_{0}^{n\pi}\\=\dfrac{\hbar^2n^2\pi^2}{2mL^2}=\dfrac{h^2n^2}{8mL^2}$

## Expectation value of position

$\langle z\rangle=\int\Psi^* z\Psi\,dz$

For the bound particle in a box.

$\langle z\rangle=\frac{2}{L}\int_{0}^{L}\sin^2\left(\frac{n\pi\,z}{L}\right)\,z\,dz$

Let $$u = npz/L$$ and $$du = np/L\; dz$$, then $$dz = L/np\; du$$

$\langle z\rangle=\frac{2}{L}\left(\frac{L^2}{n^2\pi^2}\right)\int_{0}^{n\pi}\sin ^2(u)u\,du$

$\int\sin^2(x) x\,dx=\frac{x^2}{4}+\frac{sin^2(x)}{4}-\frac{\cos(x)\sin (x)}{2}$

Therefore, <z> = L/2. This is logical since the average position of the particle is in the middle of the box.