NA10 06 Notes
NA10 06 Notes
Chapter 6
Initial-Value Problems for Ordinary Differential Equations
Gaussian elimination with backward substitution was introduced as a method that, using the legal row
operations, reduces the augmented matrix to row echelon form. That is where the coefficient matrix is
upper triangular. Backward substitution is then used to obtain the solutions to the system. It is
important to note that this method does NOT require entries of 1 along the diagonal.
Another method, Gauss-Jordan elimination, was discussed in the exercises. This method is very
popular since it goes one step further than the previous method in that the legal row operations are used
to reduced the augmented matrix to reduced row echelon form. That is the coefficient matrix is a
diagonal matrix. form. Although entries of 1 along the diagonal are not required, for smaller systems, it
is often useful. However, keep in mind that in doing so, you are adding to the number of computations
needed. With larger systems, this will add to the cost of finding the solution as indicated in the texts
discussion of operation counts.
PARTIAL PIVOTING:
Errors can arise when the pivot element akkk , the diagonal entry at the kth step, is small relative to the
absolute value of the other entries below it in the matrix. The strategy is to determine the largest entry in
absolute value on or below the diagonal and swap the two corresponding rows so that that entry
becomes the new pivot element. This is stated mathematically as follows: we need to determine the
smallest p R k such that apkk = max aikk and perform the row swap Ek 4 Ep , if p s k.
k%i%n
COMPLETE PIVOTING:
Complete (or maximal) pivoting at the kth step searches all the entries aij , for i = k, k C 1,..., n and
j = k, k C 1,..., n, to find the entry with the largest magnitude. Both row and column interchanges are
performed to bring this entry to the pivot position. The max |*| of all row entries considered must be
moved to pivot position. This strategy requires numerous comparisons at each stage and is therefore,
only for systems where accuracy is essential and the amount of execution time needed for this method
can be justified.
When a row interchange is required, we decompose the matrix A into A = Pt LU where P is the
permutation matrix that interchanges the rows.
• A is singular if det A = 0
n
• A is diagonally dominant if aii R >a
j=1
ij
,jsi
n
• A is strictly diagonally dominant if aii O >a
j=1
ij
, j s i. The matrix A always has an LU
decomposition.
• A is positive definite if xt Ax O 0 for every n-dimensional vector x s 0. The matrix A always has
special factorizations LLt and LDLt .
• A tridiagonal matrix occur often and have special factorizations. Refer to the text.