SlideShare a Scribd company logo
1 of 15
Download to read offline
1
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Linear Algebraic Equations
Gauss Elimination
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Objectives
• Knowing how to solve a system of linear
equations
• Understanding how to implement Gauss
elimination method
• Understanding the concepts of singularity
and ill-conditioning
2
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
A System of Linear Equations
1823 21 =+ xx
22 21 =+− xx
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Solution
Subtract second equation
from first
16*04 21 =+ xx
41 =x
32 =x
3
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
In Matrix Form






=












− 2
18
21
23
2
1
x
x
1823 21 =+ xx
22 21 =+− xx
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Elimination






=












− 2
18
21
23
2
1
x
x
Using row operations






=












− 2
16
21
04
2
1
x
x
4
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Elimination
Using row operations






=












− 2
16
21
04
2
1
x
x






=












6
16
20
04
2
1
x
x
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Naïve Elimination Routine!
5
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Back Substitution
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Special Cases
6
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Conclusions
• In this lecture, we revised the process of
Gauss elimination
• A clear algorithm for the elimination
process and the back substitution was
presented
• The different cases of no solution, infinite
number of solutions, and ill conditioning
were graphically presented
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Linear Algebraic Equations
Iterative Solutions
7
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Objectives
• Recognize the need for iterative solutions
• Understand the difference between
different iterative methods for solving
systems of linear equations
• Apply iterative methods to solve a system
of linear equations
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Why Iterative Methods?
• When system of equations is sparse; too many
zero elements. Such systems are produced
when approximately solving differential
equations; finite difference, finite element, etc…
• We already have sources of error in the solution;
model errors, approximation errors, truncation
errors, etc…, so why not use approximate
method any way
• Saves on time!
8
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Gauss-Jacobi
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Gauss-Jacobi: Example
1642
302
1124
321
21
321
=++
=++−
=++
xxx
xx
xxx ( )
( )
( ) 4/216
2/3
4/211
213
12
321
xxx
xx
xxx
−−=
+=
−−=
( )
( )
( ) 4/216
2/3
4/211
21
1
3
1
1
2
32
1
1
kkk
kk
kkk
xxx
xx
xxx
−−=
+=
−−=
+
+
+
9
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Is that really going to work?!!!
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Let’s try it!
{ }










=
1
1
1
0
x
( )
( )
( ) 25.34/1216
22/13
24/1211
1
3
1
2
1
1
=−−=
=+=
=−−=
x
x
x
( )
( )
( ) 5.24/22*216
5.22/23
9375.04/25.32*211
2
3
2
2
2
1
=−−=
=+=
=−−=
x
x
x ( )
( )
( ) 9063.24/5.2875.116
9688.12/9375.03
875.04/5.2511
3
3
3
2
3
1
=−−=
=+=
=−−=
x
x
x
10
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
In General!
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
A system of linear equations














=


























nnnnnn
n
n
b
b
b
x
x
x
aaa
aaa
aaa
MM
L
MOMM
L
L
2
1
2
1
21
22221
11211
Let’s examine one equation!
11212111 ... bxaxaxa nn =+++
( )
11
12121
1
...
a
xaxab
x nn++−
=
11
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
For any equation






−−= ∑∑ +=
−
=
+
n
ij
k
jij
i
j
k
jiji
ii
k
i xaxab
a
x
1
1
1
1 1
( )
ii
niniiiiiiii
i
a
xaxaxaxab
x
+++++−
= ++−− ...... 11,11,11
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Can it be any better?
12
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Gauss-Seidel






−−= ∑∑ +=
−
=
+
n
ij
k
jij
i
j
k
jiji
ii
k
i xaxab
a
x
1
1
1
1 1






−−= ∑∑ +=
−
=
++
n
ij
k
jij
i
j
k
jiji
ii
k
i xaxab
a
x
1
1
1
11 1
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Gauss-Seidel: Example
1642
302
1124
321
21
321
=++
=++−
=++
xxx
xx
xxx ( )
( )
( ) 4/216
2/3
4/211
213
12
321
xxx
xx
xxx
−−=
+=
−−=
( )
( )
( ) 4/216
2/3
4/211
1
2
1
1
1
3
1
1
1
2
32
1
1
+++
++
+
−−=
+=
−−=
kkk
kk
kkk
xxx
xx
xxx
13
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Let’s try it!
{ }










