A student heats a sample of barium nitrate strongly and observes that a brown gas is evolved and a white solid remains.
(a) Write the equation for the thermal decomposition of barium nitrate.
(b) Suggest how the thermal stability of barium nitrate compares with that of magnesium nitrate, and explain your answer in terms of the ions involved.