You are on page 1of 4

Materials Today: Proceedings xxx (xxxx) xxx

Contents lists available at ScienceDirect

Materials Today: Proceedings


journal homepage: www.elsevier.com/locate/matpr

Gauss Jordan method for balancing chemical equation for different


materials
Bharat Udawat, Jatin Begani, Mudit Mansinghka, Nipun Bhatia, Hardik Sharma, Arti Hadap ⇑
Department of Basic Sciences and Humanities, NMIMS Deemed-to-be University, Mumbai, Maharashtra, India

a r t i c l e i n f o a b s t r a c t

Article history: The Gauss Jordan method is used in this study to equalize chemical reactions using a system of linear
Received 3 May 2021 equations. One of the most common topics in Chemistry is balancing chemical reaction equations.
Received in revised form 15 May 2021 Students typically struggle with balancing the chemical equation and find it difficult to understand;
Accepted 26 May 2021
sometimes teachers struggle as well to balance chemical equations. The results of the equation balancing
Available online xxxx
comply with the law on the conservation of matter and confirm that the existing methods for balance of
chemical equations do not contradict each other. To solve the mathematical problem, the Gauss-Jordan
Keywords:
method was used. Any chemical reaction can be handled using this method by certain reactants and
Balancing chemical equation
Chemical reaction
products. we can add several other features to the python application which can check whether the
Linear equation chemical equation is already balanced or not, we can also categorise the type of the chemical reaction.
Gauss Jordan method Ó 2021 Elsevier Ltd. All rights reserved.
Selection and peer-review under responsibility of the scientific committee of the 1st International Con-
ference on Computations in Materials and Applied Engineering – 2021.

1. Introduction is unlikely, just a insignificant aalternative occurs, where all of


the coefficients are zero. There are many statistical techniques to
A chemical equation [1] defines an expression of elements, balance a chemical equation in mathematics and chemistry.
atoms, molecules, or ions as a symptomatic definition of a chemical They’re all built on general matrix inverses and contain systematic
reaction. For the production of such expressions, the reactant or science features that necessitate a higher degree of mathematical
product coefficients, as well as the product or molar mass, are understanding to comprehend. The Gauss Jordon method is intro-
balanced [2]. Equilibrating the equations that describe a reacting duced here, and it can be used to manage any chemical reaction in
system’s stoichiometry is a mathematical process that can be which the product and reactants are known. This approach works
reduced to solving homogeneous linear systems [3]. Generalized well with both basic and complicated reactions, as shown in the
inverses are commonly used to balance chemical equations. Addi- solved problem in further sections. The Gauss-Jordan method is
tionally, machine algebra applications can easily solve the problem one of several widely used techniques to analyze linear equations
of balancing chemical equations. mechanisms. This procedure has undergone investigation. Based
For chemists, finding the smallest positive integer amount of on the description and research, this paper focuses on balancing
reactant and substance that must be equal during a chemical reac- chemical reactions using a system of linear equations with the
tion is sufficient. This thesis teaches chemistry students how to use Gauss-Jordan exclusion to show that a system of linear equations
the Gauss-Jordan method to create a homogeneous system of lin- may be employed for determining the coefficient of each com-
ear equations whose solution provides a fitting meaning to com- pound in chemical reaction equations.
plement a chemical reaction equation. When a reaction between There are two parts to the Gaussian Jordon method process. The
chemicals is possible, it is a normal phenomenon, and the equation initial part (forward elimination) reduces the formula to a echelon
that results is still consistent. As a result, we’ll need a nontrivial or triangular form [4] or produces a degenerated equation that
solution. And, if it exists, we should be able to obtain it. This is a does not provide a solution, which means the system is an irresol-
true statement that does not introduce any errors. If the reaction uble molar mass. Simple row operations are used to achieve this.
The solution to the scheme of linear equations is found in the sec-
ond phase by using back substitution. Gaussian elimination [5]
⇑ Corresponding author. computes matrix decomposition, which is another viewpoint that
E-mail address: arti.hadap@nmims.edu (A. Hadap).

https://doi.org/10.1016/j.matpr.2021.05.576
2214-7853/Ó 2021 Elsevier Ltd. All rights reserved.
Selection and peer-review under responsibility of the scientific committee of the 1st International Conference on Computations in Materials and Applied Engineering – 2021.

Please cite this article as: B. Udawat, J. Begani, M. Mansinghka et al., Gauss Jordan method for balancing chemical equation for different materials, Materials
Today: Proceedings, https://doi.org/10.1016/j.matpr.2021.05.576
B. Udawat, J. Begani, M. Mansinghka et al. Materials Today: Proceedings xxx (xxxx) xxx

