Simultaneous Linear Equations

Slides:



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

Autar Kaw Humberto Isaza
Simultaneous 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.
Part 3 Chapter 9 Gauss Elimination
Chapter 9 Gauss Elimination The Islamic University of Gaza
Major: All Engineering Majors Author(s): Autar Kaw
1 Simultaneous Linear Equations Gaussian Elimination.
Ecuaciones Algebraicas lineales. An equation of the form ax+by+c=0 or equivalently ax+by=- c is called a linear equation in x and y variables. ax+by+cz=d.
Linear Algebraic Equations
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.
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.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
Mujahed AlDhaifallah (Term 342) Read Chapter 9 of the textbook
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 10 LU Decomposition and Matrix.
Systems of Linear Equations
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Part 31 Chapter.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Linear Algebraic Equations ~ Gauss Elimination Chapter.
Major: All Engineering Majors Author(s): Autar Kaw
Computer Engineering Majors Authors: Autar Kaw
9/7/ Gauss-Siedel Method Chemical Engineering Majors Authors: Autar Kaw Transforming.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Part 31 Linear.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
MATH 250 Linear Equations and Matrices
MECN 3500 Inter - Bayamon Lecture 7 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
ΑΡΙΘΜΗΤΙΚΕΣ ΜΕΘΟΔΟΙ ΜΟΝΤΕΛΟΠΟΙΗΣΗΣ 4. Αριθμητική Επίλυση Συστημάτων Γραμμικών Εξισώσεων Gaussian elimination Gauss - Jordan 1.
10/17/ Gauss-Siedel Method Industrial Engineering Majors Authors: Autar Kaw
Chapter 3 Solution of Algebraic Equations 1 ChE 401: Computational Techniques for Chemical Engineers Fall 2009/2010 DRAFT SLIDES.
Chemical Engineering Majors Author(s): Autar Kaw
10/26/ Gauss-Siedel Method Civil Engineering Majors Authors: Autar Kaw Transforming.
Lecture 7 - Systems of Equations CVEN 302 June 17, 2002.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 3 - Chapter 9 Linear Systems of Equations: Gauss Elimination.
Gaussian Elimination Electrical Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for.
Linear Systems – Iterative methods
Chapter 9 Gauss Elimination The Islamic University of Gaza
Simultaneous Linear Equations
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.
Mechanical Engineering Majors Authors: Autar Kaw
2/26/ Gauss-Siedel Method Electrical Engineering Majors Authors: Autar Kaw
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.
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.
Linear Algebra Review Tuesday, September 7, 2010.
Autar Kaw Benjamin Rigsby Transforming Numerical Methods Education for STEM Undergraduates.
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.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 3 - Chapter 9.
Numerical Methods. Prof. S. M. Lutful Kabir, BRAC University2  One of the most popular techniques for solving simultaneous linear equations is the Gaussian.
Pitfalls of Gauss Elimination ● Division by zero (avoid by pivoting) ● Round-off errors – Important with >100 eqns – Substitute answer into original eqn.
Part 3 Chapter 9 Gauss Elimination
Simultaneous Linear Equations
Spring Dr. Jehad Al Dallal
Gaussian Elimination.
Gauss-Siedel Method.
Chapter 10: Solving Linear Systems of Equations
Simultaneous Linear Equations
Naïve Gauss Elimination Pitfalls
Autar Kaw Benjamin Rigsby
Part 3 - Chapter 9.
Simultaneous Linear Equations
Major: All Engineering Majors Author(s): Autar Kaw
Numerical Analysis Lecture10.
Simultaneous Linear Equations
Lecture 13 Simultaneous Linear Equations – Gaussian Elimination (2) Partial Pivoting Dr .Qi Ying.
Simultaneous Linear Equations Gaussian Elimination with Partial Pivoting
Naïve Gauss Elimination Pitfalls
Presentation transcript:

Simultaneous Linear Equations Topic: Gaussian Elimination 4/15/2017 http://numericalmethods.eng.usf.edu

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

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

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

Forward Elimination Zeroing out the coefficient of x1 in the 2nd equation. Subtract this equation from 2nd equation Or Where

Forward Elimination Repeat this procedure for the remaining equations to reduce the set of equations as . . .

Forward Elimination Step 2: Eliminate x2 in the 3rd equation. Equivalent to eliminating x1 in the 2nd equation using equation 2 as the pivot equation.

Forward Elimination This procedure is repeated for the remaining equations to reduce the set of equations as . .

Forward Elimination Continue this procedure by using the third equation as the pivot equation and so on. 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 (n-1)th using xn solved for previously. This solves for xn-1.

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

Example: Rocket Velocity The upward velocity of a rocket is given at three different times Time, t Velocity, v s m/s 5 106.8 8 177.2 12 279.2 The velocity data is approximated by a polynomial as: Find: The Velocity at t=6,7.5,9, and 11 seconds.

Example: Rocket Velocity Assume Results in a matrix template of the form: Using date from the time / velocity table, the matrix becomes:

Example: Rocket Velocity Forward Elimination: Step 1 Yields

Example: Rocket Velocity Forward Elimination: Step 1 Yields

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

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

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

Example: Rocket Velocity Back Substitution: Solve for a1 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

Two Potential Pitfalls Division by zero: May occur in the forward elimination steps. Consider the set of equations: - Round-off error: Prone to round-off errors.

Pitfalls: Example Consider the system of equations: = Use five significant figures with chopping = At the end of Forward Elimination =

Pitfalls: Example Back Substitution

Pitfalls: Example Compare the calculated values with the exact solution

Improvements Increase the number of significant digits Decreases round off error Does not avoid division by zero Gaussian Elimination with Partial Pivoting Avoids division by zero Reduces round off error

Partial Pivoting Gaussian Elimination with partial pivoting applies row switching to normal Gaussian Elimination. How? At the beginning of the kth step of forward elimination, find the maximum of If the maximum of the values is In the pth row, then switch rows p and k.

Partial Pivoting What does it Mean? Gaussian Elimination with Partial Pivoting ensures that each step of Forward Elimination is performed with the pivoting element |akk| having the largest absolute value.

Partial Pivoting: Example Consider the system of equations In matrix form = Solve using Gaussian Elimination with Partial Pivoting using five significant digits with chopping

Partial Pivoting: Example Forward Elimination: Step 1 Examining the values of the first column |10|, |-3|, and |5| or 10, 3, and 5 The largest absolute value is 10, which means, to follow the rules of Partial Pivoting, we switch row1 with row1. Performing Forward Elimination

Partial Pivoting: Example Forward Elimination: Step 2 Examining the values of the first column |-0.001| and |2.5| or 0.0001 and 2.5 The largest absolute value is 2.5, so row 2 is switched with row 3 Performing the row swap

Partial Pivoting: Example Forward Elimination: Step 2 Performing the Forward Elimination results in:

Partial Pivoting: Example Back Substitution Solving the equations through back substitution

Partial Pivoting: Example Compare the calculated and exact solution The fact that they are equal is coincidence, but it does illustrate the advantage of Partial Pivoting

Summary Forward Elimination Back Substitution Pitfalls Improvements Partial Pivoting