Numerical Analysis Lecture14.

Slides:



Advertisements
Similar presentations
Copyright © Cengage Learning. All rights reserved.
Advertisements

Elementary Linear Algebra
Numerical Solution of Linear Equations
Chapter 2 Solutions of Systems of Linear Equations / Matrix Inversion
Chapter 4 Systems of Linear Equations; Matrices
Chapter: 3c System of Linear Equations
Linear Algebra Applications in Matlab ME 303. Special Characters and Matlab Functions.
1.5 Elementary Matrices and a Method for Finding
Algebraic, transcendental (i.e., involving trigonometric and exponential functions), ordinary differential equations, or partial differential equations...
Matrices: Inverse Matrix
MATH 685/ CSI 700/ OR 682 Lecture Notes
Systems of Linear Equations
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
Solution of linear system of equations
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 15 Solution of Systems of Equations.
ECIV 520 Structural Analysis II Review of Matrix Algebra.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
Linear Systems and Matrices
Mujahed AlDhaifallah (Term 342) Read Chapter 9 of the textbook
Copyright © Cengage Learning. All rights reserved. 7.6 The Inverse of a Square Matrix.
Multivariate Linear Systems and Row Operations.
Matrices King Saud University. If m and n are positive integers, then an m  n matrix is a rectangular array in which each entry a ij of the matrix is.
MATH 250 Linear Equations and Matrices
Numerical Computation Lecture 7: Finding Inverses: Gauss-Jordan United International College.
CHAPTER 2 MATRIX. CHAPTER OUTLINE 2.1 Introduction 2.2 Types of Matrices 2.3 Determinants 2.4 The Inverse of a Square Matrix 2.5 Types of Solutions to.
Yasser F. O. Mohammad Assiut University Egypt. Previously in NM Introduction to NM Solving single equation System of Linear Equations Vectors and Matrices.
ΑΡΙΘΜΗΤΙΚΕΣ ΜΕΘΟΔΟΙ ΜΟΝΤΕΛΟΠΟΙΗΣΗΣ 4. Αριθμητική Επίλυση Συστημάτων Γραμμικών Εξισώσεων Gaussian elimination Gauss - Jordan 1.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
Lecture 7 - Systems of Equations CVEN 302 June 17, 2002.
Chapter 5 MATRIX ALGEBRA: DETEMINANT, REVERSE, EIGENVALUES.
Copyright © 2011 Pearson Education, Inc. Solving Linear Systems Using Matrices Section 6.1 Matrices and Determinants.
TH EDITION LIAL HORNSBY SCHNEIDER COLLEGE ALGEBRA.
LEARNING OUTCOMES At the end of this topic, student should be able to :  D efination of matrix  Identify the different types of matrices such as rectangular,
Unit #1 Linear Systems Fall Dr. Jehad Al Dallal.
Linear Algebra Engineering Mathematics-I. Linear Systems in Two Unknowns Engineering Mathematics-I.
Lecture 9 Numerical Analysis. Solution of Linear System of Equations Chapter 3.
Numerical Methods. Introduction Prof. S. M. Lutful Kabir, BRAC University2  One of the most popular techniques for solving simultaneous linear equations.
Numerical Methods. Prof. S. M. Lutful Kabir, BRAC University2  One of the most popular techniques for solving simultaneous linear equations is the Gaussian.
College Algebra Chapter 6 Matrices and Determinants and Applications
Chapter 4 Systems of Linear Equations; Matrices
College Algebra Chapter 6 Matrices and Determinants and Applications
Multivariable Linear Systems and Row Operations
Section 6.1 Systems of Linear Equations
Chapter: 3c System of Linear Equations
Chapter 8 Numerical Technique
Gaussian Elimination and Gauss-Jordan Elimination
7.7 Determinants. Cramer’s Rule
Spring Dr. Jehad Al Dallal
5 Systems of Linear Equations and Matrices
Numerical Analysis Lecture12.
CHAPTER 9: GAUSSIAN ELIMINATION.
Chapter 10: Solving Linear Systems of Equations
Chapter 1 Systems of Linear Equations and Matrices
Numerical Analysis Lecture 45.
Numerical Analysis Lecture 16.
Larger Systems of Linear Equations and Matrices
Chapter 7: Matrices and Systems of Equations and Inequalities
Major: All Engineering Majors Author(s): Autar Kaw
Elementary Row Operations Gaussian Elimination Method
Matrix Solutions to Linear Systems
Review of Matrix Algebra
Numerical Analysis Lecture13.
Numerical Analysis Lecture10.
Linear Systems Numerical Methods.
Numerical Analysis Lecture 17.
Matrix Algebra.
Chapter 4 Systems of Linear Equations; Matrices
Numerical Analysis Lecture11.
Chapter 4 Systems of Linear Equations; Matrices
Ax = b Methods for Solution of the System of Equations (ReCap):
Presentation transcript:

