Originally developed for detecting air pollutants, a technique called proton-induced X-ray emission, which can quickly analyze the chemical elements in almost any substance without destroying it, is finding uses in medicine, archaeology, and criminology.