From the Department of Homeland Insecurity’s Systems Engineering Study of Civil Aviation Security:
… X-ray images do not provide the information necessary to effect detection of explosives.
Naturally, since the study concludes that it’s difficult or impossible to detect explosives inside someone’s shoe, the Department just made it mandatory to remove your shoes and pass them through the x-ray machine.
Ooh, the logic. Head… hurts…