SlideShare a Scribd company logo
1 of 7
Gauss Jordan Elimination Through Pivoting<br />A system of linear equations can be placed into matrix form. Each equation becomes a row and each variable becomes a column. An additional column is added for the right hand side. A system of linear equations and the resulting matrix are shown. <br />The system of linear equations ...<br />3x + 2y - 4z =  3<br />2x + 3y + 3z = 15<br />5x - 3y +  z = 14<br />becomes the augmented matrix ...<br /> xyzrhs  32-43  23315  5-3114 <br />The goal when solving a system of equations is to place the augmented matrix into reduced row-echelon form, if possible.<br />There are three elementary row operations that you may use to accomplish placing a matrix into reduced row-echelon form. <br />Each of the requirements of a reduced row-echelon matrix can satisfied using the elementary row operations. <br />If there is a row of all zeros, then it is at the bottom of the matrix.Interchange two rows of a matrix to move the row of all zeros to the bottom. <br />The first non-zero element of any row is a one. That element is called the leading one.Multiply (divide) the row by a non-zero constant to make the first non-zero element into a one. <br />The leading one of any row is to the right of the leading one of the previous row. Multiply a row by a non-zero constant and add it to another row, replacing that row. The point of this elementary row operation is to make numbers into zeros. By making the numbers under the leading ones into zero, it forces the first non-zero element of any row to be to the right of the leading one of the previous row. <br />All elements above and below a leading one are zero. Multiply a row by a non-zero constant and add it to another row, replacing that row. The point of this elementary row operation is to make numbers into zero. The difference here is that you're clearing (making zero) the elements above the leading one instead of just below the leading one. <br />What is pivoting?<br />The objective of pivoting is to make an element above or below a leading one into a zero.<br />The quot;
pivotquot;
 or quot;
