330 likes | 339 Views
Explore direct and iterative methods to solve linear systems, including upper-triangular solutions, Gaussian elimination, and iterative techniques. Learn about pivoting strategies, triangular factorization, LU factorization, and computational complexity. Discover Jacobi and Gauss-Seidel iterative methods for efficient solutions.
E N D
CHAPTER 2 Solution of linear Systems AX=B
Gaoal of Chapter 2 To develop direct or iterative methods to solve linear systems Useful Words upper/lower triangular; back/forward substitution; coefficient; matrix; augmented matrix; singular; nonsigular; elementary transformation; interchange; pivot; factorization; induction; deduction; determinant; perturbed/permutation matrix. 2.1 Upper-Triangular Linear Systems Solution for special linear systems: upper-triangular systems lower-triangular systems
Algorithm of back substitution Inputan n×n triangular matrix A with aii≠0, an n×1 matrix B. Outputann×1 matrix X (the solution set). Step 1 Set . Step 2 For , set Step 3 Output
Algorithm of forward substitution Inputan n×n triangular matrix A with aii≠0, an n×1 matrix B. Outputann×1 matrix X (the solution set). Step 1 Set . Step 2 For , set Step 3 Output Example Ex. 7, P. 45
2.2 Gaussian Elimination and Pivoting One way to obtain the solution set for is to transformate the system into an triangular system equivalently. Gaussian elimination with back substitution
Denote the entries of as the augmented matrix
Example Solve the given system using Gaussian elimination without row interchanges Solution: Find the augmented matrix: Find the triangular matrix of A using the row transformations: Find the solutions of the system using the back substitution:
Pivoting Strategies Example Solve the linear system using Guassian method using four-digit arithmetic with rounding:
Gaussian elimination with pivoting 0 0 0 partial pivoting
Triangular Factorization For , if A can be factorized into the product of two triangular matrices, the solution set of the system will be easy to be found.
Example Solve the given system using Gaussian elimination without row interchanges Solution: Solve the given system using the LU factorization.
Doolittle’s Method
Example Solve the system using the LU factorization . (1) Find L and U (2) Solve two triangular systems
is not a lower-triangular. Example can not be factorizeded into LU directly. permutation matrix
Two Conclusions 1. If an n×n matrix A is nonsingular, then there must be a permutation matrix P such that PA=LU, where L is lower triangular with 1’s on the diagonal and U is upper triangular. 2. If each leading principal minor of an n×n matrix A is not zero, then there exist a lower triangularLwith 1’s on the diagonal and an upper triangularU such that A=LU.
Computational complexity Elimination :Multiplications/divisions : Additions/subtractions:
Substitution :Multiplications/divisions : Additions/subtractions:
(II) An iterative technique to solve the linear system Ax=b starts with an initial approximation to the solution x and generates a sequence of vectors that converges to the solution x . 2.4 Iterative Methods for Linear Systems • Iterative techniques are seldom used for solving linear systems of small dimension since the time required for sufficient accuracy exceeds that required for direct techniques . For large systems with a high percentage of 0 entries , these techniques are efficient in terms of both computer storage and computation .
Definition A vector norm on is a function , , from into with the following properties : Norms of Vectors on Some Useful Norms on the Euclidean norm
For example, converges to A sequence of vectors is said to converge to a vector with respect to the norm , if, given any , there exists an integer such that , for all That is, if and only if for all i.
Norm of the matrix Definition A matrix norm on the set of all matrices is a real function , , defined on this set , satisfying for all matrices and and all real numbers :
Example Solve the linear system Ax=b x=Tx+c x c T Jacobi Iterative
Rearrange the equations Give the G-S iterative formula List the results Example Solve the linear system using the Gauss-Seidel method.
The convergence of Jacobi and Gauss-Seidel iterative This problem is related with the matrix T ( ) Jacob:
Example Calculate the iterative matrices. Solution: Split A into 3 parts.
Theorem Definition Thespectral radius of a matrix A is defined by