Expectation values as functions of the oscillator frequency