(a) When sodium carbonate is treated with dilute hydrochloric acid, sodium chloride is formed and carbon dioxide gas is liberated.
Na2CO3(s) + 2HCl(aq) → 2NaCl(aq) + CO2(g) + H2O(l)
(b) Carbon dioxide gas is liberated when dilute hydrochloric acid reacts with sodium carbonate.
When the gas, liberated during the reaction, is passed through lime water, the lime water turns milky or a white precipitate of calcium carbonate is formed. This confirms that the gas is none other than carbon dioxide.