EDX involves directing a focused beam of electrons onto a sample's surface, causing the atoms in the sample to emit X-rays. Each element emits X-rays at characteristic energies. By measuring these energies, EDX can identify and quantify the elements present in the sample. This makes it an invaluable tool for nanotechnology research where precise elemental analysis is necessary.