Quantum mechanics of the anharmonic oscillator