The quadrupole consists of four parallel rods arranged in a square configuration. Ions generated from the sample pass through these rods. By applying both a constant direct current (DC) and a radio frequency (RF) voltage, the quadrupole can selectively filter the ions. Only ions with a specific m/z will reach the detector, while others are destabilized and discarded. This selective filtering is crucial for accurate identification of substances in complex mixtures.