Tuesday, May 10, 2011

Balancing Equations Using Matrices

A simple example goes a long way. We can form water by combing hydrogen gas (H2) and oxygen (O2) in the presence of electricity. The reaction looks like this:


H2 + O2 ---> H2O
If you do some of the gram molecular weight calculations you will find this:


2 g of hydrogen + 32 g of oxygen = 18 g of water
What this says is that you start with 34 grams of stuff and end up with 18 grams of stuff. You've lost 16 grams of stuff, and in this reaction that just doesn't happen! Where did the 16 grams go?

They're not lost, we just haven't balanced the equation! You might have also noticed that there are two oxygens on the left and only one on the right! We need to get things in the correct proportions for this reaction to be balanced. The balanced reaction looks like this:


2 H2 + O2 ---> 2 H2O
This says that we need two hydrogen molecules to combine with one oxygen molecule to form two new water molecules. If we do the math:


(2 x 2 g of hydrogen) + 32 g of oxygen = (2 x 18 g of water)
we now have 36 grams of stuff on the left and 36 grams on the right. We also now have 4 hydrogens on the left, four hydrogens on the right, two oxygens on the left, and two oxygens on the right. We can say that this equation is mass balanced. In your studies of chemistry, you will also need to be concerned with charge balancing, but we'll let your profs help you with that!

Balancing equations is an art, but if you have a calculator that can handle what is known as a "matrix", you have a foolproof way of balancing equations! A matrix is a group of numbers, arranged in rows and columns, like this:



This is called a "2 by 2" or "2 x 2" matrix, because it has two rows (going across) and two columns (going down). In this application, you will have to do three matrix operations:


Multiply two matrices
Find the determinant of a matrix
Find the inverse of a matrix
Fortunately, graphing calculators make this particularly easy! To help you understand a little of what you are doing, let's explain finding the determinant. The determinant is a single number generated by cross-multiplying the terms in the matrix. You must have a square matrix (n X n) to be able to find the determinant. The equation for finding the determinant is:



The example below the equation shows a sample calculation for a 2 x 2 matrix. Notice that you are cross multiplying the opposite terms, then subtracting out the other set of opposite set of multiplied terms. Pretty easy.

Here is how this is done on the TI-82 Graphical Calculator. These instructions are SPECIFIC to the TI-82:

Turn the calculator on (yep, common sense, but want to make sure that's done!)
Hit the "MATRIX" button
Use right arrow key to scroll over to "EDIT"
Type "1" for Matrix A
Type "2" for number of rows, the ENTER
Type "2" for number of columns, then ENTER
Type each of the numbers, following each with ENTER: 8-ENTER-3-ENTER-4-ENTER-2-ENTER
Type the blue "2nd" button then "QUIT" (above the MODE button)
Type MATRIX, then scroll to MATH
Hit "1" for "det"
Hit MATRIX then "1". You should see "det [A]" in the window.
Hit the ENTER key, you should see the result "4"

2 comments:

  1. Very interesting post Naim! you are showing us how matrices are used in balancing equations, and you are showing us how to use a calculator to find the determinant of a matrix!
    Thanks!

    ReplyDelete
  2. It was really amazing to know that through balancing equations calculator we can calculate and find the whole thing .So be here to help us and and to know what it's use .

    ReplyDelete