Chemical formula is the representation of a substance by means of symbols. It denotes in a compound, the number of atoms of each element present.
(a) Sodium hydroxide
$$\begin{aligned}\text{Na}^{1+} \phantom{\nearrow} \text{OH}^{1-} \\[0.5em] \overset{\phantom{1}{1}}{\text{Na}} \space {\searrow}\mathllap{\swarrow} \space \overset{1}{\text{OH}} \Rightarrow \underset{\phantom{}1{}}{\text{Na}} \space {\searrow}\mathllap{\swarrow} \space \underset{1}{\text{OH}} \\[0.5em]\end{aligned}$$
So, we get the formula as $\bold{Na}\bold{OH}$
(b) Sodium nitrate
$$\begin{aligned}\text{Na}^{1+} \phantom{\nearrow} \text{NO}_3^{1-} \\[0.5em] \overset{\phantom{1}{1}}{\text{Na}} \space {\searrow}\mathllap{\swarrow} \space \overset{1}{\text{NO}_3} \Rightarrow \underset{\phantom{}1{}}{\text{Na}} \space {\searrow}\mathllap{\swarrow} \space \underset{1}{\text{NO}_3} \\[0.5em]\end{aligned}$$
So, we get the formula as $\bold{Na}\bold{NO}_3$
(c) Sodium bicarbonate
$$\begin{aligned}\text{Na}^{1+} \phantom{\nearrow} \text{HCO}_3^{1-} \\[0.5em] \overset{\phantom{1}{1}}{\text{Na}} \space {\searrow}\mathllap{\swarrow} \space \overset{1}{\text{HCO}_3} \Rightarrow \underset{\phantom{}1{}}{\text{Na}} \space {\searrow}\mathllap{\swarrow} \space \underset{1}{\text{HCO}_3} \\[0.5em]\end{aligned}$$
So, we get the formula as $\bold{Na}\bold{HCO}_3$
(d) Sodium sulphite
$$\begin{aligned}\text{Na}^{1+} \phantom{\nearrow} \text{SO}_3^{2-} \\[0.5em] \overset{\phantom{1}{1}}{\text{Na}} \space {\searrow}\mathllap{\swarrow} \space \overset{2}{\text{SO}_3} \Rightarrow \underset{\phantom{}2{}}{\text{Na}} \space {\searrow}\mathllap{\swarrow} \space \underset{1}{\text{SO}_3} \\[0.5em]\end{aligned}$$
So, we get the formula as $\bold{Na}_2\bold{SO}_3$
(e) Magnesium nitrate
$$\begin{aligned}\text{Mg}^{2+} \phantom{\nearrow} \text{NO}_3^{1-} \\[0.5em] \overset{\phantom{1}{2}}{\text{Mg}} \space {\searrow}\mathllap{\swarrow} \space \overset{1}{\text{NO}_3} \Rightarrow \underset{\phantom{2}{1}}{\text{Mg}} \space {\searrow}\mathllap{\swarrow} \space \underset{2}{\text{NO}_3} \\[0.5em]\end{aligned}$$
So, we get the formula as $\bold{Mg}\bold{(NO}_3)_2$
(f) Ammonium sulphate
$$\begin{aligned}\text{NH}_4^{1+} \phantom{\nearrow} \text{SO}_4^{2-} \\[0.5em] \overset{\phantom{1}{1}}{\text{NH}_4} \space {\searrow}\mathllap{\swarrow} \space \overset{2}{\text{SO}_4} \Rightarrow \underset{\phantom{2}{2}}{\text{NH}_4} \space {\searrow}\mathllap{\swarrow} \space \underset{1}{\text{SO}_4} \\[0.5em]\end{aligned}$$
So, we get the formula as $\bold{(NH}_4)_2\bold{SO}_4$
(g) Carbonic acid
$$\begin{aligned}\text{H}^{1+} \phantom{\nearrow} \text{CO}_3^{2-} \\[0.5em] \overset{\phantom{1}{1}}{\text{H}} \space {\searrow}\mathllap{\swarrow} \space \overset{2}{\text{CO}_3} \Rightarrow \underset{\phantom{2}{2}}{\text{H}} \space {\searrow}\mathllap{\swarrow} \space \underset{1}{\text{CO}_3} \\[0.5em]\end{aligned}$$ So, we get the formula as $\bold{H}_2\bold{CO}_3$
(h) Calcium phosphate
$$\begin{aligned}\text{Ca}^{2+} \phantom{\nearrow} \text{PO}_4^{3-} \\[0.5em] \overset{\phantom{1}{2}}{\text{Ca}} \space {\searrow}\mathllap{\swarrow} \space \overset{3}{\text{PO}_4} \Rightarrow \underset{\phantom{2}{3}}{\text{Ca}} \space {\searrow}\mathllap{\swarrow} \space \underset{2}{\text{PO}_4} \\[0.5em]\end{aligned}$$
So, we get the formula as $\bold{Ca}_\bold{3}\bold{(PO_4)_2}$