pivot elementquot;
 is an element on the left hand side of a matrix that you want the elements above and below to be zero. <br />Normally, this element is a one. If you can find a book that mentions pivoting, they will usually tell you that you must pivot on a one. If you restrict yourself to the three elementary row operations, then this is a true statement. <br />However, if you are willing to combine the second and third elementary row operations, you come up with another row operation (not elementary, but still valid). <br />You can multiply a row by a non-zero constant and add it to a non-zero multiple of another row, replacing that row. <br />So what? If you are required to pivot on a one, then you must sometimes use the second elementary row operation and divide a row through by the leading element to make it into a one. Division leads to fractions. While fractions are your friends, you're less likely to make a mistake if you don't use them. <br />What's the catch? If you don't pivot on a one, you are likely to encounter larger numbers. Most people are willing to work with the larger numbers to avoid the fractions.<br />The Pivot Process<br />Pivoting works because a common multiple (not necessarily the least common multiple) of two numbers can always be found by multiplying the two numbers together. Let's take the example we had before, and clear the first column. <br /> xyzrhs  32-43  23315  5-3114 <br />Helpful Hints<br />Although you do not have to pivot on a one, it is highly desirable. Pivoting on a one means that you're multiplying by 1 (which is easy to do). <br />It is nice to pivot on the main diagonal, but not absolutely necessary. Some people like to start in the upper left and work their way down to the lower right. <br />As long as you pivot only once per row and column, the columns which have been cleared will remain cleared. <br />Since the point of pivoting is to clear the pivot column, picking a column which already has zeros in it saves time because you don't have to change the row that contains the zero. <br />Selecting a Pivot<br />Pick the column with the most zeros in it. <br />Use a row or column only once <br />Pivot on a one if possible <br />Pivot on the main diagonal <br />Never pivot on a zero <br />Never pivot on the right hand side <br />Since there is no one in the first row, we have two options: Either we divide the first row by three and work with fractions, or we pivot on the three and get large numbers. That is the option I'm going to use. I'll pivot on the three in R1C1. Go ahead and circle that as the pivot element. Depending on your browser, you may see the pivot elements circled in red or just with a * in front of it.<br /> xyzrhs  *32-43  23315  5-3114 <br />The idea is to make the boxed (yellow) numbers into zero. Using the combined row operation (this is not an elementary operation), that could be done by 3R2 - 2R1 -> R2 and 3R3 - 5R1 -> R3. <br />The only row not being changed is the row containing the pivot element (the 3). The whole point of the pivot process is to make the boxed values into zero. Go ahead and rewrite the pivot row and clear (make zero) the pivot column.<br /> xyzrhs  *32-43  0     0    <br />To replace the values in row 2, each new element is obtained by multiplying the element being replaced in the second row by 3 and subtracting 2 times the element in the first row from the same column as the element being replaced.<br />To perform the pivot, place one finger on the pivot (circled number), and one finger on the element being replaced. Multiply these two numbers together. Now, place one finger on the boxed number in the same row as the element you're replacing and the other finger in the pivot row and the same column as the number your replacing. Multiply these two numbers together. Take the product with the pivot and subtract the product without the pivot. <br /> xyzrhs  *32-43  23315  5-3114 <br />To replace the 3 in R2C2, you would take 3(3) - 2(2) = 9 - 4 = 5. <br />To replace the 3 in R2C3, you would take 3(3) - 2(-4) = 9 +8 = 17. <br />To replace the 15 in R2C4, you would take 3(15) - 2(3) = 45 - 6 = 39. <br />To replace the -3 in R3C2, you would take 3(-3) - 5(2) = -9 - 10 = -19.<br />To replace the 1 in R3C3, you would take 3(1) - 5(-4) = 3 + 20 = 23<br />To replace the 14 in R3C4, you would take 3(14) - 5(3) = 42 - 15 = 27.<br />Here's how the process looks.<br /> xyzrhs  pivot row, copy3pivot row, copy2pivot row, copy-4pivot row, copy3  pivot column, clear03(3) - 2(2)53(3) - 2(-4)173(15) - 2(3)39  pivot column, clear03(-3) - 5(2)-193(1) - 5(-4)233(14) - 5(3)27 <br />Or, if you remove the comments, the matrix after the first pivot looks like this.<br /> xyzrhs  32-43  051739  0-192327 <br />It is now time to repeat the entire process. We go through and pick another place to pivot. We would like it to be on the main diagonal, a one, or have zeros in the column. Unfortunately, we can't have any of those. But since we have to multiply all the other numbers by the pivot, we want it to be small, so we'll pivot on the 5 in R2C2 and clear out the 2 and -19.<br /> xyzrhs  32-43  0*51739  0-192327 <br />Begin by copying down the pivot row (2nd row) and clearing the pivot column (2nd column). Previously cleared columns will remain cleared.<br /> xyzrhs   0    0*51739  00   <br />Here are the calculations to find the next interation. Pay careful attention to the 3rd row where we're subtracting -19 times a value. Since we're subtracting a negative, I went ahead and wrote it as plus 19.<br /> xyzrhs  5(3) - 2(0)15pivot column, clear05(-4) - 2(17)-545(3) - 2(39)-63  pivot row, copy0pivot row, copy5pivot row, copy17pivot row, copy39  previously cleared0pivot column, clear05(23) + 19(17)4385(27) + 19(39)876 <br />And the resulting matrix.<br /> xyzrhs  150-54-63  051739  00438876 <br />Notice that all the elements in the first row are multiples of 3 and all the elements in the last row are multiples of 438. We'll divide to reduce the rows.<br /> xyzrhs  50-18-21  051739  0012 <br />That had the added benefit of giving us a 1, exactly where we want it to be to pivot. So, we'll pivot on the 1 in R3C3 and clear out the -18 and 17. Circle your pivot and box the other numbers in that column to clear.<br /> xyzrhs  50-18-21  051739  00*12 <br />Copy down the pivot row and clear the pivot column. Previously cleared columns will remain cleared as long as you don't pivot in a row or column twice.<br /> xyzrhs   00   0 0   00*12 <br />Notice that each time, there are fewer calculations to perform. Here are the calculations for this pivot. Again, since the value in the pivot column in the first row is -18 and we're subtracting, I wrote it as + 18.<br /> xyzrhs  1(5) +18(0)5previously cleared0pivot column, clear01(-21) + 18(2)15  previously cleared01(5) - 17(0)5pivot column, clear01(39) - 17(2)5  pivot row, copy0pivot row, copy0pivot row, copy1pivot row, copy2 <br />And the resulting matrix.<br /> xyzrhs  50015  0505  0012 <br />Notice that the first and second rows are multiples of 5, so we can reduce those rows.<br /> xyzrhs  1003  0101  0012 <br />And the final answer is x = 3, y = 1, and z = 2. You can also write that as an ordered triplet {(3,1,2)}.<br />Hopefully, you noticed that when I worked this example, I didn't follow the hints I gave. That's because I wanted you to see what happens if you don't pivot on a one. There was a one, on the main diagonal, in the original matrix, and it would have been better to start there.<br />Summary<br />Pick your pivot element wisely. <br />Picking a column with zeros in it means less pivoting. <br />Picking a one as the pivot makes the numbers smaller, the multiplication easier, and leaves the non-zero elements in a cleared column the same (less pivoting) <br />Pivoting on the main diagonal means you won't have to switch rows to put the matrix into reduced row-echelon form. <br />Do not pivot on a zero. <br />Do not pivot on the right hand side. <br />Only use a row or column once <br />Take the product with the pivot minus the product without the pivot<br />
