A type of x-ray fluorescence used for elemental analysis that involves exciting elements in a sample then diffracting the emitted radiation by using a device, such as a crystal or monochromator, in order to measure the intensity of x-rays with a specific wavelength.