(a) Verify that the matrices representing the operators \hat{X} and \hat{P} in the N-space for a harmonic oscillator obey the correct commutation relation [\hat{X},\hat{P}]=i\hbar.
(b) Show that the energy levels of the harmonic oscillator can be obtained by inserting the matrices of \hat{X} and \hat{P} into the Hamiltonian \hat{H}=\hat{P}^{2}/(2m)+\frac{1}{2}m\omega ^{2}\hat{X}^{2}.