Solving chemical equations with linear algebra

5 posts
User avatar
Gender Female
Points 9692
Reviews 3900
...does anyone know how to do this?
Ubi caritas est vera, Deus ibi est.

"The mark of your ignorance is the depth of your belief in injustice and tragedy. What the caterpillar calls the end of the world, the Master calls the butterfly." ~ Richard Bach

Moth and Myth <- My comic! :D




User avatar
Gender Female
Points 5890
Reviews 440
I don't claim to be good at math, but I sometimes enjoy algebra. Perhaps if you could give us a specific example?
"In a sort of ghastly simplicity we remove the organ and demand the function...We laugh at honour and are shocked to find traitors in our midst. We castrate and bid the geldings be fruitful." ~C.S. Lewis




User avatar
Gender Male
Points 890
Reviews 915
Snoinkums---


I'm going to assume you're working with a system of chemical reactions, instead of just one. But basically you do the same thing you do when you're given:

3x+4y=7z
4x+2y=8z

except now x,y,z are your chemical species, and the numbers are the unknowns. You probably end up doing some kind of row-echelon reduction, LU / QR decomposition, etc.


Best,
Brad




User avatar
Gender Female
Points 9692
Reviews 3900
Um... here's a somewhat simplified explanation that you might be able to understand.

http://www.macatea.com/wshop/dialogs/di ... lances.pdf

Basically, it's using a matrix to determine the unknown coefficients of the chemicals.

My problem is basically figuring out what is on the "c" part, if that makes sense.
Ubi caritas est vera, Deus ibi est.

"The mark of your ignorance is the depth of your belief in injustice and tragedy. What the caterpillar calls the end of the world, the Master calls the butterfly." ~ Richard Bach

Moth and Myth <- My comic! :D




User avatar
Gender Male
Points 890
Reviews 915
Snoink--


The "C" part is the number of molecular compounds. That whole discourse on C-E just tells you whether the problem is underdetermined, overdetermined, or just right.

Otherwise, I'm not sure what other "c" part there is...? Could you be more specific, please?


Thanks!
Brad



For in everything it is no easy task to find the middle ... anyone can get angry—that is easy—or give or spend money; but to do this to the right person, to the right extent, at the right time, with the right motive, and in the right way, that is not for everyone, nor is it easy; wherefore goodness is both rare and laudable and noble.
— Aristotle