=
1
1
1
0
x
( )
( )
( ) 375.24/5.22*216
5.22/23
24/1211
1
3
1
2
1
1
=−−=
=+=
=−−=
x
x
x
( )
( )
( ) 0586.34/9531.1906.0*216
9531.12/90625.03
90625.04/375.2511
2
3
2
2
2
1
=−−=
=+=
=−−=
x
x
x
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Convergence Condition
• For the iterative solutions presented to
converge, the matrix must be diagonally
dominant.
∑
≠
=
>
n
ij
j
ijii aa
1
14
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Error!
{ } { } { }kkk
xxe −= −1
k
i
k
ik
a
x
e
max=ε
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Algorithm
1. If the system is not diagonally dominant; end
2. Start with any initial solution {x}
3. Apply the steps for Gauss-Seidal method to
evaluate the next iteration
4. If the maximum approximate relative error < εs;
end
5. Let the old solution vector equal the new
solution vector
6. Goto step 3
15
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Homework #3
• For the given system of simultaneous equations
• Write down the system of equation in a form that can be used for
iterative methods for solving systems of equations
• Use four iterations using Gauss-Jacobi method to find an
approximate solution using initial values {0,0,0}
• Use four iterations using Gauss-Seidel method to find an
approximate solution using initial values {0,0,0}
1642
1124
32
321
321
21
=++
=++
=+−
xxx
xxx
xx
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Homework #3 cont’d
• Chapter 11, p 303, numbers:
11.8,11.9,11.10
• Due Next week

More Related Content

What's hot

Direct and indirect methods
Direct and indirect methodsDirect and indirect methods
Direct and indirect methodsEjaz hussain
 
Numerical Techniques
Numerical TechniquesNumerical Techniques
Numerical TechniquesYasir Mahdi
 
On The Numerical Solution of Picard Iteration Method for Fractional Integro -...
On The Numerical Solution of Picard Iteration Method for Fractional Integro -...On The Numerical Solution of Picard Iteration Method for Fractional Integro -...
On The Numerical Solution of Picard Iteration Method for Fractional Integro -...DavidIlejimi
 
Least Square Plane and Leastsquare Quadric Surface Approximation by Using Mod...
Least Square Plane and Leastsquare Quadric Surface Approximation by Using Mod...Least Square Plane and Leastsquare Quadric Surface Approximation by Using Mod...
Least Square Plane and Leastsquare Quadric Surface Approximation by Using Mod...IOSRJM
 
MCA_UNIT-1_Computer Oriented Numerical Statistical Methods
MCA_UNIT-1_Computer Oriented Numerical Statistical MethodsMCA_UNIT-1_Computer Oriented Numerical Statistical Methods
MCA_UNIT-1_Computer Oriented Numerical Statistical MethodsRai University
 
Chebyshev Collocation Approach for a Continuous Formulation of Implicit Hybri...
Chebyshev Collocation Approach for a Continuous Formulation of Implicit Hybri...Chebyshev Collocation Approach for a Continuous Formulation of Implicit Hybri...
Chebyshev Collocation Approach for a Continuous Formulation of Implicit Hybri...IOSR Journals
 
A computational method for system of linear fredholm integral equations
A computational method for system of linear fredholm integral equationsA computational method for system of linear fredholm integral equations
A computational method for system of linear fredholm integral equationsAlexander Decker
 
Adomian decomposition Method and Differential Transform Method to solve the H...
Adomian decomposition Method and Differential Transform Method to solve the H...Adomian decomposition Method and Differential Transform Method to solve the H...
Adomian decomposition Method and Differential Transform Method to solve the H...IJERA Editor
 
MCA_UNIT-2_Computer Oriented Numerical Statistical Methods
MCA_UNIT-2_Computer Oriented Numerical Statistical MethodsMCA_UNIT-2_Computer Oriented Numerical Statistical Methods
MCA_UNIT-2_Computer Oriented Numerical Statistical MethodsRai University
 
Elements of Statistical Learning 読み会 第2章
Elements of Statistical Learning 読み会 第2章Elements of Statistical Learning 読み会 第2章
Elements of Statistical Learning 読み会 第2章Tsuyoshi Sakama
 
