Here's the balanced chemical equation:
Mg²⁺(aq) + 2 NaC₁₇H₃₅COO(aq) → Mg(C₁₇H₃₅COO)₂(s) + 2 Na⁺(aq)
Explanation:
* Magnesium ions (Mg²⁺) react with two molecules of sodium stearate (NaC₁₇H₃₅COO).
* The stearate anions (C₁₇H₃₅COO⁻) displace the sodium ions (Na⁺) from the stearate molecules.
* Magnesium stearate (Mg(C₁₇H₃₅COO)₂) is formed as a solid precipitate, while sodium ions (Na⁺) remain in the solution.
Note: Magnesium stearate is a common ingredient in cosmetics, pharmaceuticals, and other products as a lubricant, thickener, and stabilizer.