Why Use Matrices in Chemistry?
In high school chemistry, students learn to balance chemical equations using trial and error. While this works for simple equations like H2 + O2 → H2O, it quickly becomes frustrating for complex organic combustion reactions or redox systems.
Because chemical equations must conserve massâ€â€meaning the number of atoms of each element must be identical before and after the reactionâ€â€they are actually **systems of linear equations** in disguise. We can solve them exactly and instantly using matrix row reduction.
Step-by-Step Example: Combustion of Propane
Let's balance the combustion of propane:
x1 C3H8 + x2 O2 → x3 CO2 + x4 H2O
We need to find the coefficients x1, x2, x3, x4.
Step 1: Set up conservation equations for each element
- Carbon (C):
3x1 = x3→3x1 - x3 = 0 - Hydrogen (H):
8x1 = 2x4→8x1 - 2x4 = 0 - Oxygen (O):
2x2 = 2x3 + x4→2x2 - 2x3 - x4 = 0
Step 2: Build the homogeneous matrix
We write this system as a 3x4 matrix representing the variables [x1, x2, x3, x4]:
| 3 | 0 | -1 | 0 |
| 8 | 0 | 0 | -2 |
| 0 | 2 | -2 | -1 |
Step 3: Solve for RREF
Reducing this matrix to RREF yields:
| 1 | 0 | 0 | -0.25 |
| 0 | 1 | 0 | -1.25 |
| 0 | 0 | 1 | -0.75 |
Step 4: Solve in terms of the free variable
The last column has no pivot, so x4 is our free variable. Converting rows back to equations:
- Row 1:
x1 = 0.25 x4 - Row 2:
x2 = 1.25 x4 - Row 3:
x3 = 0.75 x4
To find the smallest integer coefficients, we choose the smallest value for x4 that clears all decimals (converting them to whole numbers). Setting x4 = 4 gives:
x1 = 0.25 × 4 = 1x2 = 1.25 × 4 = 5x3 = 0.75 × 4 = 3x4 = 4
The balanced equation is: 1 C3H8 + 5 O2 → 3 CO2 + 4 H2O.