Instrumental methods like mass spectrometry, UV-visible spectroscopy, infrared spectroscopy, nuclear magnetic resonance spectroscopy, and X-ray diffraction are used to analyze the structure and composition of molecules. Mass spectrometry can detect isotopes and small quantities of substances, while UV-visible and infrared spectroscopy examine how compounds absorb different wavelengths of light or infrared energy. Nuclear magnetic resonance spectroscopy detects hydrogen atoms based on their environment and spin, and X-ray diffraction analyzes crystal structures by measuring diffracted X-rays.