X-ray diffraction (XRD) operates by measuring the emission of characteristic particle return angles from a material that has been excited by bombarding with high-energy X-rays or gamma rays. X-ray diffraction is widely used for elemental analysis and chemical analysis, particularly for research in geochemistry, forensic science, pharmaceuticals, and archaeology.