A vacuum ultraviolet lamp ionizes a chemical substance contained in
exhaust gas Gs. The chemical substance ionized is trapped in an ion
trapping apparatus in which a radio frequency electric field is formed.
Energy is applied to an ion group in the ion trapping apparatus with a
SWIFT waveform comprising a frequency component excluding a frequency
corresponding to an orbital resonance frequency of ions of the chemical
substance to remove an impurity. Energy is then applied to the ion group
with a TICKLE waveform having a frequency component corresponding to the
orbital resonance frequency of the ions of the chemical substance to
fragmentate the ions of the chemical substance. A mass of the fragment is
then measured with a mass spectrometer to identify the chemical
substance.