Sei sulla pagina 1di 4

Row echelon form

Row echelon form


In linear algebra a matrix is in row echelon form if All nonzero rows (rows with at least one nonzero element) are above any rows of all zeroes [All zero rows, if any, belong at the bottom of the matrix] The leading coefficient (the first nonzero number from the left, also called the pivot) of a nonzero row is always strictly to the right of the leading coefficient of the row above it. All entries in a column below a leading entry are zeroes (implied by the first two criteria). This is an example of 34 matrix in row echelon form:

A matrix is in reduced row echelon form (also called row canonical form) if it satisfies the additional condition: Every leading coefficient is 1 and is the only nonzero entry in its column, like in this example:

Note that this does not always mean that the left of the matrix will be an identity matrix. For example, the following matrix is also in reduced row-echelon form:

because the constants in the third column do not lead any rows.

Transformation to row echelon form


By means of a finite sequence of elementary row operations, any matrix can be transformed to row echelon form. Since elementary row operations preserve the row space of the matrix, the row space of the row echelon form is the same as that of the original matrix. The resulting echelon form is not unique; for example, any multiple of a matrix in echelon form is also in echelon form. However, it has been proven that any matrix can be transformed to exactly one matrix in reduced row echelon form. This means that the nonzero rows of the reduced row echelon form are the unique reduced row echelon generating set for the row space of the original matrix.

Row echelon form

Systems of linear equations


A system of linear equations is said to be in row echelon form if its augmented matrix is in row echelon form. Similarly, a system of equations is said to be in reduced row echelon form or canonical form if its augmented matrix is in reduced row echelon form.

Pseudocode
The following pseudocode converts a matrix to (non-reduced) row-echelon form:
function ToRowEchelonForm(Matrix M) is nr := number of rows in M nc := number of columns in M for 0 r < nr do allZeros := true for 0 c < nc do if M[r, c] != 0 then allZeros := false exit for end if end for if allZeros = true then In M, swap row r with row nr - 1 nr := nr - 1 end if end for p := 0 while p < nr and p < nc do label nextPivot: r := 1 while M[p, p] = 0 do if (p + r) <= nr then p := p + 1 goto nextPivot end if In M, swap row p with row (p + r) <-- bug. nr < p+r at this point r := r + 1 end while for 1 r < (nr - p) do if M[p + r, p] != 0 then x := -M[p + r, p] / M[p, p] for p c < nc do M[p + r, c] := M[p , c] * x + M[p + r, c] end for end if end for p := p + 1

Row echelon form


end while end function

External links
Interactive Row Echelon Form with rational output [1]

References
[1] http:/ / people. revoledu. com/ kardi/ tutorial/ LinearAlgebra/ RREF. html

Article Sources and Contributors

Article Sources and Contributors


Row echelon form Source: http://en.wikipedia.org/w/index.php?oldid=470787805 Contributors: 33rogers, Abovechief, Ashiana43, Benliu, BiT, Braveorca, Burlitsa, Calle, Contestcen, DVdm, Davidstrauss, Dysprosia, Eric119, Giftlite, Gulmammad, Hajhouse, Hydrogen Iodide, I Feel Tired, Insanity Incarnate, Jameshfisher, Jesin, Jitse Niesen, Jludwig, K.menin, Kenyon, KlappCK, LOL, Ladne3, Leoverdura, LokiClock, MagneticFlux, McKay, Michael Hardy, Mideg, Minesweeper, Misssasska, Mm10zua, NCFCQ, Nixuz, Ocolon, Phancy Physicist, Rawling, Rgrant222, Rorro, Sambrewin, Scxnwa, Smjg, Sscir020, The sock that should not be, Thenub314, ToLLIa, Ymar, Zido, 76 anonymous edits

License
Creative Commons Attribution-Share Alike 3.0 Unported //creativecommons.org/licenses/by-sa/3.0/

Potrebbero piacerti anche