After using the pivot row to transform the second row, we obtain
22:3 8 : 16:3
06:400 : 4:800
:
Again, due to finite precision, the original augmented matrix and the transformed matrix are not exactly
equivalent. Performing back substitution, we obtain
x
2
¼
4:800
6:400
¼ 0:75
and
x
1
¼
16:3 þ 8 0:75
22:3
¼ 1
We have arrived at the exact solution!
Although partial pivoting is useful in safeguarding against corruption of the results by
round-off error is some cases, it is not a foolproof strategy. If elements in a coefficient
matrix are of disparate magnitudes, then multiplication operations with the relatively
larger numbers can also be problematic. The number of multiplication/division oper-
ations (floating-point operations) carried out during Gaussian elimination of an n × n
matrix A is O(n
3
/3), and the number of addition/subtraction operations carried out is
also O(n
3
/3). This can be compared to the number of floating-point operations that are
required to carry out the backward substitution procedure, which is O(n
2
), or the
number of comparisons that are needed to perform partial pivoting, which is also O
(n
2
). Gaussian elimination entails many more arithmetic operations than that performed
by either backward substitution or the row comparisons and swapping steps. Gaussian
elimination is therefore the most computationally intensive step of the entire solution
method, posing a bottleneck in terms of computational time and resources. For
large matrices, the number of arithmetic operations that are carried out during the
elimination process is considerable and can result in sizeable accumulation of round-off
errors.
Several methods have been devised to resolve such situations. One strategy is
maximal or complete pivoting, in which the maximum value of the pivot element is
searched amongst all rows and columns (except rows above the pivot row and
columns to the left of the pivot column). The row and column containing the largest
element are then swapped with the pivot row and pivot column. This entails a more
complicated procedure since column interchanges require that the order of the vari-
ables be interchanged too. Permutation matrices, which are identity matrices that
contain the same row and column interchanges as the augmented matrix, must be
created to keep track of the interchanges performed during the elimination operations.
Another method that is used to reduce the magnitude of the round-off errors is
called scaled partial pivoting. In this method every element in the pivot column is first
scaled by the largest element in its row. The element of largest absolute magnitude in
the pivot row p and in each row below the pivot row serves as the scale factor for that
row, and will be different for different rows. If s
i
¼ max
1jn
a
ij
for p ≤ i ≤ n are the
scale factors, then the the pivot element, and therefore the new pivot row, is chosen
based on the following criteria:
ja
kp
j
s
k
¼ max
pin
ja
ip
j
s
i
:
The kth row is then interchanged with the current pivot row.
86
Systems of linear equations