One dimension in position representation:
In three dimensions In position representation, we define it by using the gradient, and so we see that
Position and Momentum from Wavefunctions by Faculty of Khan (2018)
. Source. Proves in detail why the momentum operator is . The starting point is determining the time derivative of the expectation value of the position operator.