Gauss jordan elimination through pivoting
Gauss jordan elimination through pivoting
Gauss jordan elimination through pivoting
Gauss jordan elimination through pivoting
Gauss jordan elimination through pivoting
Gauss jordan elimination through pivoting

More Related Content

What's hot

Solving Systems by Graphing
Solving Systems by GraphingSolving Systems by Graphing
Solving Systems by GraphingBitsy Griffin
 
February 17, 2015
February 17, 2015February 17, 2015
February 17, 2015khyps13
 
Rational, Irrational & Absolute Value Functions Review
Rational, Irrational & Absolute Value Functions ReviewRational, Irrational & Absolute Value Functions Review
Rational, Irrational & Absolute Value Functions ReviewFredericton High School
 
9.3 Intro to Rational Functions
9.3 Intro to Rational Functions9.3 Intro to Rational Functions
9.3 Intro to Rational FunctionsKristen Fouss
 
Vertical asymptotes to rational functions
Vertical asymptotes to rational functionsVertical asymptotes to rational functions
Vertical asymptotes to rational functionsTarun Gehlot
 
Rational Functions
Rational FunctionsRational Functions
Rational FunctionsJazz0614
 
Chapter 3: Linear Systems and Matrices - Part 2/Slides
Chapter 3: Linear Systems and Matrices - Part 2/SlidesChapter 3: Linear Systems and Matrices - Part 2/Slides
Chapter 3: Linear Systems and Matrices - Part 2/SlidesChaimae Baroudi
 
Chapter 3: Linear Systems and Matrices - Part 3/Slides
Chapter 3: Linear Systems and Matrices - Part 3/SlidesChapter 3: Linear Systems and Matrices - Part 3/Slides
Chapter 3: Linear Systems and Matrices - Part 3/SlidesChaimae Baroudi
 
9.6 Systems of Inequalities and Linear Programming
9.6 Systems of Inequalities and Linear Programming9.6 Systems of Inequalities and Linear Programming
9.6 Systems of Inequalities and Linear Programmingsmiller5
 
Graphing Quadradic
Graphing QuadradicGraphing Quadradic
Graphing Quadradicguest35706da
 
Inverse of a Matrix
Inverse of a MatrixInverse of a Matrix
Inverse of a MatrixYashh Pandya
 
Graphing sytems inequalities
Graphing sytems inequalitiesGraphing sytems inequalities
Graphing sytems inequalitiesJessica Garcia
 
Systems of Inequalities
Systems of InequalitiesSystems of Inequalities
Systems of Inequalitiesswartzje
 
10.6 solving linear inequalities
10.6 solving linear inequalities10.6 solving linear inequalities
10.6 solving linear inequalitiesGlenSchlee
 

What's hot (19)

Solving Systems by Graphing
Solving Systems by GraphingSolving Systems by Graphing
Solving Systems by Graphing
 
February 17, 2015
February 17, 2015February 17, 2015
February 17, 2015
 
Rational, Irrational & Absolute Value Functions Review
Rational, Irrational & Absolute Value Functions ReviewRational, Irrational & Absolute Value Functions Review
Rational, Irrational & Absolute Value Functions Review
 
Rational Function
Rational FunctionRational Function
Rational Function
 
9.3 Intro to Rational Functions
9.3 Intro to Rational Functions9.3 Intro to Rational Functions
9.3 Intro to Rational Functions
 
Vertical asymptotes to rational functions
Vertical asymptotes to rational functionsVertical asymptotes to rational functions
Vertical asymptotes to rational functions
 
Es272 ch1
Es272 ch1Es272 ch1
Es272 ch1
 
3
33
3
 
Rational Functions
Rational FunctionsRational Functions
Rational Functions
 
Chapter 3: Linear Systems and Matrices - Part 2/Slides
Chapter 3: Linear Systems and Matrices - Part 2/SlidesChapter 3: Linear Systems and Matrices - Part 2/Slides
Chapter 3: Linear Systems and Matrices - Part 2/Slides
 
Chapter 3: Linear Systems and Matrices - Part 3/Slides
Chapter 3: Linear Systems and Matrices - Part 3/SlidesChapter 3: Linear Systems and Matrices - Part 3/Slides
Chapter 3: Linear Systems and Matrices - Part 3/Slides
 
9.6 Systems of Inequalities and Linear Programming
9.6 Systems of Inequalities and Linear Programming9.6 Systems of Inequalities and Linear Programming
9.6 Systems of Inequalities and Linear Programming
 
Graphing Quadradic
Graphing QuadradicGraphing Quadradic
Graphing Quadradic
 
