# The Algorithm Of Gaussian Elimination Mathematics Essay

In linear algebra, Gaussian elimination is an algorithm for solving systems of linear equations, finding the rank of a matrix, and calculating the inverse of an invertible square matrix. Gaussian elimination is named after German mathematician and scientist Carl Friedrich Gauss. GAUSS / JORDAN (G / J) is a method to find the inverse of the matrices using elementary operations on the matrices.To find the rank of a matrix we use gauss Jordan elimination metod but we use gauss Jordan method in case we have to find only the inverse of the invertible matrix.

Algorithm overview

Algorithm of gauss Jordan method is simple. We have to make the matrix an identity matrix using elementary operation on it. It is firstly written in the form of

## AI=A

We will firstly write the upper equation and then perform elementary operation the right hand side matrix matrix and simultaneously on identity matrix to obtain following matrix.

## I=A A-1

## We can help you to write your essay!

### Professional essay writers

Our writers can help get your essay back on track, take a look at our services to learn more about how we can help.

The process of Gaussian elimination has two parts. The first part (Forward Elimination) reduces a given system to either triangular or echelon form, or results in a degenerate equation with no solution, indicating the system has no solution. This is accomplished through the use of elementary row operations. The second step uses back substitution to find the solution of the system above.

Stated equivalently for matrices, the first part reduces a matrix to row echelon form using elementary row operations while the second reduces it to reduced row echelon form, or row canonical form.

Another point of view, which turns out to be very useful to analyze the algorithm, is that Gaussian elimination computes a matrix decomposition. The three elementary row operations used in the Gaussian elimination (multiplying rows, switching rows, and adding multiples of rows to other rows) amount to multiplying the original matrix with invertible matrices from the left. The first part of the algorithm computes an LU decomposition, while the second part writes the original matrix as the product of a uniquely determined invertible matrix and a uniquely determined reduced row-echelon matrix.

Gaussian elimination

InÂ linear algebra,Â Gaussian eliminationÂ is anÂ algorithmÂ for solvingÂ systems of linear equations, finding theÂ rankÂ of aÂ matrix, and calculating the inverse of anÂ invertible square matrix. Gaussian elimination is named after German mathematician and scientistÂ Carl Friedrich Gauss, which makes it an example ofÂ Stigler's law.

Elementary row operationsÂ are used to reduce a matrix toÂ row echelon form.Â Gauss-Jordan elimination, an extension of this algorithm, reduces the matrix further to reduced row echelon form. Gaussian elimination alone is sufficient for many applications, and is cheaper than the -Jordan version.

History

The method of Gaussian elimination appears in Chapter Eight,Â Rectangular Arrays, of the important Chinese mathematical textÂ Jiuzhang suanshuÂ orÂ The Nine Chapters on the Mathematical Art. Its use is illustrated in eighteen problems, with two to five equations. The first reference to the book by this title is dated to 179 CE, but parts of it were written as early as approximately 150 BCE. It was commented on byÂ Liu HuiÂ in the 3rd century.

The method in Europe stems from the notes of Isaac Newton.In 1670, he wrote that all the algebra books known to him lacked a lesson for solving simultaneous equations, which Newton then supplied. Cambridge University eventually published the notes asÂ Arithmetica UniversalisÂ in 1707 long after Newton left academic life. The notes were widely imitated, which made (what is now called) Gaussian elimination a standard lesson in algebra textbooks by the end of the 18th century. Carl Friedrich Gauss in 1810 devised a notation for symmetric elimination that was adopted in the 19th century by professional hand computers to solve the normal equations of least-squares problems. The algorithm that is taught in high school was named for Gauss only in the 1950s as a result of confusion over the history of the subjectâ€¦

Algorithm overview

The process of Gaussian elimination has two parts. The first part (Forward Elimination) reduces a given system to eitherÂ triangularÂ orÂ echelon form, or results in aÂ degenerateÂ equation with no solution, indicating the system has no solution. This is accomplished through the use ofÂ elementary row operations. The second step usesÂ back substitutionÂ to find the solution of the system above.

Stated equivalently for matrices, the first part reduces a matrix toÂ row echelon formÂ usingÂ elementary row operationsÂ while the second reduces it toÂ reduced row echelon form, orÂ row canonical form.

