Dinitrogen is a colourless, tasteless, odourless gas and it can be formed by the decomposition of the nitrogenous compounds like nitrates, nitrites, and azides.
Decomposition of the ammonium nitrite gives the dinitrogen and water. This is one of the laboratory preparation of the dinitrogen.
(1) NH4NO2ΔN2+2H2O
Thermal decomposition of the ammonium nitrate gives the nitrous oxide gas. It is also known as the laughing gas.
(2) NH4NO3ΔN2O+2H2O
Thermal decomposition of the sodium azide gives the dinitrogen gas and sodium metal. This heating should be the absence of oxygen. This method is one of the laboratory preparation of the dinitrogen.
(3) 2NaN3Δ3N2+2Na
Hence, Only ammonium nitrite and sodium azide will be able to produce dinitrogen gas on thermal heating.