The gunshot residue deposited in a gunshot wound can be detected by using scanning electron microscopy coupled with energy-dispersive x-ray microanalysis to demonstrate the characteristic elemental pattern of the primer residue with lead, antimony, and barium, typical for many cartridges, as shown in this diagram.