Reducible equation to quadratic form
Reducible equation to quadratic formReducible equation to quadratic form
Reducible equation to quadratic formMahrukhShehzadi1
 
Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets
Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets
Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets Vladimir Godovalov
 
Contactless Calipper - English
Contactless Calipper - EnglishContactless Calipper - English
Contactless Calipper - EnglishGiga Khizanishvili
 
BSC_COMPUTER _SCIENCE_UNIT-4_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-4_DISCRETE MATHEMATICSBSC_COMPUTER _SCIENCE_UNIT-4_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-4_DISCRETE MATHEMATICSRai University
 

What's hot (19)

Direct and indirect methods
Direct and indirect methodsDirect and indirect methods
Direct and indirect methods
 
Numerical Techniques
Numerical TechniquesNumerical Techniques
Numerical Techniques
 
On The Numerical Solution of Picard Iteration Method for Fractional Integro -...
On The Numerical Solution of Picard Iteration Method for Fractional Integro -...On The Numerical Solution of Picard Iteration Method for Fractional Integro -...
On The Numerical Solution of Picard Iteration Method for Fractional Integro -...
 
Least Square Plane and Leastsquare Quadric Surface Approximation by Using Mod...
Least Square Plane and Leastsquare Quadric Surface Approximation by Using Mod...Least Square Plane and Leastsquare Quadric Surface Approximation by Using Mod...
Least Square Plane and Leastsquare Quadric Surface Approximation by Using Mod...
 
MCA_UNIT-1_Computer Oriented Numerical Statistical Methods
MCA_UNIT-1_Computer Oriented Numerical Statistical MethodsMCA_UNIT-1_Computer Oriented Numerical Statistical Methods
MCA_UNIT-1_Computer Oriented Numerical Statistical Methods
 
Chebyshev Collocation Approach for a Continuous Formulation of Implicit Hybri...
Chebyshev Collocation Approach for a Continuous Formulation of Implicit Hybri...Chebyshev Collocation Approach for a Continuous Formulation of Implicit Hybri...
Chebyshev Collocation Approach for a Continuous Formulation of Implicit Hybri...
 
A computational method for system of linear fredholm integral equations
A computational method for system of linear fredholm integral equationsA computational method for system of linear fredholm integral equations
A computational method for system of linear fredholm integral equations
 
Adomian decomposition Method and Differential Transform Method to solve the H...
Adomian decomposition Method and Differential Transform Method to solve the H...Adomian decomposition Method and Differential Transform Method to solve the H...
Adomian decomposition Method and Differential Transform Method to solve the H...
 
MCA_UNIT-2_Computer Oriented Numerical Statistical Methods
MCA_UNIT-2_Computer Oriented Numerical Statistical MethodsMCA_UNIT-2_Computer Oriented Numerical Statistical Methods
MCA_UNIT-2_Computer Oriented Numerical Statistical Methods
 
Elements of Statistical Learning 読み会 第2章
Elements of Statistical Learning 読み会 第2章Elements of Statistical Learning 読み会 第2章
Elements of Statistical Learning 読み会 第2章
 
Reducible equation to quadratic form
Reducible equation to quadratic formReducible equation to quadratic form
Reducible equation to quadratic form
 
Course pack unit 5
Course pack unit 5Course pack unit 5
Course pack unit 5
 
Q0749397
Q0749397Q0749397
Q0749397
 
Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets
Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets
Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets
 
Ijetcas14 608
Ijetcas14 608Ijetcas14 608
Ijetcas14 608
 
Tugas Aljabar Linear
Tugas Aljabar LinearTugas Aljabar Linear
Tugas Aljabar Linear
 
Scrodinger wave equation
Scrodinger wave equationScrodinger wave equation
Scrodinger wave equation
 
Contactless Calipper - English
Contactless Calipper - EnglishContactless Calipper - English
Contactless Calipper - English
 
BSC_COMPUTER _SCIENCE_UNIT-4_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-4_DISCRETE MATHEMATICSBSC_COMPUTER _SCIENCE_UNIT-4_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-4_DISCRETE MATHEMATICS
 

Similar to 04 gaussmethods

08 interpolation lagrange
08 interpolation   lagrange08 interpolation   lagrange
08 interpolation lagrangeMohammad Tawfik
 
09 numerical integration
09 numerical integration09 numerical integration
09 numerical integrationMohammad Tawfik
 
