How would you prove that a substance contains magnesium ions?
Add sodium hydroxide solution to the substance and if a white precipitate is observed that does not dissolve in excess sodium hydroxide then there are magnesium ions in the substance.
RC
Add sodium hydroxide solution to the substance and if a white precipitate is observed that does not dissolve in excess sodium hydroxide then there are magnesium ions in the substance.