I have some doubts about an exercise. It asks me the expectation value of the momentum of a wavefunction in a two dimensional box. So I have to square the momentum and then operate with that on the wavefunction and integrate but still have this doubt about how to square it.
Is it true that the square of $\hat{P}$ operator in two dimension is $$\hat{P}^2=(ih)^2\left(\frac{\partial^2}{\partial x^2}+\frac{\partial^2}{\partial y^2}\right)$$