Inverse of a Matrix
Inverse of a MatrixInverse of a Matrix
Inverse of a Matrix
 
Matrices
MatricesMatrices
Matrices
 
Graphing sytems inequalities
Graphing sytems inequalitiesGraphing sytems inequalities
Graphing sytems inequalities
 
Systems of Inequalities
Systems of InequalitiesSystems of Inequalities
Systems of Inequalities
 
10.6 solving linear inequalities
10.6 solving linear inequalities10.6 solving linear inequalities
10.6 solving linear inequalities
 
Es272 ch4a
Es272 ch4aEs272 ch4a
Es272 ch4a
 

Viewers also liked

Hy solution사례(5)저축보험가입고객
Hy solution사례(5)저축보험가입고객Hy solution사례(5)저축보험가입고객
Hy solution사례(5)저축보험가입고객valuasset
 
Gauss jordan
Gauss jordanGauss jordan
Gauss jordanuis
 
Shane test 1
Shane test 1Shane test 1
Shane test 1Adam
 
Internet Librarian 2008: 2.0 learning and 1.8 users: Bridging the gap
Internet Librarian 2008: 2.0 learning and 1.8 users: Bridging the gapInternet Librarian 2008: 2.0 learning and 1.8 users: Bridging the gap
Internet Librarian 2008: 2.0 learning and 1.8 users: Bridging the gapColleen Harris
 
视频点播直播新混跑架构
视频点播直播新混跑架构视频点播直播新混跑架构
视频点播直播新混跑架构pluschen
 
NDCC Presentation Final
NDCC Presentation FinalNDCC Presentation Final
NDCC Presentation Finallaureen920
 
easy elliptic curve(椭圆曲线算法解释)
easy elliptic curve(椭圆曲线算法解释)easy elliptic curve(椭圆曲线算法解释)
easy elliptic curve(椭圆曲线算法解释)pluschen
 
QQML 2012: MLS Without a Map? A Call for a Mixed-Methods Approach to Studying...
QQML 2012: MLS Without a Map? A Call for a Mixed-Methods Approach to Studying...QQML 2012: MLS Without a Map? A Call for a Mixed-Methods Approach to Studying...
QQML 2012: MLS Without a Map? A Call for a Mixed-Methods Approach to Studying...Colleen Harris
 
Sports marketing: where does the future lie - in the content or the conversa...
Sports marketing:  where does the future lie - in the content or the conversa...Sports marketing:  where does the future lie - in the content or the conversa...
Sports marketing: where does the future lie - in the content or the conversa...cainster
 

Viewers also liked (20)

06-04-10
06-04-1006-04-10
06-04-10
 
Hy solution사례(5)저축보험가입고객
Hy solution사례(5)저축보험가입고객Hy solution사례(5)저축보험가입고객
Hy solution사례(5)저축보험가입고객
 
Gauss jordan
Gauss jordanGauss jordan
Gauss jordan
 
OSS Benefits
OSS BenefitsOSS Benefits
OSS Benefits
 
Test99
Test99Test99
Test99
 
Shane test 1
Shane test 1Shane test 1
Shane test 1
 
Innovation & Massive data
Innovation & Massive dataInnovation & Massive data
Innovation & Massive data
 
Jurnal Indonesia Review - Agustus 2010
Jurnal Indonesia Review - Agustus 2010Jurnal Indonesia Review - Agustus 2010
Jurnal Indonesia Review - Agustus 2010
 
Autacoids1
Autacoids1Autacoids1
Autacoids1
 
Twittering frittering or_connecting__with-comments - fossa2011
Twittering frittering or_connecting__with-comments - fossa2011Twittering frittering or_connecting__with-comments - fossa2011
Twittering frittering or_connecting__with-comments - fossa2011
 
Internet Librarian 2008: 2.0 learning and 1.8 users: Bridging the gap
Internet Librarian 2008: 2.0 learning and 1.8 users: Bridging the gapInternet Librarian 2008: 2.0 learning and 1.8 users: Bridging the gap
Internet Librarian 2008: 2.0 learning and 1.8 users: Bridging the gap
 
视频点播直播新混跑架构
视频点播直播新混跑架构视频点播直播新混跑架构
视频点播直播新混跑架构
 
A recipe for happiness 2
A recipe for happiness 2A recipe for happiness 2
A recipe for happiness 2
 
Caleb Lamb
Caleb LambCaleb Lamb
Caleb Lamb
 
Mobile cloud - digital native generation - francois elie - fossa2011
Mobile   cloud - digital native generation - francois elie - fossa2011Mobile   cloud - digital native generation - francois elie - fossa2011
Mobile cloud - digital native generation - francois elie - fossa2011
 
