Earlier in class today, my professor explained how to derive the momentum operator. His derivation went like this:
$$\hat{KE} = \frac{-\hbar^2}{2m}\frac{\partial^2}{\partial x^2}$$ and $$KE=\frac{P^2}{2m} \Rightarrow P = \sqrt{2mKE}$$
Hence: $$\hat{P} = \sqrt{2m\frac{-\hbar^2}{2m}\frac{\partial^2}{\partial x^2}} \Rightarrow \hat{P} = -i\hbar\frac{\partial}{\partial x} \hspace{0.5cm}_{\square}$$
I understood how he got the $-i\hbar$ part, but I can't understand how he wrote $\sqrt{\frac{\partial^2}{\partial x^2}}$ as $\frac{\partial}{\partial x}$.
Is this not a normal derivative operator, hence we can manipulate it as such? Or can $\frac{\partial}{\partial x}$ be operated upon as if it were a number?
I do highly doubt the latter case as it doesn't make any sense to me. For example:
$$y = 3x^2 \Rightarrow \frac{dy}{dx}=9x^2 \Rightarrow \frac{d^2y}{dx^2}=18x$$ yet:
$$\sqrt{18x} \neq 9x^2$$
Am I thinking of this more 'number-based' than it should be? Should $\frac{d}{dx}$ be thought of as a more 'abstract' operator that we can manipulate as we please?