In $1$D, to show an operator $\hat{A}$ is Hermitian, all one needs to do is check that
$(\psi A,\psi) = (\psi, \psi A)$ for all normalisable wavefunctions $\psi$.
Here $(\cdot,\cdot)$ is the inner product defined by $(\psi,\phi) = \int_{-\infty}^\infty \psi^*\phi$ $ dx$ $\color{red}{(\dagger)}$ (the star denotes complex conjugation).
I'm asked to show that the operators $-i\hbar \partial/\partial x$ and $-i\hbar \partial/\partial y$ in TWO dimensions are Hermitian.
I'm a bit lost here because so far as I'm aware the analog of $\color{red}{(\dagger)}$ in $2$D is
$(\psi,\phi) = \int_{-\infty}^\infty dy \int_{-\infty}^\infty dx$ $\psi^*\phi$
But because $\hat{p}_x = -i\hbar \partial/\partial x$ is independent of $y$, it looks like the inner product $(p_x \psi,\psi)$ will diverge - it doesn't seem to work out.
Where have I got it wrong?