NDCC Presentation Final
NDCC Presentation FinalNDCC Presentation Final
NDCC Presentation Final
 
easy elliptic curve(椭圆曲线算法解释)
easy elliptic curve(椭圆曲线算法解释)easy elliptic curve(椭圆曲线算法解释)
easy elliptic curve(椭圆曲线算法解释)
 
OSS Community management
OSS Community managementOSS Community management
OSS Community management
 
QQML 2012: MLS Without a Map? A Call for a Mixed-Methods Approach to Studying...
QQML 2012: MLS Without a Map? A Call for a Mixed-Methods Approach to Studying...QQML 2012: MLS Without a Map? A Call for a Mixed-Methods Approach to Studying...
QQML 2012: MLS Without a Map? A Call for a Mixed-Methods Approach to Studying...
 
Sports marketing: where does the future lie - in the content or the conversa...
Sports marketing:  where does the future lie - in the content or the conversa...Sports marketing:  where does the future lie - in the content or the conversa...
Sports marketing: where does the future lie - in the content or the conversa...
 

Similar to Gauss jordan elimination through pivoting

Simplex Algorithm
Simplex AlgorithmSimplex Algorithm
Simplex AlgorithmAizaz Ahmad
 
Assignment Poblems
Assignment Poblems Assignment Poblems
Assignment Poblems vkabre
 
Insider mathematical
Insider   mathematicalInsider   mathematical
Insider mathematicalAditi Saxena
 
Gauss Jordan
Gauss JordanGauss Jordan
Gauss JordanEzzat Gul
 
Chapter 1 Study Guide
Chapter 1  Study  GuideChapter 1  Study  Guide
Chapter 1 Study Guide♥Moriah♥
 
Chapter 1 Study Guide
Chapter 1  Study  GuideChapter 1  Study  Guide
Chapter 1 Study Guide♥Moriah♥
 
Introduction to Logarithm
Introduction to LogarithmIntroduction to Logarithm
Introduction to LogarithmFellowBuddy.com
 
Ratio and Proportion, Indices and Logarithm Part 4
Ratio and Proportion, Indices and Logarithm Part 4Ratio and Proportion, Indices and Logarithm Part 4
Ratio and Proportion, Indices and Logarithm Part 4FellowBuddy.com
 
Math ia analysis
Math ia analysisMath ia analysis
Math ia analysis12903
 
Linear Inequality slayerix
Linear Inequality slayerixLinear Inequality slayerix
Linear Inequality slayerixAshams kurian
 
3.4 Polynomial Functions and Their Graphs
3.4 Polynomial Functions and Their Graphs3.4 Polynomial Functions and Their Graphs
3.4 Polynomial Functions and Their Graphssmiller5
 
36 Matrix Algebra-x.pptx
36 Matrix Algebra-x.pptx36 Matrix Algebra-x.pptx
36 Matrix Algebra-x.pptxmath260
 
Direct Methods For The Solution Of Systems Of
Direct Methods For The Solution Of Systems OfDirect Methods For The Solution Of Systems Of
Direct Methods For The Solution Of Systems OfMarcela Carrillo
 
6.3 matrix algebra
6.3 matrix algebra6.3 matrix algebra
6.3 matrix algebramath260
 
7 5 Inequalities And Graphing
7 5 Inequalities And Graphing7 5 Inequalities And Graphing
7 5 Inequalities And Graphingtaco40
 
Contéo de figuras
Contéo de figurasContéo de figuras
Contéo de figurasJesusBuelna2
 

Similar to Gauss jordan elimination through pivoting (20)

Simplex Algorithm
Simplex AlgorithmSimplex Algorithm
Simplex Algorithm
 
Assignment Poblems
Assignment Poblems Assignment Poblems
Assignment Poblems
 
Simplex algorithm
Simplex algorithmSimplex algorithm
Simplex algorithm
 
Insider mathematical
Insider   mathematicalInsider   mathematical
Insider mathematical
 
Gauss Jordan
Gauss JordanGauss Jordan
Gauss Jordan
 
Systems of linear equations; matrices
Systems of linear equations; matricesSystems of linear equations; matrices
Systems of linear equations; matrices
 
Chapter 1 Study Guide
Chapter 1  Study  GuideChapter 1  Study  Guide
Chapter 1 Study Guide
 
Chapter 1 Study Guide
Chapter 1  Study  GuideChapter 1  Study  Guide
Chapter 1 Study Guide
 
Introduction to Logarithm
Introduction to LogarithmIntroduction to Logarithm
Introduction to Logarithm
 
Ratio and Proportion, Indices and Logarithm Part 4
Ratio and Proportion, Indices and Logarithm Part 4Ratio and Proportion, Indices and Logarithm Part 4
Ratio and Proportion, Indices and Logarithm Part 4
 
