Both terms in the Harmonic Oscillator Hamiltonian are squares of operators.
Note that
is chosen so that
is close to the Hamiltonian.
First just compute the quantity
From this we can see that the Hamiltonian can be written in terms of and some constants.