\(\left(1\right)Mg+H_2SO_{4\left(loang\right)}\rightarrow MgSO_4+H_2\)
\(\left(2\right)MgSO_4+2NaOH\rightarrow Mg\left(OH\right)_2\downarrow+Na_2SO_4\)
\(\left(3\right)Mg\left(OH\right)_2+2CH_3COOH\rightarrow\left(CH_3COO\right)_2Mg+2H_2O\)
\(\left(4\right)3\left(CH_3COO\right)_2Mg+3K_3PO_4\rightarrow6CH_3COOK+Mg_3\left(PO_4\right)_2\)