An X-ray fluorescence (XRF) it works on wavelength-dispersive spectroscopic principles that are similar to an electron microprobe (EPMA). However, an XRF cannot generally make analyses at the small spot sizes typical of EPMA work (2-5 microns), so it is typically used for bulk analyses of larger fractions of geological materials. The relative ease and low cost of sample preparation, and the stability and ease of use of x-ray spectrometers make this one of the most widely used methods for analysis of major and trace elements in rocks, minerals, and sediment.