Spring Dr. Jehad Al Dallal

Slides:



Advertisements
Similar presentations
Chapter 2 Solutions of Systems of Linear Equations / Matrix Inversion
Advertisements

Linear Algebra Applications in Matlab ME 303. Special Characters and Matlab Functions.
MATH 685/ CSI 700/ OR 682 Lecture Notes
Scientific Computing Linear Systems – Gaussian Elimination.
Simultaneous Linear Equations
Lecture 7 Intersection of Hyperplanes and Matrix Inverse Shang-Hua Teng.
SOLVING SYSTEMS OF LINEAR EQUATIONS. Overview A matrix consists of a rectangular array of elements represented by a single symbol (example: [A]). An individual.
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
Linear Systems Pivoting in Gaussian Elim. CSE 541 Roger Crawfis.
Part 3 Chapter 9 Gauss Elimination
Chapter 9 Gauss Elimination The Islamic University of Gaza
Major: All Engineering Majors Author(s): Autar Kaw
Linear Algebraic Equations
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 17 Solution of Systems of Equations.
ECIV 520 Structural Analysis II Review of Matrix Algebra.
Algorithm for Gauss elimination 1) first eliminate for each eq. j, j=1 to n-1 for all eq.s k greater than j a) multiply eq. j by a kj /a jj b) subtract.
Mujahed AlDhaifallah (Term 342) Read Chapter 9 of the textbook
Systems of Linear Equations
Table of Contents Solving Systems of Linear Equations - Gaussian Elimination The method of solving a linear system of equations by Gaussian Elimination.
Major: All Engineering Majors Author(s): Autar Kaw
Scientific Computing Linear Systems – LU Factorization.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Square n-by-n Matrix.
MATH 250 Linear Equations and Matrices
Introduction to Numerical Analysis I MATH/CMPSC 455 PA=LU.
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.
Chemical Engineering Majors Author(s): Autar Kaw
Lecture 8 Matrix Inverse and LU Decomposition
Chapter 5 MATRIX ALGEBRA: DETEMINANT, REVERSE, EIGENVALUES.
Lesson 3 CSPP58001.
Gaussian Elimination Electrical Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for.
Direct Methods for Linear Systems Lecture 3 Alessandra Nardi Thanks to Prof. Jacob White, Suvranu De, Deepak Ramaswamy, Michal Rewienski, and Karen Veroy.
Chapter 9 Gauss Elimination The Islamic University of Gaza
ECE 530 – Analysis Techniques for Large-Scale Electrical Systems Prof. Hao Zhu Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Gaussian Elimination Industrial Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for.
Gaussian Elimination Mechanical Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for.
Linear Systems Dinesh A.
STROUD Worked examples and exercises are in the text Programme 5: Matrices MATRICES PROGRAMME 5.
Gaoal of Chapter 2 To develop direct or iterative methods to solve linear systems Useful Words upper/lower triangular; back/forward substitution; coefficient;
Gaussian Elimination Civil Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for STEM.
Unit #1 Linear Systems Fall Dr. Jehad Al Dallal.
STROUD Worked examples and exercises are in the text PROGRAMME 5 MATRICES.
Autar Kaw Benjamin Rigsby Transforming Numerical Methods Education for STEM Undergraduates.
Numerical Methods.  LU Decomposition is another method to solve a set of simultaneous linear equations  For most non-singular matrix [A] that one could.
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 Computation Lecture 6: Linear Systems – part II United International College.
Numerical Methods. Prof. S. M. Lutful Kabir, BRAC University2  One of the most popular techniques for solving simultaneous linear equations is the Gaussian.
Linear Algebra by Dr. Shorouk Ossama.
Part 3 Chapter 9 Gauss Elimination
PIVOTING The pivot or pivot element is the element of a matrix, or an array, which is selected first by an algorithm (e.g. Gaussian elimination, simplex.
Simultaneous Linear Equations
Gaussian Elimination.
Linear Equations.
Linear Algebra Lecture 15.
Chapter 10: Solving Linear Systems of Equations
Major: All Engineering Majors Author(s): Autar Kaw
Review of Matrix Algebra
Numerical Analysis Lecture14.
Numerical Computation and Optimization
Numerical Analysis Lecture10.
Linear Systems Numerical Methods.
Lecture 13 Simultaneous Linear Equations – Gaussian Elimination (2) Partial Pivoting Dr .Qi Ying.
Major: All Engineering Majors Authors: Autar Kaw
Simultaneous Linear Equations Gaussian Elimination with Partial Pivoting
Lecture 8 Matrix Inverse and LU Decomposition
Linear Systems of Equations: solution and applications
Numerical Analysis Lecture11.
Ax = b Methods for Solution of the System of Equations (ReCap):
Presentation transcript:

Spring 2009-2010 Dr. Jehad Al Dallal Unit #1 Linear Systems Spring 2009-2010 Dr. Jehad Al Dallal

Linear Equations One equation 7x=21 … A system of n simultaneous linear equations can be represented in matrix notation as: Ax = b where A is an nXn matrix, and x and b are vectors of length n. Can write solution as x = A-1b where A-1 is the inverse of A.

Examples If A is a 2X2 matrix, for example then 2x1 – x2 = 3 and 3x1 + 4x2 = -1. Each represents a straight line and the solution of the above is given by their intersection. If A is a 3X3 matrix each of the three equations represents a plane, and the solution is the point lying at the intersection of the three planes.

Solution methods Exact solution methods Approximation methods Example: Gaussian Elimination method Approximation methods Example: Gauss-Seidel method

Gaussian Elimination Eliminate x1 from all the equations after the first. Then eliminate x2 from all the equations after the second. Then eliminate x3 from all the equations after the third. And so on, until after n-1 steps we have eliminated xj from all the equations after the jth, for j = 1, 2, …, n-1. These steps are referred to as the forward elimination stage of Gaussian elimination.

Example Subtract -3/10 times equation 1 from equation 2, and 5/10 times equation 1 from equation 3. Next we swap equations 2 and 3. This is called partial pivoting. It is done to get the largest absolute value on or below the diagonal in column 2 onto the diagonal. This makes the algorithm more stable with respect to round-off errors (see later).

Example (continued) Now subtract -0.1/2.5 times equation 2 from equation 3. This completes the forward elimination stage of the Gaussian elimination algorithm.

Back Substitution After the forward elimination phase, the matrix has been transformed into upper triangular form. Equation n just involves xn and so can now be solved immediately. Equation n-1 just involves xn-1 and xn, and since we already know xn we can find xn-1. Working our way backwards through the equations we can find xn, xn-1,…, x1. This is called the back substitution phase of the Gaussian elimination algorithm.

The Example Again Equation 3 is 6.2x3 = 6.2, so x3 = 1. This value is substituted into equation 2: 2.5x2 + (5)(1) = 2.5 so x2 = -1. Substituting for x2 and x3 in equation 1: 10x1 + (-7)(-1) = 7 so x1 = 0.

LU Factorisation The Gaussian elimination process can be expressed in terms of three matrices. The first matrix has 1’s on the main diagonal and the multipliers used in the forward elimination below the diagonal. This is a lower triangular matrix with unit diagonal, and is usually denoted by L.

LU Factorisation The second matrix, denoted by U, is the upper triangular matrix obtained at the end of the forward elimination. The third matrix, denoted by P, is a permutation matrix representing the row interchanges performed in pivoting.

L, U, and P The original matrix can be expressed as: LU = PA

Norms and condition numbers Norm of a vector : single number that measures the general size of the elements of the vector. Most common norms use p = 1, 2, and ¥

Example X=[2 4 6 -8] ||x||1=2+4+6+8=20 ||x||2 =(22+42+62+82)0.5

Condition Number The condition number measures the amplification of the relative error.

Example

Uses of Condition Number As a measure of the amplification of relative error due to changes in matrix A. As a measure of how close a matrix is to being singular. If K(A) is large then A is close to singular.