An introduction to methods of quantum statistical mechanics used in quantum optics and their application to quantum theories of the single-mode laser and optical bistability. It discusses the generalized representations of Drummond and Gardiner and methods for deriving Fokker-Planck equations.