Technical document sample

From pwiki
Jump to navigation Jump to search

Project 0

Introduction

Gaussian elimination is an algorithm used to solve system of equations. In the physical world, this technique can be used it to balance chemical equations, analyze electrical networks, and study the flow of traffic at a particular intersection.


Balancing Chemical Equations

An application of Gaussian elimination comes in the form of balancing equations which represent a chemical reaction. By definition, a chemical reactions occurs when a number of molecules combine to form new molecules.

In general, balancing a chemical reaction using matrices requires us to first, designate variables for the reactants and products. Secondly, we then equate the various elements from the left hand of the equation to the right hand components; this will generate a set of equations. To solve this set of equations, we then need to convert it into a homogeneous system, and represent it as a coefficient matrix. The rows of the matrix represent the quantity of each element in the unbalanced equations, whereas the columns represent the variables used to designate the number of molecules that are required by each compound in the final balanced equation.

To determine the balanced form of the equation, Gaussian elimination will be applied onto the matrix until a reduced row echelon form has been attained. Generally, a parameter will be required. The value of this parameter will be the smallest number which forces all other values to be positive and whole, since all reactions require integral molecules as opposed to fractions of them to complete the reaction.

Example

Photosynthesis is a process which harnesses the sun's energy, in the form of light, to convert carbon dioxide into sugar. Below is the chemical reaction for photosynthesis, which combines carbon dioxide with water to produce glucose and oxygen.


   


Balance this chemical equation.

Solution

The first step in balancing the reaction, is to designate the variables such that


   

We now equate the number of carbon, hydrogen, and oxygen atoms to form the following set of equations:

   

To simplify the process of obtaining the solution, the above set of equations has been converted into a homogeneous system:

   

Remark: In both systems (preliminary and homogeneous) each line (equation) represents one of the elements in the reaction.

To solve the homogeneous system, we apply Gaussian Elimination onto the system until a reduced row echelon form has been attained.

   

What follows is a series of row operations that take the above matrix to RREF.

   
   
   
        
   
     

Observe that we have four variables, but only three equations. As a result, we need to set a parameter. So from our final matrix, we see that

  

Which is equivalent to

  

If we let , then

  

Smallest value for which can be set to so that we have postive and whole numbers for the other variables is . So , and . The balanced equation is therefore: