Balancing Chemical Reactions

Balancing chemical reactions by inspection becomes difficult as more complex molecules get introduced. For example, photosynthesis:

Equating the number of atoms:

Solving the equation:

So for , by setting

There are infinite solutions to the homogeneous system, but we cannot have a fractional number of molecules. We also want the smallest solution. So . Thus,