Let $ H = \frac{-h^2}{2m}\frac{\partial^2 }{\partial x^2}$. I want to find the matrix elements of $H$ in position basis. It is written like this:
$\langle x \mid H \mid x' \rangle = \frac{-h^2}{2m}\frac{\partial^2}{\partial x^2} \delta(x -x')$.
How do we get this? are we allowed to do $\langle x | \frac{\partial^2}{\partial x^2} \mid x' \rangle = \frac{\partial^2}{\partial x^2} \langle x \mid x' \rangle$? Why? It seems some thing similar is done above.
)$ and not $\delta_{x,x
}$ $\endgroup$