Roentgen was working with a cathode ray tube, like a flourescent light bulb. He took out the air, and replaced it with gas, passed electric voltage through it. When he did this, it produced a glow. He realized if he replaced the color inside the tube, it would give off an invisible ray. He named it the x-ray because in mathematics X is used to indicate the unknown quantity.