A method and apparatus for observing a specimen in atomic force microscopy with
a vibrating cantilever maintained in resonance while a probe attached to the cantilever
is maintained in contact with the specimen. The Q factor of the cantilever is determined
based upon the detected amplitude.