Math ia analysis
Math ia analysisMath ia analysis
Math ia analysis
 
Linear Inequality slayerix
Linear Inequality slayerixLinear Inequality slayerix
Linear Inequality slayerix
 
System of linear equation and matrices
System of linear equation and matricesSystem of linear equation and matrices
System of linear equation and matrices
 
3.4 Polynomial Functions and Their Graphs
3.4 Polynomial Functions and Their Graphs3.4 Polynomial Functions and Their Graphs
3.4 Polynomial Functions and Their Graphs
 
Real numbers system
Real numbers systemReal numbers system
Real numbers system
 
36 Matrix Algebra-x.pptx
36 Matrix Algebra-x.pptx36 Matrix Algebra-x.pptx
36 Matrix Algebra-x.pptx
 
Direct Methods For The Solution Of Systems Of
Direct Methods For The Solution Of Systems OfDirect Methods For The Solution Of Systems Of
Direct Methods For The Solution Of Systems Of
 
6.3 matrix algebra
6.3 matrix algebra6.3 matrix algebra
6.3 matrix algebra
 
7 5 Inequalities And Graphing
7 5 Inequalities And Graphing7 5 Inequalities And Graphing
7 5 Inequalities And Graphing
 
Contéo de figuras
Contéo de figurasContéo de figuras
Contéo de figuras
 

More from uis

Raicesdeecuaciones
RaicesdeecuacionesRaicesdeecuaciones
Raicesdeecuacionesuis
 
Taller refuerzo
Taller refuerzoTaller refuerzo
Taller refuerzouis
 
Secant method
Secant methodSecant method
Secant methoduis
 
Fixedpoint
FixedpointFixedpoint
Fixedpointuis
 
Fixedpoint
FixedpointFixedpoint
Fixedpointuis
 
Fixedpoint
FixedpointFixedpoint
Fixedpointuis
 
False position
False positionFalse position
False positionuis
 
Bisection method
Bisection methodBisection method
Bisection methoduis
 
Gaussseidelsor
GaussseidelsorGaussseidelsor
Gaussseidelsoruis
 
Gaussseidel
GaussseidelGaussseidel
Gaussseideluis
 
Metodos especiales ejercicio en clase
Metodos especiales ejercicio en claseMetodos especiales ejercicio en clase
Metodos especiales ejercicio en claseuis
 
Metodos especiales ejercicio en clase
Metodos especiales ejercicio en claseMetodos especiales ejercicio en clase
Metodos especiales ejercicio en claseuis
 
Metodos especiales ejercicio en clase
Metodos especiales ejercicio en claseMetodos especiales ejercicio en clase
Metodos especiales ejercicio en claseuis
 
Choleskymethod
CholeskymethodCholeskymethod
Choleskymethoduis
 
Choleskymethod
CholeskymethodCholeskymethod
Choleskymethoduis
 
L2 darcys law
L2 darcys lawL2 darcys law
L2 darcys lawuis
 

More from uis (16)

Raicesdeecuaciones
RaicesdeecuacionesRaicesdeecuaciones
Raicesdeecuaciones
 
Taller refuerzo
Taller refuerzoTaller refuerzo
Taller refuerzo
 
Secant method
Secant methodSecant method
Secant method
 
Fixedpoint
FixedpointFixedpoint
Fixedpoint
 
Fixedpoint
FixedpointFixedpoint
Fixedpoint
 
Fixedpoint
FixedpointFixedpoint
Fixedpoint
 
False position
False positionFalse position
False position
 
Bisection method
Bisection methodBisection method
Bisection method
 
Gaussseidelsor
GaussseidelsorGaussseidelsor
Gaussseidelsor
 
Gaussseidel
GaussseidelGaussseidel
Gaussseidel
 
Metodos especiales ejercicio en clase
Metodos especiales ejercicio en claseMetodos especiales ejercicio en clase
Metodos especiales ejercicio en clase
 
Metodos especiales ejercicio en clase
Metodos especiales ejercicio en claseMetodos especiales ejercicio en clase
Metodos especiales ejercicio en clase
 
Metodos especiales ejercicio en clase
Metodos especiales ejercicio en claseMetodos especiales ejercicio en clase
Metodos especiales ejercicio en clase
 
Choleskymethod
CholeskymethodCholeskymethod
Choleskymethod
 
Choleskymethod
CholeskymethodCholeskymethod
Choleskymethod
 
L2 darcys law
L2 darcys lawL2 darcys law
L2 darcys law
 

Recently uploaded

Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 

Recently uploaded (20)

Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 

