Alkali metals have played an important role in optical and atomic physics from the very beginning. This thesis deals with three aspects and applications of alkali-metal atoms, in particular rubidium (Rb). Optical pumping changes both the amplitudes and the center positions of the absorption profiles in the Doppler-broadened D-line spectra of the alkali-metal atoms. This effect has been studied by reducing the multilevel system to an effective three-level system and by treating the finite interaction time and collisions with the vapor-cell walls in two different ways: as ground-state relaxation and by averaging the time-dependent absorption over the distribution of interaction times. The former is a computationally efficient way to compar...