Jump to content

Pivot element

From Wikipedia, the free encyclopedia

Thepivotorpivot elementis the element of amatrix,or anarray,which is selected first by analgorithm(e.g.Gaussian elimination,simplex algorithm,etc.), to do certain calculations. In the case of matrix algorithms, a pivot entry is usually required to be at least distinct from zero, and often distant from it; in this case finding this element is calledpivoting.Pivoting may be followed by an interchange of rows or columns to bring the pivot to a fixed position and allow the algorithm to proceed successfully, and possibly to reduce round-off error. It is often used for verifyingrow echelon form.

Pivoting might be thought of as swapping or sorting rows or columns in a matrix, and thus it can be represented asmultiplicationbypermutation matrices.However, algorithms rarely move the matrix elements because this would cost too much time; instead, they just keep track of the permutations.

Overall, pivoting adds more operations to the computational cost of an algorithm. These additional operations are sometimes necessary for the algorithm to work at all. Other times these additional operations are worthwhile because they addnumerical stabilityto the final result.

Examples of systems that require pivoting

[edit]

In the case of Gaussian elimination, the algorithm requires that pivot elements not be zero. Interchanging rows or columns in the case of a zero pivot element is necessary. The system below requires the interchange of rows 2 and 3 to perform elimination.

The system that results from pivoting is as follows and will allow the elimination algorithm and backwards substitution to output the solution to the system.

Furthermore, in Gaussian elimination it is generally desirable to choose a pivot element with largeabsolute value.This improves thenumerical stability.The following system is dramatically affected by round-off error when Gaussian elimination and backwards substitution are performed.

This system has the exact solution ofx1= 10.00 andx2= 1.000, but when the elimination algorithm and backwards substitution are performed using four-digit arithmetic, the small value ofa11causes small round-off errors to be propagated. The algorithm without pivoting yields the approximation ofx1≈ 9873.3 andx2≈ 4. In this case it is desirable that we interchange the two rows so thata21is in the pivot position

Considering this system, the elimination algorithm and backwards substitution using four-digit arithmetic yield the correct valuesx1= 10.00 andx2= 1.000.

Partial, rook, and complete pivoting

[edit]

Inpartial pivoting,the algorithm selects the entry with largest absolute value from the column of the matrix that is currently being considered as the pivot element. More specifically, when reducing a matrix to row echelon form, partial pivoting swaps rows before the column's row reduction to make the pivot element have the largest absolute value compared to the elements below in the same column. Partial pivoting is generally sufficient to adequately reduce round-off error.

However, for certain systems and algorithms,complete pivoting(or maximal pivoting) may be required for acceptable accuracy. Complete pivoting interchanges both rows and columns in order to use the largest (by absolute value) element in the matrix as the pivot. Complete pivoting is usually not necessary to ensure numerical stability and, due to the additional cost of searching for the maximal element, the improvement in numerical stability that it provides is typically outweighed by its reduced efficiency for all but the smallest matrices. Hence, it is rarely used.[1]

Another strategy, known asrook pivotingalso interchanges both rows and columns but only guarantees that the chosen pivot is simultaneously the largest possible entry in its row and the largest possible entry in its column, as opposed to the largest possible in the entire remaining submatrix.[2]When implemented on serial computers this strategy has expected cost of only about three times that of partial pivoting and is therefore cheaper than complete pivoting. Rook pivoting has been proved to be more stable than partial pivoting both theoretically and in practice.

Scaled pivoting

[edit]

A variation of the partial pivoting strategy is scaled pivoting. In this approach, the algorithm selects as the pivot element the entry that is largest relative to the entries in its row. This strategy is desirable when entries' large differences in magnitude lead to the propagation of round-off error. Scaled pivoting should be used in a system like the one below where a row's entries vary greatly in magnitude. In the example below, it would be desirable to interchange the two rows because the current pivot element 30 is larger than 5.291 but it is relatively small compared with the other entries in its row. Without row interchange in this case, rounding errors will be propagated as in the previous example.

Pivot position

[edit]

A pivot position in a matrix, A, is a position in the matrix that corresponds to a row–leading 1 in thereduced row echelon formof A. Since the reduced row echelon form of A is unique, the pivot positions are uniquely determined and do not depend on whether or not row interchanges are performed in the reduction process. Also, the pivot of a row must appear to the right of the pivot in the above row inrow echelon form.

References

[edit]

This article incorporates material from Pivoting onPlanetMath,which is licensed under theCreative Commons Attribution/Share-Alike License.

  1. ^Edelman, Alan, 1992.The Complete Pivoting Conjecture for Gaussian Elimination is False.Mathematica Journal 2, no. 2: 58-61.
  2. ^Poole, George; Neale, Larry (November 2000)."The Rook's Pivoting Strategy".Journal of Computational and Applied Mathematics.123(1–2): 353–369.Bibcode:2000JCoAM.123..353P.doi:10.1016/S0377-0427(00)00406-4.