08 numerical integration
08 numerical integration08 numerical integration
08 numerical integrationMohammad Tawfik
 
08 numerical integration 2
08 numerical integration 208 numerical integration 2
08 numerical integration 2Mohammad Tawfik
 
11 initial value problems system
11 initial value problems   system11 initial value problems   system
11 initial value problems systemMohammad Tawfik
 
Algebra Trigonometry Problems
Algebra Trigonometry ProblemsAlgebra Trigonometry Problems
Algebra Trigonometry ProblemsDon Dooley
 
Btech_II_ engineering mathematics_unit5
Btech_II_ engineering mathematics_unit5Btech_II_ engineering mathematics_unit5
Btech_II_ engineering mathematics_unit5Rai University
 
Uniform Order Legendre Approach for Continuous Hybrid Block Methods for the S...
Uniform Order Legendre Approach for Continuous Hybrid Block Methods for the S...Uniform Order Legendre Approach for Continuous Hybrid Block Methods for the S...
Uniform Order Legendre Approach for Continuous Hybrid Block Methods for the S...IOSR Journals
 
Response surface methodology.pptx
Response surface methodology.pptxResponse surface methodology.pptx
Response surface methodology.pptxrakhshandakausar
 
Gauss elimination & Gauss Jordan method
Gauss elimination & Gauss Jordan methodGauss elimination & Gauss Jordan method
Gauss elimination & Gauss Jordan methodNaimesh Bhavsar
 
2022 ملزمة الرياضيات للصف السادس التطبيقي الفصل الثالث - تطبيقات التفاضل
 2022 ملزمة الرياضيات للصف السادس التطبيقي   الفصل الثالث - تطبيقات التفاضل 2022 ملزمة الرياضيات للصف السادس التطبيقي   الفصل الثالث - تطبيقات التفاضل
2022 ملزمة الرياضيات للصف السادس التطبيقي الفصل الثالث - تطبيقات التفاضلanasKhalaf4
 
2022 ملزمة الرياضيات للصف السادس الاحيائي الفصل الثالث تطبيقات التفاضل
2022 ملزمة الرياضيات للصف السادس الاحيائي الفصل الثالث   تطبيقات التفاضل2022 ملزمة الرياضيات للصف السادس الاحيائي الفصل الثالث   تطبيقات التفاضل
2022 ملزمة الرياضيات للصف السادس الاحيائي الفصل الثالث تطبيقات التفاضلanasKhalaf4
 
Solution of system of linear equations by elimination
Solution of system of linear equations by eliminationSolution of system of linear equations by elimination
Solution of system of linear equations by eliminationRegie Panganiban
 
Basic Cal_7.Rules of Differentiation (Part 2).pdf
Basic Cal_7.Rules of Differentiation (Part 2).pdfBasic Cal_7.Rules of Differentiation (Part 2).pdf
Basic Cal_7.Rules of Differentiation (Part 2).pdflaz981880
 

Similar to 04 gaussmethods (20)

03 open methods
03 open methods03 open methods
03 open methods
 
08 interpolation lagrange
08 interpolation   lagrange08 interpolation   lagrange
08 interpolation lagrange
 
09 numerical integration
09 numerical integration09 numerical integration
09 numerical integration
 
08 numerical integration
08 numerical integration08 numerical integration
08 numerical integration
 
08 numerical integration 2
08 numerical integration 208 numerical integration 2
08 numerical integration 2
 
11 initial value problems system
11 initial value problems   system11 initial value problems   system
11 initial value problems system
 
Algebra Trigonometry Problems
Algebra Trigonometry ProblemsAlgebra Trigonometry Problems
Algebra Trigonometry Problems
 
Btech_II_ engineering mathematics_unit5
Btech_II_ engineering mathematics_unit5Btech_II_ engineering mathematics_unit5
Btech_II_ engineering mathematics_unit5
 
Uniform Order Legendre Approach for Continuous Hybrid Block Methods for the S...
Uniform Order Legendre Approach for Continuous Hybrid Block Methods for the S...Uniform Order Legendre Approach for Continuous Hybrid Block Methods for the S...
Uniform Order Legendre Approach for Continuous Hybrid Block Methods for the S...
 
Response surface methodology.pptx
Response surface methodology.pptxResponse surface methodology.pptx
Response surface methodology.pptx
 
