Answer: In the given chemical equation, the substance getting oxidized is magnesium metal.
Explanation:
Oxidation reaction is defined as the chemical reaction in which an atom looses its electrons. The oxidation number of the atom gets increased during this reaction.
[tex]X\rightarrow X^{n+}+ne^-[/tex]
The chemical equation for the reaction of magnesium and hydrochloric acid follows:
[tex]Mg(s)+2HCl(aq.)\rightarrow MgCl_2(aq.)+H_2(g)[/tex]
The half reaction for the above equation follows:
Oxidation half reaction: [tex]Mg(s)\rightarrow Mg^{+}(aq.)+2e^-[/tex]
Reduction half reaction: [tex]2H^+(aq.)\rightarrow H_2(g)+2e^-[/tex]
Hence, in the given chemical equation, the substance getting oxidized is magnesium metal.