2019年1月25日 星期五

Gauss Jordan Method

源自於https://math.tutorvista.com/algebra/gauss-jordan-method.html

Gauss Jordan Method


In mathematics, the linear algebra is an important field which studies about the vector spaces, linear system of equations and various operations on them. Matrices play a very important role in linear algebra. We know that a matrix is said to be a rectangular array of numbers or quantities.

 It consists of horizontal arrays called rows as well as vertical arrays called columns. There are several different types of matrices such as - diagonal matrices, rectangular matrices, triangular matrices, square matrices, identity matrices, symmetric and skew-symmetric matrices, invertible matrices etc.

In linear algebra, many concepts are based on the square matrix which is a matrix with same number of rows and columns. Inverse of a matrix is a concept that is applied on the square matrices. A square matrix P is said to be invertible if there exists a unique matrix Q in such a way that

PQ = QP = IThen, P and Q are called inverse of each other.
There are different methods of finding inverse of matrices. Gauss Jordan method is a very important tool in finding inverse of a matrix. Also, this method is more widely used in mathematics for the purpose of finding the solution of a system of linear equations which is defined as a set of linear equations sharing a set of solution for each equation in it. In this page, we are going to learn this method in detail.

Related Calculators
Gauss Jordan Method CalculatorAlgebra Elimination Method Calculator
Calculator for Substitution MethodFoil Method Calculator

Definition

Back to Top
The Gauss-Jordan method is also known as Gauss-Jordan elimination method. It was introduced by the mathematicians Carl Friedrich Gauss and Wilhelm Jordan, after their name it is called so. This method is very useful in solving a linear system of equations. It is a technique in which a system of linear equations is resolved by the means of matrices.

This method allows the isolation of the coefficients of a system of 
linear equations. In Gauss-Jordan method, given matrix can be fetched to row echelon form and made simpler. We can say that the transformation of augmented matrix of the given system into reduced row-echelon form is done by the use of of row operations. Sometimes, this method is also used for finding rank of a matrix as well as finding inverse of a square invertible matrix.In Gauss-Jordan method, elementary row operations are utilized in order to solve given system of linear equations.

There are 3 kinds of elementary row operations which are discussed below:

i) Switching of Rows:
A row can be interchanged with another row.
RiRj
ii) Row multiplication:
A non-zero number can be multiplied to every element in a row.
aRiRi, where a  0
iii) Addition of Rows:
We may replaced a row by the sum of elements of a row and a multiple of corresponding elements of another row.
Ri+aRjRi, where i  j


Row Reduced Echelon Form

Back to Top
A matrix can be called to be in reduced row echelon form (RREF) if the following conditions are satisfied:
1) The first nonzero element of a row must be 1 which is known as leading 1.
2) The leading 1 of a row must be positioned at the right side of the leading 1 of its previous row.
3) In case of a column containing a leading 1, all the remaining elements in that column must be 0.
4) At the bottom of the matrix, there is a rows having only zeros as the elements.
If any of the above rules are violated, the matrix is not said to be in reduced row echelon form.

Lets us have a look at the examples of RREF matrices:
[104016000]

and



Method

Back to Top
The steps for solving a system of linear equations by using the Gauss-Jordan method are illustrated below:
Step 1: Write the augmented matrix for the given system of linear equations.

Step 2: Use a set of elementary row operations (as discussed above) in order to perform row reduction on this matrix until we obtain a unique reduced row echelon form.

Step 3: Once RREF is obtained, write down the system of linear equations from this form.

Step 4: In this way, we get a value corresponding to each unknown variable which would be the solution. If simple equations are obtained, then they should be solved by the methods of solving equation such as substitution method or elimination method.

Example

Back to Top
An examples illustrating Gauss-Jordan method is given below:

Example: Use Gauss-Jordan method for solving following system of linear equations -
2y + z = 4
x + y + 2z = 6
2x + y + z = 7

Solution: The augmented matrix is given by:

[021112211|467]

Interchanging R1 and R2, we get

[12021211|647]

Performing the row operation R3R3+(2R1)

[112021013|645]

Performing the following row operations R1R1 + (- . R2) and R3R3 + ( . r2)

[10320210052|443]

Performing R1R1 + ( . R3) and R2 R2 + ( . R3)

[1000200052|1151453]

Performing R2R2 .  and R3R3 . -

[100010001|1157565]

Hence the solution is

x = 

y = 

z = 






沒有留言:

張貼留言

2024_09 作業3 以Node-Red 為主

 2024_09 作業3  (以Node-Red 為主  Arduino 可能需要配合修改 ) Arduino 可能需要修改的部分 1)mqtt broker  2) 主題Topic (發行 接收) 3) WIFI ssid , password const char br...