how to find the ladder operators for this hamiltonian: $$\widehat{H}=a\widehat{A}^2 + b\widehat{B}^2$$ where $a$ and $b$ are two real and positive constants.
And how to write the hamiltonian in function of the two ladder operators?
Actually the answer is:$$a_-=\frac{1}{\sqrt{2a}}\widehat{A}+i\frac{1}{\sqrt{2b}}\widehat{B}$$ and $$a_+=\frac{1}{\sqrt{2a}}\widehat{A}-i\frac{1}{\sqrt{2b}}\widehat{B}$$
And the condition on the commutator $\widehat{A}$ and $\widehat{B}$ for having: $[a_-,a_+]=\widehat{1}$, I found: $$[\widehat{A},\widehat{B}]=i\sqrt{ab}$$
but I couldn't reach them.
Thank you in advance.