Systems
SystemsSystems
Systems
 
Gauss elimination & Gauss Jordan method
Gauss elimination & Gauss Jordan methodGauss elimination & Gauss Jordan method
Gauss elimination & Gauss Jordan method
 
2022 ملزمة الرياضيات للصف السادس التطبيقي الفصل الثالث - تطبيقات التفاضل
 2022 ملزمة الرياضيات للصف السادس التطبيقي   الفصل الثالث - تطبيقات التفاضل 2022 ملزمة الرياضيات للصف السادس التطبيقي   الفصل الثالث - تطبيقات التفاضل
2022 ملزمة الرياضيات للصف السادس التطبيقي الفصل الثالث - تطبيقات التفاضل
 
勾配法
勾配法勾配法
勾配法
 
2022 ملزمة الرياضيات للصف السادس الاحيائي الفصل الثالث تطبيقات التفاضل
2022 ملزمة الرياضيات للصف السادس الاحيائي الفصل الثالث   تطبيقات التفاضل2022 ملزمة الرياضيات للصف السادس الاحيائي الفصل الثالث   تطبيقات التفاضل
2022 ملزمة الرياضيات للصف السادس الاحيائي الفصل الثالث تطبيقات التفاضل
 
FUNCTIONS L.1.pdf
FUNCTIONS L.1.pdfFUNCTIONS L.1.pdf
FUNCTIONS L.1.pdf
 
Trabajo matemáticas 7
Trabajo matemáticas 7Trabajo matemáticas 7
Trabajo matemáticas 7
 
Solution of system of linear equations by elimination
Solution of system of linear equations by eliminationSolution of system of linear equations by elimination
Solution of system of linear equations by elimination
 
Tool mathematics l4
Tool mathematics l4Tool mathematics l4
Tool mathematics l4
 
Basic Cal_7.Rules of Differentiation (Part 2).pdf
Basic Cal_7.Rules of Differentiation (Part 2).pdfBasic Cal_7.Rules of Differentiation (Part 2).pdf
Basic Cal_7.Rules of Differentiation (Part 2).pdf
 

More from Mohammad Tawfik

Supply Chain Management for Engineers - INDE073
Supply Chain Management for Engineers - INDE073Supply Chain Management for Engineers - INDE073
Supply Chain Management for Engineers - INDE073Mohammad Tawfik
 
Supply Chain Management 01 - Introduction
Supply Chain Management 01 - IntroductionSupply Chain Management 01 - Introduction
Supply Chain Management 01 - IntroductionMohammad Tawfik
 
Supply Chain Management 02 - Logistics
Supply Chain Management 02 - LogisticsSupply Chain Management 02 - Logistics
Supply Chain Management 02 - LogisticsMohammad Tawfik
 
Supply Chain Management 03 - Inventory Management
Supply Chain Management 03 - Inventory ManagementSupply Chain Management 03 - Inventory Management
Supply Chain Management 03 - Inventory ManagementMohammad Tawfik
 
Creative problem solving and decision making
Creative problem solving and decision makingCreative problem solving and decision making
Creative problem solving and decision makingMohammad Tawfik
 
Digital content for teaching introduction
Digital content for teaching introductionDigital content for teaching introduction
Digital content for teaching introductionMohammad Tawfik
 
Crisis Management Basics
Crisis Management BasicsCrisis Management Basics
Crisis Management BasicsMohammad Tawfik
 
Effective Delegation Skills
Effective Delegation SkillsEffective Delegation Skills
Effective Delegation SkillsMohammad Tawfik
 
Business Management - Marketing
Business Management - MarketingBusiness Management - Marketing
Business Management - MarketingMohammad Tawfik
 
Project Management (CAPM) - Integration
Project Management (CAPM) - IntegrationProject Management (CAPM) - Integration
Project Management (CAPM) - IntegrationMohammad Tawfik
 
Project Management (CAPM) - The Framework
Project Management (CAPM) - The FrameworkProject Management (CAPM) - The Framework
Project Management (CAPM) - The FrameworkMohammad Tawfik
 
Project Management (CAPM) - Introduction
Project Management (CAPM) - IntroductionProject Management (CAPM) - Introduction
Project Management (CAPM) - IntroductionMohammad Tawfik
 