Numerical Analysis Lecture14

Chapter 3

Solution of Linear System of Equations and Matrix Inversion

Introduction Gaussian Elimination Gauss-Jordon Elimination Crout’s Reduction Jacobi’s Gauss- Seidal Iteration Relaxation Matrix Inversion

Relaxation Method

This is also an iterative method and is due to Southwell. To explain the details, consider again the system of equations

Let be the solution vector obtained iteratively after p-th iteration. If denotes the residual of the i-th equation of system given above , that is of

defined by we can improve the solution vector successively by reducing the largest residual to zero at that iteration. This is the basic idea of relaxation method.

To achieve the fast convergence of the procedure, we take all terms to one side and then reorder the equations so that the largest negative coefficients in the equations appear on the diagonal.

Now, if at any iteration, is the largest residual in magnitude, then we give an increment to being the coefficient of xi

In other words, we change to to relax that is to reduce to zero.

Example Solve the system of equations by the relaxation method, starting with the vector (0, 0, 0).

Solution At first, we transfer all the terms to the right-hand side and reorder the equations, so that the largest coefficients in the equations appear on the diagonal.

Thus, we get after interchanging the 2nd and 3rd equations.

Starting with the initial solution vector (0, 0, 0), that is taking we find the residuals of which the largest residual in magnitude is R3, i.e. the 3rd equation has more error and needs immediate attention for improvement.

Thus, we introduce a change, dx3in x3 which is obtained from the formula

Similarly, we find the new residuals of large magnitude and relax it to zero, and so on. We shall continue this process, until all the residuals are zero or very small.

Iteration Residuals Maximum Difference Variables number R1 R2 R3 x1 x2 x3 11 10 -15 1.875 1 9.125 8.125 1.5288 2 0.0478 6.5962 -3.0576 -0.9423

Matrix Inversion

Consider a system of equations in the form One way of writing its solution is in the form

Thus, the solution to the system can also be obtained if the inverse of the coefficient matrix [A] is known. That is the product of two square matrices is an identity matrix

then, and Every square non-singular matrix will have an inverse.

then, and Every square non-singular matrix will have an inverse. Gauss elimination and Gauss-Jordan methods are popular among many methods available for finding the inverse of a matrix.

Gaussian Elimination Method

In this method, if A is a given matrix, for which we have to find the inverse; at first, we place an identity matrix, whose order is same as that of A, adjacent to A which we call an augmented matrix.

Then the inverse of A is computed in two stages Then the inverse of A is computed in two stages. In the first stage, A is converted into an upper triangular form, using Gaussian elimination method

In the second stage, the above upper triangular matrix is reduced to an identity matrix by row transformations. All these operations are also performed on the adjacently placed identity matrix.

Finally, when A is transformed into an identity matrix, the adjacent matrix gives the inverse of A. In order to increase the accuracy of the result, it is essential to employ partial pivoting.

Example Use the Gaussian elimination method to find the inverse of the matrix

Solution At first, we place an identity matrix of the same order adjacent to the given matrix. Thus, the augmented matrix can be written as

Stage I (Reduction to upper triangular form): Let R1, R2 and R3 denote the 1st , 2nd and 3rd rows of a matrix. In the 1st column, 4 is the largest element, thus interchanging R1 and R2 to bring the pivot element 4 to the place of a11, we have the augmented matrix in the form

Divide R1 by 4 to get

Perform , which gives

Perform in the above equation , which yields

Now, looking at the second column for the pivot, the max (1/4 Now, looking at the second column for the pivot, the max (1/4. 11/4) is 11/4. Therefore, we interchange R2 and R3 in the last equation and get

Now, divide R2 by the pivot a22 = 11/4, and obtain

Performing yields

Finally, we divide R3 by (10/11), thus getting an upper triangular form

Stage II Reduction to an identity matrix (1/4)R3 + R1 and (-15/11)R3 + R2

Finally, performing we obtain

Thus, we have

Gauss - Jordan Method

This method is similar to Gaussian elimination method, with the essential difference that the stage I of reducing the given matrix to an upper triangular form is not needed.

However, the given matrix can be directly reduced to an identity matrix using elementary row operations.

Example Find the inverse of the given matrix by Gauss-Jordan method

Solution Let R1, R2 and R3 denote the 1st, 2nd and 3rd rows of a matrix. We place the identity matrix adjacent to the given matrix. So the augmented matrix is given by

Performing we get

Now, performing we obtain

Carrying out further operations and we arrive at

Now, dividing the third row by –10, we get

Further, we perform and to get

Finally, multiplying R2 by –1, we obtain

Hence, we have

Numerical Analysis Lecture14