It depends on what element is detected. Rare earth elements include 17 element. Is it quantitative or qualitative? Generally speaking, rare earth can be detected qualitatively or quantitatively by emission spectrum or X-ray fluorescence analysis.
At present, the light source used in emission spectrometry is generally plasma, that is, ICP-AES.