Another point of view, which turns out to be very useful to analyze the algorithm, is that Gaussian elimination computes aÂ matrix decomposition. The three elementary row operations used in the Gaussian elimination (multiplying rows, switching rows, and adding multiples of rows to other rows) amount to multiplying the original matrix with invertible matrices from the left. The first part of the algorithm computes anÂ LU decomposition, while the second part writes the original matrix as the product of a uniquely determined invertible matrix and a uniquely determined reduced row-echelon matrix.

Example

Suppose the goal is to find and describe the solution(s), if any, of the followingÂ system of linear equations:

## This essay is an example of a student's work

### Disclaimer

This essay has been submitted to us by a student. This is not an example of the work written by our professional essay writers.

The algorithm is as follows: eliminateÂ xÂ from all equations belowÂ L1, and then eliminateÂ yÂ from all equations belowÂ L2. This will put the system intoÂ triangular form. Then, using back-substitution, each unknown can be solved for.

In the example,Â xÂ is eliminated fromÂ L2Â by addingÂ Â toÂ L2.Â xÂ is then eliminated fromÂ L3Â by addingÂ L1Â toÂ L3. Formally:

The result is:

NowÂ yÂ is eliminated fromÂ L3Â by addingÂ âˆ’ 4L2Â toÂ L3:

The result is:

This result is a system of linear equations in triangular form, and so the first part of the algorithm is complete.

The last part, back-substitution, consists of solving for the knowns in reverse order. It can thus be seen that

Then,Â zÂ can be substituted intoÂ L2, which can then be solved to obtain

Next,Â zÂ andÂ yÂ can be substituted intoÂ L1, which can be solved to obtain

The system is solved.

Some systems cannot be reduced to triangular form, yet still have at least one valid solution: for example, ifÂ yÂ had not occurred inÂ L2Â andÂ L3Â after the first step above, the algorithm would have been unable to reduce the system to triangular form. However, it would still have reduced the system toÂ echelon form. In this case, the system does not have a unique solution, as it contains at least oneÂ free variable. The solution set can then be expressed parametrically (that is, in terms of the free variables, so that if values for the free variables are chosen, a solution will be generated).

In practice, one does not usually deal with the systems in terms of equations but instead makes use of theÂ augmented matrixÂ (which is also suitable for computer manipulations). For example:

Therefore, the Gaussian Elimination algorithm applied to theÂ augmented matrixÂ begins with:

which, at the end of the first part(Gaussian elimination, zeros only under the leading 1) of the algorithm, looks like this:

That is, it is inÂ row echelon form.

At the end of the algorithm, if theÂ Gauss-Jordan elimination(zeros under and above the leading 1) is applied:

That is, it is inÂ reduced row echelon form, or row canonical form.

## Example of Gauss Elimination methodâ€¦!!!

## (To solve System of Linear Equations)

One simple example of G/J row operations is offered immediately above the pivoting reference;

an example is below:

Below is a system

of equations which

we will solve

using G/J

step

1

Below is the

1st augmented

matrix :pivot

on the "1"

encircled in red

Row

operations

for the 1st

pivoting are

named below

Next we pivot on the

number "5"in the

2-2 position,

encircled below

## Â Â

Below is the result of

performing P1 on the

element in the 2-2 position.

Next we must perform P2

Row

operations

of P2

are below

The result of the 2nd

pivoting is below.

Now pivot on "-7"

encircled in red

Using P1

below

we change

"-7"to "1"

## Â Â Â Â

Below is the result of

performing P1 on "-7"

in the 3-3 position.

Next we must

perform P2

Row

operations

of P2

are below

The result of the

third (and last)

pivoting is below

with 3x3 ISM

matrix in blue

Step

[3]

of

G/J

Re-writing the

final matrix as

equations gives

the solution to

the original system

Other applications

Finding the inverse of a matrix

SupposeÂ AÂ is aÂ Â matrix and you need to calculate itsÂ inverse. TheÂ Â identity matrixÂ is augmented to the right ofÂ A, forming aÂ Â matrix (theÂ block matrixÂ BÂ = [A,I]). Through application of elementary row operations and the Gaussian elimination algorithm, the left block ofÂ BÂ can be reduced to the identity matrixÂ I, which leavesÂ AÂ âˆ’ 1Â in the right block ofÂ B.

## Earn money as a Freelance Writer!

### We’re looking for qualified experts

As we are always expanding we are looking to grow our team of freelance writers. To find out more about writing with us then please check our freelance writing jobs page.

If the algorithm is unable to reduceÂ AÂ to triangular form, thenÂ AÂ is not invertible.

General algorithm to compute ranks and bases

