Well, not exactly since the coefficients ##a## and ##b## are taken to be general here. Nevertheless, you can still adopt the same method to find the eigenvalues, e.g. in the harmonic oscillator, the eigenvalues of the Hamiltonian are half-odd multiples of ##\hbar \omega##. In this problem, ##\hbar \omega## must be replaced by something else.
If you are familiar with the harmonic oscillator problem, you don't have to start over again from the factorization of the Hamiltonian into the ladder operators, just make some replacement of the constants.[/You mean I change this polynomial to 1dim. H.O. hamiltonian?]
I thought there should be another way of diagonalizing this using operators algebra. I mean putting this polynomial inside a basis bra ket, maybe <n | n>. I tried to sandwich it in position basis bra ket, wrote p in position representation, but I don't know how to proceed.