vela
Staff Emeritus
Science Advisor
Homework Helper
- 16,211
- 2,871
You need to use \hbar, not /hbar.
I'm going to use hats over the operators so you can keep track of what's going on. The first thing on the right is ##\hat{p}_x \psi = -i\hbar \frac{\partial \psi}{\partial x}##, so
$$\hat{p}_x \hat{x} \hat{p}_x \psi = \hat{p}_x \hat{x} (-i\hbar)\frac{\partial \psi}{\partial x} = -i\hbar\,\hat{p}_x \hat{x} \frac{\partial \psi}{\partial x}.$$
Now, again, evaluate the what the rightmost operator does.
I'm going to use hats over the operators so you can keep track of what's going on. The first thing on the right is ##\hat{p}_x \psi = -i\hbar \frac{\partial \psi}{\partial x}##, so
$$\hat{p}_x \hat{x} \hat{p}_x \psi = \hat{p}_x \hat{x} (-i\hbar)\frac{\partial \psi}{\partial x} = -i\hbar\,\hat{p}_x \hat{x} \frac{\partial \psi}{\partial x}.$$
Now, again, evaluate the what the rightmost operator does.