Gas chromatography analysis separates compounds in complex mixtures, and mass spectroscopy analysis determines the molecular weight and ionic fragments of individual components, aiding in the identification of those compounds.