Introduction to Wind Energy
Introduction to Wind EnergyIntroduction to Wind Energy
Introduction to Wind EnergyMohammad Tawfik
 
Finite Element for Trusses in 2-D
Finite Element for Trusses in 2-DFinite Element for Trusses in 2-D
Finite Element for Trusses in 2-DMohammad Tawfik
 

More from Mohammad Tawfik (20)

Supply Chain Management for Engineers - INDE073
Supply Chain Management for Engineers - INDE073Supply Chain Management for Engineers - INDE073
Supply Chain Management for Engineers - INDE073
 
Supply Chain Management 01 - Introduction
Supply Chain Management 01 - IntroductionSupply Chain Management 01 - Introduction
Supply Chain Management 01 - Introduction
 
Supply Chain Management 02 - Logistics
Supply Chain Management 02 - LogisticsSupply Chain Management 02 - Logistics
Supply Chain Management 02 - Logistics
 
Supply Chain Management 03 - Inventory Management
Supply Chain Management 03 - Inventory ManagementSupply Chain Management 03 - Inventory Management
Supply Chain Management 03 - Inventory Management
 
Creative problem solving and decision making
Creative problem solving and decision makingCreative problem solving and decision making
Creative problem solving and decision making
 
Digital content for teaching introduction
Digital content for teaching introductionDigital content for teaching introduction
Digital content for teaching introduction
 
Crisis Management Basics
Crisis Management BasicsCrisis Management Basics
Crisis Management Basics
 
DISC Personality Model
DISC Personality ModelDISC Personality Model
DISC Personality Model
 
Training of Trainers
Training of TrainersTraining of Trainers
Training of Trainers
 
Effective Delegation Skills
Effective Delegation SkillsEffective Delegation Skills
Effective Delegation Skills
 
Train The Trainer
Train The TrainerTrain The Trainer
Train The Trainer
 
Business Management - Marketing
Business Management - MarketingBusiness Management - Marketing
Business Management - Marketing
 
Stress Management
Stress ManagementStress Management
Stress Management
 
Project Management (CAPM) - Integration
Project Management (CAPM) - IntegrationProject Management (CAPM) - Integration
Project Management (CAPM) - Integration
 
Project Management (CAPM) - The Framework
Project Management (CAPM) - The FrameworkProject Management (CAPM) - The Framework
Project Management (CAPM) - The Framework
 
Project Management (CAPM) - Introduction
Project Management (CAPM) - IntroductionProject Management (CAPM) - Introduction
Project Management (CAPM) - Introduction
 
The Creative Individual
The Creative IndividualThe Creative Individual
The Creative Individual
 
Introduction to Wind Energy
Introduction to Wind EnergyIntroduction to Wind Energy
Introduction to Wind Energy
 
Finite Element for Trusses in 2-D
Finite Element for Trusses in 2-DFinite Element for Trusses in 2-D
Finite Element for Trusses in 2-D
 
Future of Drones ITW'16
Future of Drones ITW'16Future of Drones ITW'16
Future of Drones ITW'16
 