is very useful in analysing the algorithm. The initial matrix on the different points moved, introduced the definition of an eigen value
left is multiplied by an invertible matrix using Gaussian Elimina- 80 years earlier.
tion’s three simple row operations (multiply rows, swap rows, In 1850, Sylvester used the phrase ‘‘matrix” before anyone else.
and apply several rows to other rows). The LU decomposition [6] Sylvester defines a matrix as an oblong arrangement of terms that
is determined in the first part of the algorithm, and the initial results in separate determinants from square arrays contained
matrix is described in the second part as the product of an evi- within it. Sylvester became a lawyer after residing in America
dently defined invertible matrix and a clearly defined reduced and returning to England in 1851, where he met Cayley, a young
scale matrix. lawyer who expressed his curiosity in mathematics. Cayley soon
A variant of the Gaussian reduction method is the Gauss-Jordan recognised the significance of the matrix idea, then during 1853,
method. It is named after Carl Friedrich Gauss and Wilhelm Jordan he actually written the first note describing the inverse of a matrix.
because it is a variant of the Gaussian elimination, which Jordan Despite claiming to be unaware of Cayley’s thesis, Frobenius
described in 1887. Although Gaussian elimination adds zeros to published a valuable paper on matrices, linear substitutions, and
each pivot point in the matrices from top to bottom, the Gauss- linear forms in 1878. In his paper, Frobenius discussed form co-
Jordan method takes it a step further [7]. Often, add zeros to the efficients but did not use the term matrix. He did, however,
top and bottom of each pivot point. demonstrate useful findings on canonical matrices as members of
This paper is organized as follows, In Section II we have equivalence classes. In 1874 and 1868, he credits Kronecker and
described the Literature Survey of various similar research works Weierstrass with identifying special cases with his findings. Frobe-
and in Section III we have explained the Methodology and com- nius established that a matrix satisfies the characteristic equation
pared the manual solution with the automated solution, finally fol- in general. The idea of matrix rank, which he used in his disserta-
lowed by Conclusion in Section IV. tion on canonical forms, as well as the description of canonical
forms and the definition of orthogonal matrices, were all used in
Frobenius’s 1878 paper.
2. Literature review The Gaussian elimination method is mentioned in the Chinese
mathematics text Jiuzhang Suanshu, chapter eight, rectangular
It isn’t astonishing that the start of matrices and determinants Array, of the nine chapters on the Mathematical Art. Its implemen-
ought to emerge by means of the investigation of direct matrices. tation is demonstrated in eighteen problems ranging from two to
Babylonians examined issues that prompted concurrent straight five equations. The first mention of a book with this title dates from
conditions and a portion of these are saved in earth tablet that 179BC, although parts of it were written around 150BC. It was
endure. The Chinese, who lived between 200 and 100 BCE, were started in the 3rd century by Liu Hui. The European approach is
even closer to matrices as compared to Babylonians. In fact, any based on Isaac Newton’s notes. In 1670, he said that all algebra
reasonable person would accept that the Han Dynasty’s material books he had seen omitted a lesson on solving simultaneous equa-
nine sections on Mathematics Art include the previously estab- tions, which Newton later added.
lished example of matrix methods. Cambridge University published the findings as Arithmetical
Cardan gives a law, which he calls normal de modo and is University in 1707, long after Newton had left academia. The notes
regarded as the mother of rules, for a system of two linear equa- were widely distributed, and by the end of the 18th century,
tions in Art Magna (1545). To find a solution to a 2  2 problem, (known as) in algebra textbooks, Gaussian elimination had been
this rule provides a simplified version of Crammer’s rule. Although a basic tutorial. Carl Frederick Gauss invented a notation for sym-
Seki in Japan undoubtedly published first, in Japan and Europe, the metric elimination in 1810, which was adopted by professional
notion of a determinant emerged almost simultaneously. Seki pub- hand computers in the 19th century to solve normal equations of
lished a method for solving the dissimulated problem in 1683, least squares problems.
which included matrix approaches written as tables, close to the Around 1880, Gauss developed Gaussian reduction, which he
Chinese methods previously described. Despite a lack of a word employed to solve least squares questions in celestial computa-
for ‘‘determinant,” Seki presented them and demonstrated how tions and later to measure the earth’s crust. Geodesy is a field of
to calculate them using general methods focused on examples. applied mathematics dealing with accurately marking points on
Treatise of Algebra was written by Maclaurin in the 1730 s, two the earth’s surface or calculating or deciding the outline of the
years after his death, in 1748, it was finally published. It includes earth’s surface. Despite the fact that Gauss’ name is associated with
the first determinant proving Crammer’s rule results of 3  3 and this method of separating variables from systems of linear equa-
2  2 structures, as well as a description of the working of 4  4 tions in a sequential manner. For a long time, it was thought that
case. Crammer presented the basic concept for n  n systems. In Gaussian elimination was the product of geodesy rather than
his article, Introduction to Algebraic Curve Analysis, in the year mathematics. The first publication of Gauss-Jordan exclusion was
1750 . It was influenced by the search to find the equation of a in Wilhelm’s handbook Jordan’s or geodesy paper.
plane curve passing through a sequence of points. ‘‘Although there has been some confusion as to which Jordan
Bezout published technique for measuring determinants during should receive credit for this algorithm, it is clear that the method
1764, and Vandermonde published them in 1771. In 1772, Laplace was in fact introduced by a geodesist named Wilhelm Jordan
stated that Crammer and Bezout’s approach was impractical, and (1842–1899) and not by the more well-known mathematician
he explored the solution of a system of linear equations without Marie Ennemond Camille Jordan (1838–1992), whose name is
ever calculating it using determinants in a paper on the orbits of sometimes mistakenly associated with this algorithm,” writes Carl
the inner planets. Surprisingly, the word ‘‘resultant” was coined D.Meyor (2000) in his book Matrix Analysis and Linear Algebra.
by Laplace to characterise what we now refer to as the determi- ‘‘The Gauss-Jordan method, so called, seems to have been defined
nant. Surprisingly, by using the same term as Leibniz, Laplace first by Clasen (1888) because it can be regarded as a modification
seems to have had little knowledge of his work. The extension of of Gaussian elimination, the name Gauss is properly applied, but
a determinant bearing his name is attributed to Laplace. that of Jordan seems to be due to an error,” Theory of matrices in
In the form of solving systems of ordinary differential equa- numerical analysis write by A.S. Household (1964, P. 141). S.C.
tions, Jacques strum suggested a generalisation of the eigen value Althoen and R. Mcluaghlin investigated these claims (1987). 94,
problem. In reality, O Alembert’s work on systems of linear differ- 130–142 in American Mathematical Monthly. Household was right
ential equations, that looked at how a string with mass attached at about Clasen and his 1888 prose, which eventually led Althoen and
2
B. Udawat, J. Begani, M. Mansinghka et al. Materials Today: Proceedings xxx (xxxx) xxx

