In Science, textbook for class IX, chapter $3$ [1,p.38], it states:
The rules that you have to follow while writing a chemical formula are as follows:
- in compounds formed with polyatomic ions, the number of ions present in the compound is indicated by enclosing the formula of ion in a bracket and writing the number of ions outside the bracket. For example, $\ce{Mg(OH)2}$. [...]
Now my book further states that hydroxide ($\ce{OH–}$) and nitrate ($\ce{NO3-}$) are polyatomic ions. And then it says:
Formula of sodium nitrate: $\ce{NaNO3}$
But the formula of calcium hydroxide: $\ce{Ca(OH)2}$
My question is that even though both nitrate and hydroxide are polyatomic, why are we using ( ) in notation for latter in their symbolic representations?