Solution
= Solution
The <canonical commutation relation> is $[p_x,x]=-i\hbar I$. Applying the <commutator product rule> on a common <operator domain>,
$$
[p_x^2,x]=p_x[p_x,x]+[p_x,x]p_x
=\boxed{-2i\hbar p_x}.
$$
Equivalently, applying both sides to a twice differentiable <test function> gives $-\hbar^2[(xf)''-xf'']=-2\hbar^2f'$, the same result.