Gauss-Jordan Elimination algorithm steps

In summary, the algorithm used in the model answer is to repeatedly multiply the row so that the left-most non-zero entry is set to 1, then add/subtract multiples of the row from the rows below it, to make all values below the pivot equal to zero. Then from the bottom up, repeat this process for each row.
  • #1
member 731016
Homework Statement
Please see below
Relevant Equations
Row operations
For this problem,
1681622151988.png

1681622233243.png

For (i) the solution is,
1681622408027.png

However, I am somewhat confused how to follow the steps of the Gauss-Jordan Elimination algorithm from there. Do I have to eliminate the coefficients from ##x_2## and ##x_3## respectively from row 1 and the -5 coefficient from row 2 in the exact order that they did?

For example, could I do for the First row ##R_1 - R_2## which would transform the first row to ##(1~0~7~:~17)## then do row operations to make the top two values in the third column to become zero?

Thank you for any help.

Many thanks!
Many thanks!
 

Attachments

  • 1681622261283.png
    1681622261283.png
    18.8 KB · Views: 93
  • 1681622361039.png
    1681622361039.png
    19.2 KB · Views: 92
Physics news on Phys.org
  • #2
ChiralSuperfields said:
For this problem,
View attachment 324955
View attachment 324956
For (i) the solution is,
View attachment 324959
However, I am somewhat confused how to follow the steps of the Gauss-Jordan Elimination algorithm from there. Do I have to eliminate the coefficients from ##x_2## and ##x_3## respectively from row 1 and the -5 coefficient from row 2 in the exact order that they did?
Yes (I guess).

ChiralSuperfields said:
For example, could I do for the First row ##R_1 - R_2## which would transform the first row to ##(1~0~7~:~17)## then do row operations to make the top two values in the third column to become zero?
It will lead to the correct answer but (I guess) it is probably not what is required.

There are many possible sequences of row operations which would give the correct RREF. But from the wording in the question, it appears you are required to use the specific approach as shown in the model answer.

This would make sense if, for example, it’s part of a computer-science course where you might be required to write some code for this.

The algorithm used in the model answer is, in essence, this:

1. From the top down, repeat for each Row:

a) if needed, multiply the Row so that its left-most non-zero entry is set to 1; this is the Pivot for this Row;

b) add/subtract multiples of the Row from the rows beneath it, to make all values below the Pivot equal to zero.

You end up with 1s in the pivot positions and all zeroes to the left of the pivots.

2. From the bottom up, repeat for each Row:

add/subtract multiples of the Row from the rows above it, to make all values above the Row’s pivot equal to zero.

You end up with RREF.

That's a non-rigorous description.

Note, in this question, no rows initially have leading zeroes. If they did, the initial step would have been to re-order the rows so that the rows with most leading zeroes are nearest the bottom.

Edit - typo's.
 
  • Like
Likes member 731016 and DrClaude

FAQ: Gauss-Jordan Elimination algorithm steps

What is Gauss-Jordan elimination?

Gauss-Jordan elimination is an algorithm used to solve systems of linear equations. It transforms a given matrix into its reduced row echelon form (RREF) using a series of row operations. This method extends Gaussian elimination by continuing the process until the matrix is in its simplest form, making it easier to identify solutions to the system.

What are the main steps in the Gauss-Jordan elimination algorithm?

The main steps in the Gauss-Jordan elimination algorithm are:1. Identify the leftmost non-zero column (pivot column).2. Select a non-zero entry in the pivot column as the pivot. If necessary, swap rows to move this entry to the top of the column.3. Normalize the pivot row by dividing every element in the row by the pivot element, making the pivot element equal to 1.4. Eliminate all other entries in the pivot column by subtracting suitable multiples of the pivot row from the other rows.5. Repeat the process for the submatrix that excludes the row and column of the current pivot.6. Continue until the entire matrix is in reduced row echelon form (RREF).

How do you identify the pivot element in Gauss-Jordan elimination?

The pivot element in Gauss-Jordan elimination is identified by first locating the leftmost non-zero column in the matrix that has not yet been used as a pivot column. Within this column, choose any non-zero entry as the pivot. Typically, the most convenient choice is the first non-zero entry from the top, but any non-zero entry can be used. If necessary, rows can be swapped to move this entry to the top of the pivot column.

What are the row operations used in Gauss-Jordan elimination?

The row operations used in Gauss-Jordan elimination are:1. Swapping two rows.2. Multiplying a row by a non-zero scalar.3. Adding or subtracting a multiple of one row to another row.These operations are used to manipulate the matrix into its reduced row echelon form while preserving the solutions to the system of equations.

How do you know when the matrix is in reduced row echelon form (RREF)?

A matrix is in reduced row echelon form (RREF) when it satisfies the following conditions:1. Each leading entry (pivot) in a row is 1.2. Each leading 1 is the only non-zero entry in its column.3. The leading 1 in each row is to the right of the leading 1 in the row above it.4. Any rows containing only zeros are at the bottom of the matrix.When these conditions are met, the matrix is in its simplest form, and the solutions to the system of equations

Similar threads

Replies
32
Views
1K
Replies
2
Views
9K
Replies
4
Views
2K
Replies
4
Views
8K
Replies
11
Views
4K
Replies
12
Views
2K
Replies
69
Views
5K
Back
Top