Infrared IR spectroscopy is a useful spectroscopic technique to distinguish between two organic compounds with similar molecular formulas but different functional groups. IR spectroscopy measures the vibrations of molecular bonds in response to infrared radiation, and different functional groups have characteristic absorption bands in the IR spectrum. By comparing the IR spectra of the two compounds, the presence or absence of specific functional groups can be identified, allowing for differentiation between the two compounds.