Gauss jordan elimination through pivoting

  • 1. Gauss Jordan Elimination Through Pivoting<br />A system of linear equations can be placed into matrix form. Each equation becomes a row and each variable becomes a column. An additional column is added for the right hand side. A system of linear equations and the resulting matrix are shown. <br />The system of linear equations ...<br />3x + 2y - 4z = 3<br />2x + 3y + 3z = 15<br />5x - 3y + z = 14<br />becomes the augmented matrix ...<br /> xyzrhs  32-43  23315  5-3114 <br />The goal when solving a system of equations is to place the augmented matrix into reduced row-echelon form, if possible.<br />There are three elementary row operations that you may use to accomplish placing a matrix into reduced row-echelon form. <br />Each of the requirements of a reduced row-echelon matrix can satisfied using the elementary row operations. <br />If there is a row of all zeros, then it is at the bottom of the matrix.Interchange two rows of a matrix to move the row of all zeros to the bottom. <br />The first non-zero element of any row is a one. That element is called the leading one.Multiply (divide) the row by a non-zero constant to make the first non-zero element into a one. <br />The leading one of any row is to the right of the leading one of the previous row. Multiply a row by a non-zero constant and add it to another row, replacing that row. The point of this elementary row operation is to make numbers into zeros. By making the numbers under the leading ones into zero, it forces the first non-zero element of any row to be to the right of the leading one of the previous row. <br />All elements above and below a leading one are zero. Multiply a row by a non-zero constant and add it to another row, replacing that row. The point of this elementary row operation is to make numbers into zero. The difference here is that you're clearing (making zero) the elements above the leading one instead of just below the leading one. <br />What is pivoting?<br />The objective of pivoting is to make an element above or below a leading one into a zero.<br />The quot; pivotquot; or quot; pivot elementquot; is an element on the left hand side of a matrix that you want the elements above and below to be zero. <br />Normally, this element is a one. If you can find a book that mentions pivoting, they will usually tell you that you must pivot on a one. If you restrict yourself to the three elementary row operations, then this is a true statement. <br />However, if you are willing to combine the second and third elementary row operations, you come up with another row operation (not elementary, but still valid). <br />You can multiply a row by a non-zero constant and add it to a non-zero multiple of another row, replacing that row. <br />So what? If you are required to pivot on a one, then you must sometimes use the second elementary row operation and divide a row through by the leading element to make it into a one. Division leads to fractions. While fractions are your friends, you're less likely to make a mistake if you don't use them. <br />What's the catch? If you don't pivot on a one, you are likely to encounter larger numbers. Most people are willing to work with the larger numbers to avoid the fractions.<br />The Pivot Process<br />Pivoting works because a common multiple (not necessarily the least common multiple) of two numbers can always be found by multiplying the two numbers together. Let's take the example we had before, and clear the first column. <br /> xyzrhs  32-43  23315  5-3114 <br />Helpful Hints<br />Although you do not have to pivot on a one, it is highly desirable. Pivoting on a one means that you're multiplying by 1 (which is easy to do). <br />It is nice to pivot on the main diagonal, but not absolutely necessary. Some people like to start in the upper left and work their way down to the lower right. <br />As long as you pivot only once per row and column, the columns which have been cleared will remain cleared. <br />Since the point of pivoting is to clear the pivot column, picking a column which already has zeros in it saves time because you don't have to change the row that contains the zero. <br />Selecting a Pivot<br />Pick the column with the most zeros in it. <br />Use a row or column only once <br />Pivot on a one if possible <br />Pivot on the main diagonal <br />Never pivot on a zero <br />Never pivot on the right hand side <br />Since there is no one in the first row, we have two options: Either we divide the first row by three and work with fractions, or we pivot on the three and get large numbers. That is the option I'm going to use. I'll pivot on the three in R1C1. Go ahead and circle that as the pivot element. Depending on your browser, you may see the pivot elements circled in red or just with a * in front of it.<br /> xyzrhs  *32-43  23315  5-3114 <br />The idea is to make the boxed (yellow) numbers into zero. Using the combined row operation (this is not an elementary operation), that could be done by 3R2 - 2R1 -> R2 and 3R3 - 5R1 -> R3. <br />The only row not being changed is the row containing the pivot element (the 3). The whole point of the pivot process is to make the boxed values into zero. Go ahead and rewrite the pivot row and clear (make zero) the pivot column.<br /> xyzrhs  *32-43  0     0    <br />To replace the values in row 2, each new element is obtained by multiplying the element being replaced in the second row by 3 and subtracting 2 times the element in the first row from the same column as the element being replaced.<br />To perform the pivot, place one finger on the pivot (circled number), and one finger on the element being replaced. Multiply these two numbers together. Now, place one finger on the boxed number in the same row as the element you're replacing and the other finger in the pivot row and the same column as the number your replacing. Multiply these two numbers together. Take the product with the pivot and subtract the product without the pivot. <br /> xyzrhs  *32-43  23315  5-3114 <br />To replace the 3 in R2C2, you would take 3(3) - 2(2) = 9 - 4 = 5. <br />To replace the 3 in R2C3, you would take 3(3) - 2(-4) = 9 +8 = 17. <br />To replace the 15 in R2C4, you would take 3(15) - 2(3) = 45 - 6 = 39. <br />To replace the -3 in R3C2, you would take 3(-3) - 5(2) = -9 - 10 = -19.<br />To replace the 1 in R3C3, you would take 3(1) - 5(-4) = 3 + 20 = 23<br />To replace the 14 in R3C4, you would take 3(14) - 5(3) = 42 - 15 = 27.<br />Here's how the process looks.<br /> xyzrhs  pivot row, copy3pivot row, copy2pivot row, copy-4pivot row, copy3  pivot column, clear03(3) - 2(2)53(3) - 2(-4)173(15) - 2(3)39  pivot column, clear03(-3) - 5(2)-193(1) - 5(-4)233(14) - 5(3)27 <br />Or, if you remove the comments, the matrix after the first pivot looks like this.<br /> xyzrhs  32-43  051739  0-192327 <br />It is now time to repeat the entire process. We go through and pick another place to pivot. We would like it to be on the main diagonal, a one, or have zeros in the column. Unfortunately, we can't have any of those. But since we have to multiply all the other numbers by the pivot, we want it to be small, so we'll pivot on the 5 in R2C2 and clear out the 2 and -19.<br /> xyzrhs  32-43  0*51739  0-192327 <br />Begin by copying down the pivot row (2nd row) and clearing the pivot column (2nd column). Previously cleared columns will remain cleared.<br /> xyzrhs   0    0*51739  00   <br />Here are the calculations to find the next interation. Pay careful attention to the 3rd row where we're subtracting -19 times a value. Since we're subtracting a negative, I went ahead and wrote it as plus 19.<br /> xyzrhs  5(3) - 2(0)15pivot column, clear05(-4) - 2(17)-545(3) - 2(39)-63  pivot row, copy0pivot row, copy5pivot row, copy17pivot row, copy39  previously cleared0pivot column, clear05(23) + 19(17)4385(27) + 19(39)876 <br />And the resulting matrix.<br /> xyzrhs  150-54-63  051739  00438876 <br />Notice that all the elements in the first row are multiples of 3 and all the elements in the last row are multiples of 438. We'll divide to reduce the rows.<br /> xyzrhs  50-18-21  051739  0012 <br />That had the added benefit of giving us a 1, exactly where we want it to be to pivot. So, we'll pivot on the 1 in R3C3 and clear out the -18 and 17. Circle your pivot and box the other numbers in that column to clear.<br /> xyzrhs  50-18-21  051739  00*12 <br />Copy down the pivot row and clear the pivot column. Previously cleared columns will remain cleared as long as you don't pivot in a row or column twice.<br /> xyzrhs   00   0 0   00*12 <br />Notice that each time, there are fewer calculations to perform. Here are the calculations for this pivot. Again, since the value in the pivot column in the first row is -18 and we're subtracting, I wrote it as + 18.<br /> xyzrhs  1(5) +18(0)5previously cleared0pivot column, clear01(-21) + 18(2)15  previously cleared01(5) - 17(0)5pivot column, clear01(39) - 17(2)5  pivot row, copy0pivot row, copy0pivot row, copy1pivot row, copy2 <br />And the resulting matrix.<br /> xyzrhs  50015  0505  0012 <br />Notice that the first and second rows are multiples of 5, so we can reduce those rows.<br /> xyzrhs  1003  0101  0012 <br />And the final answer is x = 3, y = 1, and z = 2. You can also write that as an ordered triplet {(3,1,2)}.<br />Hopefully, you noticed that when I worked this example, I didn't follow the hints I gave. That's because I wanted you to see what happens if you don't pivot on a one. There was a one, on the main diagonal, in the original matrix, and it would have been better to start there.<br />Summary<br />Pick your pivot element wisely. <br />Picking a column with zeros in it means less pivoting. <br />Picking a one as the pivot makes the numbers smaller, the multiplication easier, and leaves the non-zero elements in a cleared column the same (less pivoting) <br />Pivoting on the main diagonal means you won't have to switch rows to put the matrix into reduced row-echelon form. <br />Do not pivot on a zero. <br />Do not pivot on the right hand side. <br />Only use a row or column once <br />Take the product with the pivot minus the product without the pivot<br />