1 Simultaneous Linear Equations Gaussian Elimination.

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.
Triangular Form and Gaussian Elimination Boldly on to Sec. 7.3a…
Simultaneous Linear Equations
LU Factorization LU-factorization Matrix factorization Forward substitution Back substitution.
Chapter: 3b System of Linear Equations
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.
Section 3.4 Systems of Equations in 3 Variables
Major: All Engineering Majors Author(s): Autar Kaw
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 17 Solution of Systems of Equations.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 14 Elimination Methods.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 15 Solution of Systems of Equations.
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
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 18 LU Decomposition and Matrix Inversion.
Systems of Linear Equations
10.1 Gaussian Elimination Method
Major: All Engineering Majors Author(s): Autar Kaw
Solving Systems of Equations: Elimination Method.
SECTION 6.1 SYSTEMS OF LINEAR EQUATIONS: SYSTEMS OF LINEAR EQUATIONS: SUBSTITUTION AND ELIMINATION SUBSTITUTION AND ELIMINATION.
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.
Matrix Algebra. Quick Review Quick Review Solutions.
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.
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
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.
Elimination method Solving linear equations simultaneously.
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 Numerical Methods. 2 Jacobi Iterative Method Choose an initial guess (i.e. all zeros) and Iterate until the equality is satisfied. No guarantee.
Solving Systems of Linear equations with 3 Variables To solve for three variables, we need a system of three independent equations.
3/6/ Gauss-Siedel Method Major: All Engineering Majors Author: دکتر ابوالفضل رنجبر نوعی
Gaussian Elimination Civil Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for STEM.
Unit #1 Linear Systems Fall Dr. Jehad Al Dallal.
Autar Kaw Benjamin Rigsby Transforming Numerical Methods Education for STEM Undergraduates.
Linear Algebra Review Tuesday, September 7, 2010.
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 Methods. Prof. S. M. Lutful Kabir, BRAC University2  One of the most popular techniques for solving simultaneous linear equations is the Gaussian.
REVIEW Linear Combinations Given vectors and given scalars
Simultaneous Linear Equations
Gaussian Elimination.
Solving Systems of Linear Equations in 3 Variables.
Gauss-Siedel Method.
PROGRAMME 4 DETERMINANTS.
Chapter 10: Solving Linear Systems of Equations
Chapter 6 Direct Methods for Solving Linear Systems
Autar Kaw Benjamin Rigsby
Solving Linear Systems Algebraically
Chemical Engineering Majors Authors: Autar Kaw
PROGRAMME 4 DETERMINANTS.
Simultaneous Equations
Major: All Engineering Majors Author(s): Autar Kaw
Review of Matrix Algebra
Numerical Analysis Lecture14.
Numerical Computation and Optimization
Numerical Analysis Lecture10.
Simultaneous Linear Equations
Solving Systems of Linear Equations in 3 Variables.
Systems of Equations Solve by Graphing.
PROGRAMME F5 LINEAR EQUATIONS and SIMULTANEOUS LINEAR EQUATIONS.
Major: All Engineering Majors Authors: Autar Kaw
Multiply by 5/40 and sum with 2nd row
Presentation transcript:

1 Simultaneous Linear Equations Gaussian Elimination

One of the most popular techniques for solving simultaneous linear equations of the form Consists of 2 steps 1. Forward Elimination of Unknowns. 2. Back Substitution

Forward Elimination The goal of Forward Elimination is to transform the coefficient matrix into an Upper Triangular Matrix

Forward Elimination Linear Equations A set of n equations and n unknowns..

Forward Elimination Transform to an Upper Triangular Matrix Step 1: Eliminate x 1 in 2 nd equation using equation 1 as the pivot equation Which will yield

Forward Elimination Zeroing out the coefficient of x 1 in the 2 nd equation. Subtract this equation from 2 nd equation Pivot = (a(2,1)/a(1,1)) For i=1:var+1 i:all element in the same equation a(2,i) = a(2,i) - (pivot * a(1,i) ) end

This procedure is repeated for the remaining equations to reduce the set of equations as... For j=1+1:var j: all equations 1: to eleminate x1 Pivot = (a( j,1)/a(1,1)) For i=1:var+1 a( j,i) = a( j,i) - (pivot * a(1,i) ) End end

Forward Elimination Step 2: Eliminate x 2 in the 3 rd equation. Equivalent to eliminating x 1 in the 2 nd equation using equation 2 as the pivot equation. This procedure is repeated for the remaining equations to reduce the set of equations

Forward Elimination Continue this procedure by using the third equation as the pivot equation and so on. For nx=1:var-1 xn:all the x in all equations For j=nx+1:var j: all equations Pivot = (a( j,nx)/a(nx, nx)) For i=1:var+1 i:all element in the same equation a( j,i) = a( j,i) - (pivot * a(nx,i) ) End end

At the end of (n-1) Forward Elimination steps, the system of equations will look like:..

Forward Elimination At the end of the Forward Elimination steps

Back Substitution The goal of Back Substitution is to solve each of the equations using the upper triangular matrix. Example of a system of 3 equations

Back Substitution Start with the last equation because it has only one unknown Solve the second from last equation using x n solved for previously. This solves for x n-1.

Back Substitution Representing Back Substitution for all equations by formula For i=n-1, n-2,….,1 and

For z= var : -1 : 1 sum= 0 For w=z+1 : 1 : var Sum =sum+(a(z,w)*x(w)) End X(z)= (a(z,4)- sum) / a(z,z) end

Example: Rocket Velocity The upward velocity of a rocket is given at three different times Time, tVelocity, v s m/s

Example: Rocket Velocity Forward Elimination: Step 1 Yields

Example: Rocket Velocity Yields Forward Elimination: Step 1

Example: Rocket Velocity Yields This is now ready for Back Substitution Forward Elimination: Step 2

Example: Rocket Velocity Back Substitution: Solve for a 3 using the third equation

Example: Rocket Velocity Back Substitution: Solve for a 2 using the second equation

Example: Rocket Velocity Back Substitution: Solve for a 1 using the first equation

Example: Rocket Velocity Solution: The solution vector is The polynomial that passes through the three data points is then:

Example: Rocket Velocity Solution: Substitute each value of t to find the corresponding velocity