Fig. 1. Python Implementation of Gauss Jordan algorithm.

2 3
Mcluaghin to a decision, but he was wrong about Jordan. They 1 0 0:25 0
6 7
went on to state that in the 1877 s edition, the ‘‘germ of the theory” 4 0 1 1:5 0 5
was already there (This entry was contributed by John Aldrich). 0 2 3 0
Two sections divided for the Gaussian elimination method. The
first factor (forward elimination) reduces a given structure to trian-
gular or echelon form, or produces a degenerated equation with no R3 ! R3  2R2
solution, meaning that it is unsolvable. The use of simple row oper-
ations is used to do this. Back substitution is used in the second
1 0 0:25 0
step to find the solution to a series of linear equations.
The first part uses elementary row operations to reduce a 0 1 1:5 0
matrix to row echelon form, and the second part uses reduced 0 0 0 0
row operations to reduce it to reduced row echelon form. Gaussian
i.e., a  0.25c = 0, b  1.5c = 0
elimination computes matrix decomposition, which is another
i.e., a = 0.25c, b = 1.5c
viewpoint that is very useful in analysing the algorithm. The three
Solution by Gauss Jordan method:
basic row operations of Gaussian elimination (multiplying rows,
a = 0.25c, b = 1.5c and c = c
switching rows, and applying multiples of rows to other rows)
c is a free variable here. Solution is obtained by assigning some
are equivalent to multiplying a matrix with an invertible matrix
value to c.
[8–10] from the left.
For instance, we take value of c to be 4.
Then, a = 1, b = 6, c = 4
3. Methodology and results Thus, the balanced chemical reaction equation is:

Now by explaining the method we are going to take an example P4 O10 + 6 H2 O ! 4 H3 PO4
in which we need to balance the following chemical reaction:
We have also applied Gauss Jordan algorithm using Python Lan-
P4 O10 + H2 O ! H3 PO4 (Not Balanced) guage and have received the same output, which is shown below in
the Fig. 1. The input to the application is the unbalanced chemical
The equation for balancing has been found. Three elements equation and we get the output as the balanced chemical equation.
make up this chemical reaction: Phosphorus(P); Hydrogen (H); The same reaction which we have solved using the gauss Jordan
Oxygen (O). The equation that we need to balance is identified. method is being solved using our python application.
We assign the unknowns coefficients (a, b, c) to each chemical spe- Hence, we can say that by solving it manually or by the help of
cies. A balance equation can be written as follows: our Python application, we have obtained the same results which
a P4 O10 + b H2 O ! c H3 PO4 proves the credibility of the application.

