(a) Electricity decomposes into hydrogen and oxygen gas when it passes through acidified water.
2H2 O → 2H2 + O2
(a) Thermal decomposition occurs when heat is applied.
An example of thermal decomposition is the heating of baking soda. The reaction can be written as follows:
2NaHCO3(s) → CO2(g) + H2O(g) + Na2CO3(s)