I have just a little confusion on some formalism in QM. I have a Hamiltonian density function, $h(x)$, where the regular Hamiltonian is given by
$$ H(x) = \int d^{3} \vec{x} \ h(x) $$
I'm wondering, if I am in a situation where I need to act the Hamiltonian on some function, would this function go inside the integral or after it?
$$ H(x) \phi(x) = \int d^{3}\vec{x} \ \left[h(x)\phi(x)\right] $$ OR $$ H(x) \phi(x) = \left[ \int d^{3} \vec{x} \ h(x) \right] \phi(x) $$
