Search⌘ K
AI Features

Problem: Balancing Chemical Equations, Part I

Learn how to balance chemical equations using linear programming.

Overview of the problem

Balancing a chemical equation essentially means respecting the conservation of mass and ensuring that the same number of atoms of an element are present on the left-hand side (reactants) and the right-hand side (products). Simply put, if you have X grams of an element as a reactant, the product will also have X grams of that element in the products (ideal conditions).

In the figure above, we can notice the following:

  • In the unbalanced equations, there are 2 atoms of H and Cl in the products. However, there is only a single atom of H and Cl in the reactants. This does not ...