Hi.

Can you help me how to balance a chemical equation using linear algebra. I know how to do it on a piece of paper using the usual method of balancing. I just don't get the principle how to do it on the other method.

Please give me a step by step procedure on how to do it, the basic ones.

This is how far I have gone.

Ex: Fe + Cl2 = FeCl3

Set a variable for each

[A]Fe + ** Cl2 = [C] FeCl3**

Count the number of coefficients

Fe: A = C

Cl: 2B = 3C

And I'm stuck with here. I don't know how will I get 2Fe + 3Cl2 = 2FeCl3 (the correct answer)

If you have a better/easy one, can you please post it here. I need to create a program that will balance a given equation. I don't have a problem anymore on extracting the values, chemical symbols, and coefficients. My professor gave me until May 10 to do this so I need a quick response.

Hoping you could help me,

Michael