Phosphorus(P): 4a = c ! 4a —c = 0
4. Conclusion

Oxygen(O): 10a + b = 4c ! 10a + b —4c = 0 The paper explains how Gauss Jordan approach to answer the
mathematical problem was used in balancing chemical equations
Hydrogen(H): 2b = 3c ! 2b —3c = 0 without any contradictions. On examination of various research
The system is solved by Gauss Jordan method as follows: papers, and instances where formal and systematic methods for
balancing chemical reaction equations were used, it was found that
2 3
4 0 1 0 all kinds of chemical reactions could be balanced by using gauss
6 7 elimination. But, Gauss Jordan method is preferred more than
4 10 1 4 0 5
Gaussian elimination since in case of Gauss Jordan, there is no need
0 2 3 0
for back substitution. These methods were found to be successful
at even balancing relatively difficult chemical equations with ease.
R1 ! R1/4 Moreover, Only these statistical techniques were found to be cap-
2 3 able of balancing chemical reactions containing atoms with frac-
1 0 0:25 0 tional oxidation numbers. In future, we can add several other
6 7 features to the python application which can check whether the
4 10 1 4 05
0 2 3 0 chemical equation is already balanced or not, we can also cate-
gorise the type of the chemical reaction. Along with that by lever-
aging the image processing technology we can have the input of
R2 ! R2  10R1
the application as an image.
3
B. Udawat, J. Begani, M. Mansinghka et al. Materials Today: Proceedings xxx (xxxx) xxx

CRediT authorship contribution statement [3] Y. Hari Krishna, N. Vijaya, P. Bindu. Balancing chemical equations using Gauss-
Jordan Elimination aided by MATLAB. Journal of Xi’an University of
Architecture & Technology, 2020, Volume XII, Issue VII.
Bharat Udawat: Conceptualization, Supervision, Writing - [4] D.A. Johar, Application of the Concept of Linear Equation Systems in Balancing
review & editing. Jatin Begani: Writing - original draft. Mudit Chemical Reaction Equations, International Journal of Global Operations
Research 1 (4) (2020) 130–135.
Mansinghka: Writing - review & editing. Nipun Bhatia: Supervi-
[5] Y. Hari Krishna, P. Bindu, V. Yaragani, N. Vijaya, O.D. Makinde, Application of
sion. Hardik Sharma: Writing - original draft. Arti Hadap: Investi- Gauss-Jordan elimination method in balancing typical chemical equations,
gation, Writing - original draft. International Journal of Scientific and Technology Research 9 (1) (2020) 465–
468.
[6] Adenegan, Kehinde Emmanuel and Aluko, Tope Moses. Gauss and gauss-jordan
Declaration of Competing Interest elimination methods for solving system of linear equations: comparisons and
applications. Journal of Science and Science Education, 19th November 2012,
Ondo Vol. 3(1), pp. 97 – 105.
The authors declare that they have no known competing finan- [7] M.K. Weldesemaet, The Importance of Gauss-Jordan Elimination Methods for
cial interests or personal relationships that could have appeared Balancing Chemical Reaction Equation, International Journal of Engineering
Development and Research 6 (2018) 685–691.
to influence the work reported in this paper.
[8] X. Sheng, Computation of weighted Moore-Penrose inverse through Gauss-
Jordan elimination on bordered matrices, Appl. Math. Comput. 323 (2018) 64–
74.
References [9] I.B. Risteski, New very hard problems of balancing chemical reactions,
Chemistry 21 (4) (2012) 574–580.
[1] F. Soleimani, P.S. Stanimirovi, F. Soleymani, Some Matrix Iterations for [10] U.B. Trivedi, S.K. Sharma, M.V.K. Singh, Gauss Elimination, Gauss-Jordan
Computing Generalized Inverses and Balancing Chemical Equations, Elimination and Gauss Seidel Iteration Method: Performance Comparison
Algorithms 8 (2015) 982–998, https://doi.org/10.3390/a8040982. using MAT LAB, International Journal of Engineering Technology Science and
[2] I. Hamid, Balancing Chemical Equations by Systems of Linear Equations, Research 4 (10) (2017) 753–763.
Applied Mathematics 10 (07) (2019) 521–526.

You might also like