A decomposition reaction occurs when a chemical compound is broken down into elements or smaller compounds. The generalised equation for a decomposition reaction is:
AB →→ A + B
Mercury oxide when heated in air will decompose to give elemental mercury, a liquid metal, and oxygen gas. It is mercury (II) oxide or mercury (I) oxide.
The balanced equation for mercury (II) oxide:
2HgO + heat ---> 2Hg + O2