Quantum mechanical treatment of linear harmonic oscillator