Elementary infrared spectroscopy