EDITED POST
Suppose we have a classical problem where the Hamiltonian is defined as: $$H = c\frac{p^2}{x}$$ This Hamiltonian emerges in the context of Hamiltonian 1D cosmology, where we define $x= a(t)x_0$ as the position of some quantum particle in a flat isotropic homogeneous universe. In this case we take $x\geq 0$ since we are considering it to be a sort of radial coordinate.
For some reasons, one wishes to quantize this system in the momentum space, so that: \begin{equation} \begin{cases} \hat{p}^2 \phi(p) = p^2\phi(p)\\ \hat{x}\phi(p) = i\frac{d}{dp}\phi(p) \end{cases} \end{equation} On some dense domain D. To solve the Eigenvalue equation for $\phi$ one poses: $$\hat{H}\phi(p)=E\phi(p)$$
The operator order taken in consideration, for easier calculations, is: $$\frac{p^2}{x}\rightarrow \left(\frac{1}{\hat{x}}\right)(\hat{p}^2)$$
The problem thus reads:
$$c\left(\frac{1}{\hat{x}}\right)(\hat{p}^2)\phi(p)=E\phi(p)$$
At first sight i thought to solve the problem acting on the left with $\hat{x}$ obtaining: $$\left(c\hat{p}^2 - E\hat{x}\right)\phi(p)=0$$ But im not convinced this is well posed.
My question is:
Is this a correct way to solve the eigenvalue problem when dealing with the classical term $1/x$?
I cannot find another way to implent such an operator with different results.
The momentum Hilbert space should be $\mathcal{H}=L^2(\mathbb{R})$ but i think that those wave functions $\phi(p)$ are not normalizable, just like the plane waves