04 gaussmethods

  • 1. 1 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Linear Algebraic Equations Gauss Elimination ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Objectives • Knowing how to solve a system of linear equations • Understanding how to implement Gauss elimination method • Understanding the concepts of singularity and ill-conditioning
  • 2. 2 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik A System of Linear Equations 1823 21 =+ xx 22 21 =+− xx ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Solution Subtract second equation from first 16*04 21 =+ xx 41 =x 32 =x
  • 3. 3 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik In Matrix Form       =             − 2 18 21 23 2 1 x x 1823 21 =+ xx 22 21 =+− xx ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Elimination       =             − 2 18 21 23 2 1 x x Using row operations       =             − 2 16 21 04 2 1 x x
  • 4. 4 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Elimination Using row operations       =             − 2 16 21 04 2 1 x x       =             6 16 20 04 2 1 x x ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Naïve Elimination Routine!
  • 5. 5 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Back Substitution ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Special Cases
  • 6. 6 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Conclusions • In this lecture, we revised the process of Gauss elimination • A clear algorithm for the elimination process and the back substitution was presented • The different cases of no solution, infinite number of solutions, and ill conditioning were graphically presented ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Linear Algebraic Equations Iterative Solutions
  • 7. 7 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Objectives • Recognize the need for iterative solutions • Understand the difference between different iterative methods for solving systems of linear equations • Apply iterative methods to solve a system of linear equations ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Why Iterative Methods? • When system of equations is sparse; too many zero elements. Such systems are produced when approximately solving differential equations; finite difference, finite element, etc… • We already have sources of error in the solution; model errors, approximation errors, truncation errors, etc…, so why not use approximate method any way • Saves on time!
  • 8. 8 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Gauss-Jacobi ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Gauss-Jacobi: Example 1642 302 1124 321 21 321 =++ =++− =++ xxx xx xxx ( ) ( ) ( ) 4/216 2/3 4/211 213 12 321 xxx xx xxx −−= += −−= ( ) ( ) ( ) 4/216 2/3 4/211 21 1 3 1 1 2 32 1 1 kkk kk kkk xxx xx xxx −−= += −−= + + +
  • 9. 9 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Is that really going to work?!!! ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Let’s try it! { }           = 1 1 1 0 x ( ) ( ) ( ) 25.34/1216 22/13 24/1211 1 3 1 2 1 1 =−−= =+= =−−= x x x ( ) ( ) ( ) 5.24/22*216 5.22/23 9375.04/25.32*211 2 3 2 2 2 1 =−−= =+= =−−= x x x ( ) ( ) ( ) 9063.24/5.2875.116 9688.12/9375.03 875.04/5.2511 3 3 3 2 3 1 =−−= =+= =−−= x x x
  • 10. 10 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik In General! ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik A system of linear equations               =                           nnnnnn n n b b b x x x aaa aaa aaa MM L MOMM L L 2 1 2 1 21 22221 11211 Let’s examine one equation! 11212111 ... bxaxaxa nn =+++ ( ) 11 12121 1 ... a xaxab x nn++− =
  • 11. 11 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik For any equation       −−= ∑∑ += − = + n ij k jij i j k jiji ii k i xaxab a x 1 1 1 1 1 ( ) ii niniiiiiiii i a xaxaxaxab x +++++− = ++−− ...... 11,11,11 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Can it be any better?
  • 12. 12 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Gauss-Seidel       −−= ∑∑ += − = + n ij k jij i j k jiji ii k i xaxab a x 1 1 1 1 1       −−= ∑∑ += − = ++ n ij k jij i j k jiji ii k i xaxab a x 1 1 1 11 1 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Gauss-Seidel: Example 1642 302 1124 321 21 321 =++ =++− =++ xxx xx xxx ( ) ( ) ( ) 4/216 2/3 4/211 213 12 321 xxx xx xxx −−= += −−= ( ) ( ) ( ) 4/216 2/3 4/211 1 2 1 1 1 3 1 1 1 2 32 1 1 +++ ++ + −−= += −−= kkk kk kkk xxx xx xxx
  • 13. 13 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Let’s try it! { }           = 1 1 1 0 x ( ) ( ) ( ) 375.24/5.22*216 5.22/23 24/1211 1 3 1 2 1 1 =−−= =+= =−−= x x x ( ) ( ) ( ) 0586.34/9531.1906.0*216 9531.12/90625.03 90625.04/375.2511 2 3 2 2 2 1 =−−= =+= =−−= x x x ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Convergence Condition • For the iterative solutions presented to converge, the matrix must be diagonally dominant. ∑ ≠ = > n ij j ijii aa 1
  • 14. 14 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Error! { } { } { }kkk xxe −= −1 k i k ik a x e max=ε ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Algorithm 1. If the system is not diagonally dominant; end 2. Start with any initial solution {x} 3. Apply the steps for Gauss-Seidal method to evaluate the next iteration 4. If the maximum approximate relative error < εs; end 5. Let the old solution vector equal the new solution vector 6. Goto step 3
  • 15. 15 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Homework #3 • For the given system of simultaneous equations • Write down the system of equation in a form that can be used for iterative methods for solving systems of equations • Use four iterations using Gauss-Jacobi method to find an approximate solution using initial values {0,0,0} • Use four iterations using Gauss-Seidel method to find an approximate solution using initial values {0,0,0} 1642 1124 32 321 321 21 =++ =++ =+− xxx xxx xx ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Homework #3 cont’d • Chapter 11, p 303, numbers: 11.8,11.9,11.10 • Due Next week