Linear algebra for balancing chemical reaction equations

The balancing of chemical reaction equations is familiar for many, either from high school chemistry or introductory university chemistry. A simple example of such a problem is the reaction equation for the combustion of methane in oxygen:

,

for which we are supposed to find coefficients a,b,c and d that make the reaction possible in terms of conservation of the number of atoms of any element that is present. In this case, it is rather easy to see that the number of molecules must be equal to the number of molecules, and that the number of water molecules must be twice that. Therefore the possible equations are

, or

, or

,

or any other “multiple” of the first equation (obtained by multiplying all the coefficients in the equation with the same number).

Usually this kind of balancing is done mainly by intuition and trying to guess the right coefficients, but this can be difficult if the reactants and product contain many different elements, each of which are present in more than one kind of molecule. One example of a more complicated (but still quite simple) reaction is the reaction of chlorine dioxide () with alkaline water to form chlorate (), chlorite () and water:

.

Now, an easily applicable way to solve a set of acceptable coefficients a,b,c,d and e is to explicitly write the balancing condition equations for each element that appears in the equation. These balancing conditions are:

(balancing of chlorine) (balancing of oxygen) (balancing of hydrogen) (balancing of electric charge)

This can be solved with many kinds of mathematical software, either free (there’s lots of free math programs especially for Linux) or commercial (like Wolfram Mathematica).

But there’s one another thing. Because the number of unknowns in the system of equations above is larger than the number of equations by one, we need to decide the value of one of the coefficients arbitrarily. So let’s say that . Now the set of equations is:

(arbitrary choice of one coeffiecient) (balancing of chlorine) (balancing of oxygen) (balancing of hydrogen) (balancing of electric charge)