Yasser F. O. Mohammad Assiut University Egypt. Previously in NM Introduction to NM Solving single equation System of Linear Equations Vectors and Matrices.

Slides:



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

Section 2.2 Systems of Liner Equations: Unique Solutions.
Gauss Elimination.
Chapter 2 Simultaneous Linear Equations
CSCI-455/552 Introduction to High Performance Computing Lecture 25.
Scientific Computing Linear Systems – Gaussian Elimination.
LU Factorization LU-factorization Matrix factorization Forward substitution Back substitution.
CISE301_Topic3KFUPM1 SE301: Numerical Methods Topic 3: Solution of Systems of Linear Equations Lectures 12-17: KFUPM Read Chapter 9 of the textbook.
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
Matrices. Special Matrices Matrix Addition and Subtraction Example.
Solving systems using matrices
Chapter 2 Section 1 Solving a System of Linear Equations (using Matrices)
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 17 Solution of Systems 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.
Math for CSLecture 21 Solution of Linear Systems of Equations Consistency Rank Geometric Interpretation Gaussian Elimination Lecture 2. Contents.
Mujahed AlDhaifallah (Term 342) Read Chapter 9 of the textbook
10.1 Gaussian Elimination Method
Section 8.1 – Systems of Linear Equations
Systems of linear equations. Simple system Solution.
Linear Algebra – Linear Equations
Multivariate Linear Systems and Row Operations.
SYSTEMS OF LINEAR EQUATIONS
1 1.1 © 2012 Pearson Education, Inc. Linear Equations in Linear Algebra SYSTEMS OF LINEAR EQUATIONS.
Square n-by-n Matrix.
AN INTRODUCTION TO ELEMENTARY ROW OPERATIONS Tools to Solve Matrices.
Sec 3.1 Introduction to Linear System Sec 3.2 Matrices and Gaussian Elemination The graph is a line in xy-plane The graph is a line in xyz-plane.
Math 201 for Management Students
Linear Systems Gaussian Elimination CSE 541 Roger Crawfis.
MATH 250 Linear Equations and Matrices
Sec 3.2 Matrices and Gaussian Elemination Coefficient Matrix 3 x 3 Coefficient Matrix 3 x 3 Augmented Coefficient Matrix 3 x 4 Augmented Coefficient Matrix.
Chapter 1 Section 1.1 Introduction to Matrices and systems of Linear Equations.
Triangular Form and Gaussian Elimination Boldly on to Sec. 7.3a… HW: p odd.
Gaussian Elimination Electrical Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for.
Copyright © 2011 Pearson Education, Inc. Solving Linear Systems Using Matrices Section 6.1 Matrices and Determinants.
Matrices and Systems of Equations
Matrices and Systems of Linear Equations
Sullivan Algebra and Trigonometry: Section 12.3 Objectives of this Section Write the Augmented Matrix of a System of Linear Equations Write the System.
Algebra II Honors Problem of the Day Homework page eoo The following system has been solved and there are infinite solutions in the form of (
10.3 Systems of Linear Equations: Matrices. A matrix is defined as a rectangular array of numbers, Column 1Column 2 Column jColumn n Row 1 Row 2 Row 3.
10.2 Systems of Linear Equations: Matrices Objectives Objectives 1.Write the Augmented Matrix 2.Write the System from the Augmented matrix 3.Perform Row.
Matrices and Systems of Equations
Linear Systems Dinesh A.
 Recall that when you wanted to solve a system of equations, you used to use two different methods.  Substitution Method  Addition Method.
Chapter 5: Matrices and Determinants Section 5.5: Augmented Matrix Solutions.
Matrices, Vectors, Determinants.
Gaussian Elimination Digital Lesson. Copyright © by Houghton Mifflin Company, Inc. All rights reserved. 2 Gaussian elimination with back-substitution.
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.
1 Numerical Methods Solution of Systems of 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
Multivariable Linear Systems and Row Operations
Linear Equations in Linear Algebra
Section 6.1 Systems of Linear Equations
Systems of linear equations
Gaussian Elimination and Gauss-Jordan Elimination
Gaussian Elimination and Gauss-Jordan Elimination
Spring Dr. Jehad Al Dallal
Choi, Jong-In Lee, Ho-Keun Shim, Yoon-Sik
Chapter 8: Lesson 8.1 Matrices & Systems of Equations
Matrix Solutions to Linear Systems
Numerical Analysis Lecture14.
Chapter 1: Linear Equations in Linear Algebra
Linear Systems Numerical Methods.
Linear Equations in Linear Algebra
Section 8.1 – Systems of Linear Equations
Simultaneous Linear Equations Gaussian Elimination with Partial Pivoting
Lecture 8 Matrix Inverse and LU Decomposition
Presentation transcript:

Yasser F. O. Mohammad Assiut University Egypt

Previously in NM Introduction to NM Solving single equation System of Linear Equations Vectors and Matrices Solving Upper Triangular Form Matrices

Introduction 3 Solving three equations in three unknowns

Gauss Elimination (Main Idea) Convert the system to UTF then solve it The following operations do not change the system or the solution of (AX=B): Interchanges: changing order Scaling: Multiplying an equation with a constant Replacement: replacing an equation with the sum of itself with a nonzero multiple of another

Basic Gauss Elimination Procedure Write in matrix-vector form : Ax = b combine in the augmented matrix Basic Gaussian elimination procedure

Pivot 6 At the kth stage of Gaussian elimination procedure, the appropriate multiple of the kth row is used to reduce each of the entries in the kth column below the kth row to zero kth row : pivot row kth column : pivot column element a kk : pivot element ex : If at 3rd elimination procedure,

Example 7 The sum of the voltage drops around a closed loop is zero V=IR

System

Solution Step 1 The pivot is a 11 = 30 Multiply the first row by 20/30 and add it to the second row Multiply the first row by 10/30 and add it to the third row

Solution Step 2 The pivot is a 22 = 125/3 Multiply the second row by 2/5 and add it to the third row to get

Solution Step 3: By back substitution,

Pivoting Strategies 1. No pivoting Use as the pivot element in step i. May fail even if a solution exists

Pivoting Strategies 2. Trivial Pivoting Will find a solution if one exists May cause large rounding error if a ii is small

Pivoting Strategies 3. Partial Pivoting Find the row with maximum value in the pivot column and use it as the pivot row (exchange with current pivot)

Pivoting Strategies 4. Scaled Partial Pivoting Find the row with the maximum relative value in the pivot column and use it as the pivot row

Matlab: Simplest Implementation % Gaussian Elimination function which can solve k systems of the form Ax=b 1,....,Ax=b k at the same time function x = Gauss( A, b ) [n,k1] = size(A); [n1,k] = size(b); x = zeros(n,k); for i=1 : n-1 m = -A(i+1:n, i) / A(i,i); A(i+1:n, : ) = A(i+1:n, : ) + m*A(i,:); b(i+1:n, : ) = b(i+1:n, : ) + m*b(i,:); end x(n,:) = b(n,:)./ A(n,n); for i=n-1 : -1 : 1 x(i,:) = ( b(i,:) - A(i, i+1:n) * x(i+1:n, : ) )./ A(i,i); end