The Gaussian elimination algorithm can be applied to anyÂ Â matrixÂ A. If we get "stuck" in a given column, we move to the next column. In this way, for example, someÂ Â matrices can be transformed to a matrix that has a reduced row echelon form like

(the *'s are arbitrary entries). This echelon matrixÂ TÂ contains a wealth of information aboutÂ A: theÂ rankÂ ofÂ AÂ is 5 since there are 5 non-zero rows inÂ T; theÂ vector spaceÂ spanned by the columns ofÂ AÂ has a basis consisting of the first, third, fourth, seventh and ninth column ofÂ AÂ (the columns of the ones inÂ T), and the *'s tell you how the other columns ofÂ AÂ can be written as linear combinations of the basis columns.

Analysis

Gaussian elimination to solve a system ofÂ nÂ equations forÂ nÂ unknowns requiresÂ n(n+1) / 2 divisions, (2n3Â + 3n2Â âˆ’ 5n)/6 multiplications, and (2n3Â + 3n2Â âˆ’ 5n)/6 subtractions,[3]Â for a total of approximately 2n3Â / 3 operations. So it has a complexity ofÂ .

This algorithm can be used on a computer for systems with thousands of equations and unknowns. However, the cost becomes prohibitive for systems with millions of equations. These large systems are generally solved usingÂ iterative methods. Specific methods exist for systems whose coefficients follow a regular pattern (seeÂ system of linear equations).

The Gaussian elimination can be performed over anyÂ field.

Gaussian elimination isÂ numerically stableÂ forÂ diagonally dominantÂ orÂ positive-definiteÂ matrices. For general matrices, Gaussian elimination is usually considered to be stable in practice if you usepartial pivotingÂ as described below, even though there are examples for which it is unstable.

Gauss-Jordan elimination

InÂ linear algebra,Â Gauss-Jordan eliminationÂ is anÂ algorithmÂ for gettingÂ matricesÂ inÂ reduced row echelon formÂ usingÂ elementary row operations. It is variation ofÂ Gaussian elimination. Gaussian elimination places zeros below eachÂ pivotÂ in the matrix, starting with the top row and working downwards. Matrices containing zeros below each pivot are said to be in row echelon form. Gauss-Jordan elimination goes a step further by placing zeros above and below each pivot; such matrices are said to be in reduced row echelon form. Every matrix has a reduced row echelon form, and Gauss-Jordan elimination is guaranteed to find it.

It is named afterÂ Carl Friedrich GaussÂ andÂ Wilhelm JordanÂ because it is a variation of Gaussian elimination as Jordan described in 1887. However, the method also appears in an article by Clasen published in the same year. Jordan and Clasen probably discovered Gauss-Jordan elimination independently.[1]

Computer science'sÂ complexity theoryÂ shows Gauss-Jordan elimination to have a time complexity ofÂ O(n3)Â for anÂ nÂ byÂ nÂ matrix (usingÂ Big O Notation. This result means it is efficiently solvable for most practical purposes. As a result, it is often used in computer software for a diverse set of applications. However, it is often an unnecessary step past Gaussian elimination. Gaussian elimination shares Gauss-Jordon's time complexity ofÂ O(n3)Â but is generally faster. Therefore, in cases in which achieving reduced row echelon form over row echelon form is unnecessary, Gaussian elimination is typically preferred.[citation needed]

Application to finding inverses

If Gauss-Jordan elimination is applied on aÂ square matrix, it can be used to calculate the matrix'sÂ inverse. This can be done byÂ augmentingÂ the square matrix with theÂ identity matrixÂ of the same dimensions and applying the following matrix operations:

If the original square matrix,Â A, is given by the following expression:

Then, after augmenting by the identity, the following is obtained:

By performing elementary row operations on theÂ [AI]Â matrix until it reachesÂ reduced row echelon form, the following is the final result:

The matrix augmentation can now be undone, which gives the following:

A matrix isÂ non-singularÂ (meaning that it has an inverse matrix)Â if and only ifÂ the identity matrix can be obtained using only elementary row operations.

## Example of Gauss Jordan methodâ€¦!!!

## (To Simply Find Inverse of a Matrix)

If the original square matrix, A, is given by the following expression:

Then, after augmenting by the identity, the following is obtained:

By performing elementary row operations on the [AI] matrix until it reaches reduced row echelon form, the following is the final result:

The matrix augmentation can now be undone, which gives the following:

### Request Removal

If you are the original writer of this essay and no longer wish to have the essay published on the UK Essays website then please click on the link below to request removal:

Request the removal of this essay