SlideShare a Scribd company logo
 Basics
 Gauss elimination method
 Gauss iterative method:
Gauss Jacobi method
Gauss sidle method
mnmnm
nn
nn
nn
bxaxbx
bxaxbx
bxaxbx
bxaxbx




*.......**a
.
.
.
*..........**a
*..........**a
*..........**a
211m1
33232131
22222121
11211111
 This system consists of linear equations, each with
coefficients, and has unknowns which have to fulfill
the set of equations simultaneously. To simplify
notation, it is possible to rewrite the above equations
in matrix notation:































nnmnmm
n
n
b
b
b
x
x
x
aaa
aaa
aaa
2
1
2
1
.........21
22212
11211
......
.......
Simply ,we can say BAX 
 Where A is called matrix of coefficient of order m*n
......
.......
.........21
22212
11211










mnmm
n
n
aaa
aaa
aaa
 X is a simple vector of order B is a simple vector of order










nx
x
x
2
1










nb
b
b
2
1
 We can write a system of linear equations as a matrix by
writing only the coefficients and constants that appear in the
equations.
This is called the augmented matrix of the system.
mmnmm
n
n
baaa
baaa
baaa
21
222221
111211
To solve linear systems correspond to operations on
the rows of the augmented matrix of the system.
 For example, adding a multiple of one equation
to another corresponds to adding a multiple of
one row to another.
For example,
 Add a multiple of one row to another.
 Multiply a row by a nonzero constant.
 Interchange two rows.
“Note that performing any of these operations on the
augmented matrix of a system does not change its
solution.”
We use the following notation to describe
the elementary row operations:
Symbol Description
Ri + kRj → Ri
Change the ith row by adding
k times row j to it.
Then, put the result back in row i.
kRi Multiply the ith row by k.
Ri ↔ Rj Interchange the ith and jth rows.
In general, to solve a system of linear equations using
its augmented matrix, we use elementary row
operations to arrive at a matrix in a certain form.
This form is described as follows.
 A matrix is in row-echelon form if it satisfies the
following conditions:
 The first nonzero number in each row
(reading from left to right) is 1. This is called the
leading entry.
 The leading entry in each row is to the right of
the leading entry in the row immediately above
it.
 All rows consisting entirely of zeros are at
the bottom of the matrix.
 A matrix is in reduced row-echelon form if it is in
row-echelon form and also satisfies the following
condition.
 Every number above and below each leading entry
is a 0.
1
2
Leading 1's do not
shift to the right
in successive rows.
0 0 7
0 3 4 5
0 0 0 0.4
1
1
1
10 1 0 0
 
  
 
 
 
  
Not in row-echelon form:
Row-Echelon Form Reduced
Row-Echelon Form
   
       
   
   
   
     
1 1
2 2
Leading 1's haveLeading 1's shift to
0's above andthe right in
below them.successive rows.
3 6 10 0 3 0 0 0
0 0 4 3 0 0 0 3
0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
1 1
1 1
1 1
Start by obtaining 1 in the top left corner.
Then, obtain zeros below that 1 by adding
appropriate multiples of the first row to
the rows below it.
1
0
0
 
 
 
  
We now discuss a systematic way
to put a matrix in row-echelon form
using elementary row operations.
 We see how the process might work
for a 3 x 4 matrix.
Next, obtain a leading 1 in the next row.
Then, obtain zeros below that 1.
 At each stage, make sure every leading entry is
to the right of the leading entry in the row above it.
 Rearrange the rows if necessary.
1 1
0 0 1
0 0 0
   
      
      
Solve the system of linear equations
using Gaussian elimination.
 We first write the augmented matrix of the system.
 Then, we use elementary row operations to put it
in row-echelon form.
4 8 4 4
3 8 5 11
2 12 17
x y z
x y z
x y z
  

   
     
1
14
R
4 8 4 4
3 8 5 11
2 1 12 17
2 1 1
3 8 5 11
2 1
1
12 17

 
  
   
 
  
   
2 1 2
3 1 3
1
22
R 3R R
R 2R R
R
2 1 1
2 8 14
5 1
1
0
0
1
0 15
2 1 1
4 7
5 10 15
0 1
0
 
 
 
  
 


 
  
 


 
 3 2 3
1
310
R 5R R
R
1
0 1
0 0
2 1 1
4 7
10 20
2 1 1
4 7
2
1
0 1
0 0 1
 

 
  
  
 
  
 






We now have an equivalent matrix in row-echelon form.
The corresponding system of equations is:
 We use back-substitution to solve the system.
2 1
4 7
2
x y z
y z
z
  

  
  
 y + 4(–2) = –7
y = 1
 x + 2(1) – (–2) = 1
x = –3
The solution of the system is:(–3, 1, –2)
 Let the set of equations given be:
Where the element of the diagonal are the largest in
each column.
We can get the values of unknowns as follows:
mnmnm
nn
nn
nn
bxaxbx
bxaxbx
bxaxbx
bxaxbx




*.......**a
.
.
.
*..........**a
*..........**a
*..........**a
211m1
33232131
22222121
11211111
 Rewrite the equations as:
 Then make initial approximation of the solution
x1,x2,..xn.
)(
1 0
1
0
2121
11
1
1 nn xaxab
a
x  
)(
1 0
2
0
323
0
1212
22
1
2 nn xaxaxab
a
x  
)(
1 0
11
0
22
0
11
1
 nnnnnn
nn
n xaxaxab
a
x 
27









n
ji
j
ijii
n
ji
j ii
ij
aa
a
a
E
1
1
11 n1,2,...,ifor
Evaluate the infinity(maximum row sum) norm of E
Diagonally dominant matrix
If A is a diagonally dominant matrix, then Jacobi iteration converges for any
initial vector
28
Example 1 (Jacobi Iteration)


































15
21
7
512
184
114
3
2
1
x
x
x











0
0
0
0
x
5
215
8
421
4
7
0
2
0
11
3
0
3
0
11
2
0
3
0
21
1
xx
x
xx
x
xx
x






0.3
5
15
625.2
8
21
75.1
4
7



7395.26
2
0
 Axb
0452.10
2
1
 Axb
Diagonally dominant matrix
29
Example 1 continued...
5
215
8
421
4
7
1
2
1
12
3
1
3
1
12
2
1
3
1
22
1
xx
x
xx
x
xx
x






225.4
5
625.275.1215
875.3
8
375.1421
65625.1
4
3625.27









7413.6
2
2
 Axb
8875.2
5
875.365625.1215
98125.3
8
225.465625.1421
6625.1
4
225.4875.37
3
3
3
2
3
1









x
x
x
9534.1
2
2
 Axb
Matrix is diagonally dominant, Jacobi iterations are converging
30
Example 2


































7
21
15
114
184
512
3
2
1
x
x
x











0
0
0
0
x 7395.26
2
0
 Axb
0
2
0
1
1
3
0
3
0
11
2
0
3
0
21
1
47
8
421
2
515
xxx
xx
x
xx
x





0.7
625.2
8
21
5.7
2
15





The matrix is not diagonally dominant
8546.54
2
1
 Axb
31
Example 2 continued...
625.39625.25.747
25.0
8
75.7421
3125.11
2
75625.215
1
3
1
2
1
1







x
x
x
3761.208
2
2
 Axb
The residual term is increasing at each iteration, so the iterations are diverging.
Note that the matrix is not diagonally dominant
 Like for Gauss Jacobi we’ll first ensure that the elements of the diagonal
are the maximum values
 Then solve the 1s equation for the 1st unknown, 2nd for the 2nd
unknown, etc.
First iteration:
i. Find the value of x1 by substituting the initial values of other
unknowns
ii. Find the value of x2 by substituting the current value of x1 and initial
values of other unknowns.
and continue......
Second iteration:
i. Substitute all the values obtained in 1st iteration and find x1
ii. Use the current values of other unknowns, find x2
and continue....
33
Convergence of Gauss-Seidel
iteration
 GS iteration converges for any initial vector if A is a
diagonally dominant matrix
 GS iteration converges for any initial vector if A is a
symmetric and positive definite matrix
 Matrix A is positive definite if
xTAx>0 for every nonzero x vector
Given the system of equations
15312 321 x-xx 
2835 321 xxx 
761373 321  xxx





















1
0
1
3
2
1
x
x
x
With an initial guess of
The coefficient matrix is:
 









 

1373
351
5312
A
Will the solution converge using the
Gauss-Siedel method?
 









 

1373
351
5312
A
Checking if the coefficient matrix is
diagonally dominant
43155 232122  aaa
10731313 323133  aaa
8531212 131211  aaa
The inequalities are all true and at least one row is strictly
greater than, Therefore: The solution should converge
using the Gauss-Siedel Method






























 
76
28
1
1373
351
5312
3
2
1
a
a
a





















1
0
1
3
2
1
x
x
x
Rewriting each equation
12
531 32
1
xx
x


5
328 31
2
xx
x


13
7376 21
3
xx
x


With an initial guess of
    50000.0
12
15031
1 

x
    9000.4
5
135.028
2 

x
    0923.3
13
9000.4750000.0376
3 

x





















8118.3
7153.3
14679.0
3
2
1
x
x
x





















0923.3
9000.4
5000.0
3
2
1
x
x
x
After Iteration #1
    14679.0
12
0923.359000.431
1 

x
    7153.3
5
0923.3314679.028
2 

x
    8118.3
13
900.4714679.0376
3 

x
Substituting the x values into the
equations
After Iteration #2
Iteration a1 a2 a3
1
2
3
4
5
6
0.50000
0.14679
0.74275
0.94675
0.99177
0.99919
4.9000
3.7153
3.1644
3.0281
3.0034
3.0001
3.0923
3.8118
3.9708
3.9971
4.0001
4.0001
Repeating more iterations, the following values are
obtained





















4
3
1
3
2
1
x
x
x





















0001.4
0001.3
99919.0
3
2
1
x
x
x
The solution obtained is close to the exact solution of
.
Nsm

More Related Content

What's hot

Gaussian elimination method & homogeneous linear equation
Gaussian elimination method & homogeneous linear equationGaussian elimination method & homogeneous linear equation
Gaussian elimination method & homogeneous linear equation
Student
 
Gauss Jordan Method
Gauss Jordan MethodGauss Jordan Method
Gauss Jordan MethodZunAib Ali
 
Solution of System of Linear Equations
Solution of System of Linear EquationsSolution of System of Linear Equations
Solution of System of Linear Equationsmofassair
 
Gauss Jordan
Gauss JordanGauss Jordan
Gauss Jordan
Ezzat Gul
 
Linear and non linear equation
Linear and non linear equationLinear and non linear equation
Linear and non linear equation
Harshana Madusanka Jayamaha
 
linear equation and gaussian elimination
linear equation and gaussian eliminationlinear equation and gaussian elimination
linear equation and gaussian elimination
Aju Thadikulangara
 
Cramer's Rule
Cramer's RuleCramer's Rule
Cramer's Rule
Abdul SAttar
 
Direct Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations SystemsDirect Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations SystemsLizeth Paola Barrero
 
Gaussian Elimination
Gaussian EliminationGaussian Elimination
Gaussian EliminationZunAib Ali
 
Gauss-Jordan Theory
Gauss-Jordan TheoryGauss-Jordan Theory
Gauss-Jordan TheoryHernanFula
 
Relaxation method
Relaxation methodRelaxation method
Relaxation method
Parinda Rajapaksha
 
Solution of equations for methods iterativos
Solution of equations for methods iterativosSolution of equations for methods iterativos
Solution of equations for methods iterativosDUBAN CASTRO
 
Systems of linear equations and augmented matrices
Systems of linear equations and augmented matricesSystems of linear equations and augmented matrices
Systems of linear equations and augmented matricesST ZULAIHA NURHAJARURAHMAH
 
system linear equations and matrices
 system linear equations and matrices system linear equations and matrices
system linear equations and matrices
Aditya Vaishampayan
 
Lu decomposition
Lu decompositionLu decomposition
Lu decompositiongilandio
 

What's hot (20)

Gaussian elimination method & homogeneous linear equation
Gaussian elimination method & homogeneous linear equationGaussian elimination method & homogeneous linear equation
Gaussian elimination method & homogeneous linear equation
 
Gauss Jordan Method
Gauss Jordan MethodGauss Jordan Method
Gauss Jordan Method
 
Systems of linear equations; matrices
Systems of linear equations; matricesSystems of linear equations; matrices
Systems of linear equations; matrices
 
Solution of System of Linear Equations
Solution of System of Linear EquationsSolution of System of Linear Equations
Solution of System of Linear Equations
 
Gauss Jordan
Gauss JordanGauss Jordan
Gauss Jordan
 
Linear and non linear equation
Linear and non linear equationLinear and non linear equation
Linear and non linear equation
 
linear equation and gaussian elimination
linear equation and gaussian eliminationlinear equation and gaussian elimination
linear equation and gaussian elimination
 
Cramer's Rule
Cramer's RuleCramer's Rule
Cramer's Rule
 
Gauss jordan
Gauss jordanGauss jordan
Gauss jordan
 
Direct Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations SystemsDirect Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations Systems
 
Gauss
GaussGauss
Gauss
 
Gaussian Elimination
Gaussian EliminationGaussian Elimination
Gaussian Elimination
 
Gauss-Jordan Theory
Gauss-Jordan TheoryGauss-Jordan Theory
Gauss-Jordan Theory
 
Relaxation method
Relaxation methodRelaxation method
Relaxation method
 
Solution of equations for methods iterativos
Solution of equations for methods iterativosSolution of equations for methods iterativos
Solution of equations for methods iterativos
 
Systems of linear equations and augmented matrices
Systems of linear equations and augmented matricesSystems of linear equations and augmented matrices
Systems of linear equations and augmented matrices
 
system linear equations and matrices
 system linear equations and matrices system linear equations and matrices
system linear equations and matrices
 
Lu decomposition
Lu decompositionLu decomposition
Lu decomposition
 
Systems of equations and matricies
Systems of equations and matriciesSystems of equations and matricies
Systems of equations and matricies
 
Linear algebra03fallleturenotes01
Linear algebra03fallleturenotes01Linear algebra03fallleturenotes01
Linear algebra03fallleturenotes01
 

Viewers also liked

Chapter 4: Linear Algebraic Equations
Chapter 4: Linear Algebraic EquationsChapter 4: Linear Algebraic Equations
Chapter 4: Linear Algebraic EquationsMaria Fernanda
 
Pitfalls In Aspect Mining
Pitfalls In Aspect MiningPitfalls In Aspect Mining
Pitfalls In Aspect Mining
kim.mens
 
Math chapter 4
Math chapter 4Math chapter 4
Math chapter 4aelowans
 
System of linear equations
System of linear equationsSystem of linear equations
System of linear equations
Diler4
 
Matlab
MatlabMatlab
Iterative methods for the solution
Iterative methods for the solutionIterative methods for the solution
Iterative methods for the solutionOscar Mendivelso
 
Linear equation in two variables
Linear equation in two variablesLinear equation in two variables
Linear equation in two variables
Abhaya Gupta
 
56 system of linear equations
56 system of linear equations56 system of linear equations
56 system of linear equations
alg1testreview
 
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
Anu Bhatt
 
Numerical and statistical methods new
Numerical and statistical methods newNumerical and statistical methods new
Numerical and statistical methods new
Aabha Tiwari
 
Linear Systems Gauss Seidel
Linear Systems   Gauss SeidelLinear Systems   Gauss Seidel
Linear Systems Gauss SeidelEric Davishahl
 
Gauss seidel
Gauss seidelGauss seidel
Gauss seidel
Ahmed M. Elkholy
 
Jacobi and gauss-seidel
Jacobi and gauss-seidelJacobi and gauss-seidel
Jacobi and gauss-seidel
arunsmm
 
Gaussian Elimination Method
Gaussian Elimination MethodGaussian Elimination Method
Gaussian Elimination Method
Andi Firdaus
 
NUMERICAL METHODS -Iterative methods(indirect method)
NUMERICAL METHODS -Iterative methods(indirect method)NUMERICAL METHODS -Iterative methods(indirect method)
NUMERICAL METHODS -Iterative methods(indirect method)
krishnapriya R
 
Chapter 13 - I/O Systems
Chapter 13 - I/O SystemsChapter 13 - I/O Systems
Chapter 13 - I/O Systems
Wayne Jones Jnr
 
Numerical methods for 2 d heat transfer
Numerical methods for 2 d heat transferNumerical methods for 2 d heat transfer
Numerical methods for 2 d heat transfer
Arun Sarasan
 

Viewers also liked (20)

Chapter 4: Linear Algebraic Equations
Chapter 4: Linear Algebraic EquationsChapter 4: Linear Algebraic Equations
Chapter 4: Linear Algebraic Equations
 
Pitfalls In Aspect Mining
Pitfalls In Aspect MiningPitfalls In Aspect Mining
Pitfalls In Aspect Mining
 
Math chapter 4
Math chapter 4Math chapter 4
Math chapter 4
 
Met num 6
Met num 6Met num 6
Met num 6
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
System of linear equations
System of linear equationsSystem of linear equations
System of linear equations
 
Matlab
MatlabMatlab
Matlab
 
Iterative methods for the solution
Iterative methods for the solutionIterative methods for the solution
Iterative methods for the solution
 
Roots of polynomials
Roots of polynomialsRoots of polynomials
Roots of polynomials
 
Linear equation in two variables
Linear equation in two variablesLinear equation in two variables
Linear equation in two variables
 
56 system of linear equations
56 system of linear equations56 system of linear equations
56 system of linear equations
 
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
 
Numerical and statistical methods new
Numerical and statistical methods newNumerical and statistical methods new
Numerical and statistical methods new
 
Linear Systems Gauss Seidel
Linear Systems   Gauss SeidelLinear Systems   Gauss Seidel
Linear Systems Gauss Seidel
 
Gauss seidel
Gauss seidelGauss seidel
Gauss seidel
 
Jacobi and gauss-seidel
Jacobi and gauss-seidelJacobi and gauss-seidel
Jacobi and gauss-seidel
 
Gaussian Elimination Method
Gaussian Elimination MethodGaussian Elimination Method
Gaussian Elimination Method
 
NUMERICAL METHODS -Iterative methods(indirect method)
NUMERICAL METHODS -Iterative methods(indirect method)NUMERICAL METHODS -Iterative methods(indirect method)
NUMERICAL METHODS -Iterative methods(indirect method)
 
Chapter 13 - I/O Systems
Chapter 13 - I/O SystemsChapter 13 - I/O Systems
Chapter 13 - I/O Systems
 
Numerical methods for 2 d heat transfer
Numerical methods for 2 d heat transferNumerical methods for 2 d heat transfer
Numerical methods for 2 d heat transfer
 

Similar to Nsm

chapter7_Sec1.ppt
chapter7_Sec1.pptchapter7_Sec1.ppt
chapter7_Sec1.ppt
vinnisart
 
6640173.ppt
6640173.ppt6640173.ppt
6640173.ppt
HassanBay2
 
Slide_Chapter1_st.pdf
Slide_Chapter1_st.pdfSlide_Chapter1_st.pdf
Slide_Chapter1_st.pdf
NguyenHaiTrieu8
 
Computational Method for Engineers: Solving a system of Linear Equations
Computational Method for Engineers: Solving a system of Linear EquationsComputational Method for Engineers: Solving a system of Linear Equations
Computational Method for Engineers: Solving a system of Linear Equations
Bektu Dida
 
System Of Linear Equations
System Of Linear EquationsSystem Of Linear Equations
System Of Linear Equations
saahil kshatriya
 
matrices and algbra
matrices and algbramatrices and algbra
matrices and algbra
gandhinagar
 
LINEAR EQUATION.pptx
LINEAR EQUATION.pptxLINEAR EQUATION.pptx
LINEAR EQUATION.pptx
SarabanTahora
 
system linear equations
 system linear equations  system linear equations
system linear equations
SanaullahMemon10
 
Chapter 3: Linear Systems and Matrices - Part 1/Slides
Chapter 3: Linear Systems and Matrices - Part 1/SlidesChapter 3: Linear Systems and Matrices - Part 1/Slides
Chapter 3: Linear Systems and Matrices - Part 1/Slides
Chaimae Baroudi
 
lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...
lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...
lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...
wafahop
 
Ch9-Gauss_Elimination4.pdf
Ch9-Gauss_Elimination4.pdfCh9-Gauss_Elimination4.pdf
Ch9-Gauss_Elimination4.pdf
RahulUkhande
 
Chapter 3: Linear Systems and Matrices - Part 2/Slides
Chapter 3: Linear Systems and Matrices - Part 2/SlidesChapter 3: Linear Systems and Matrices - Part 2/Slides
Chapter 3: Linear Systems and Matrices - Part 2/Slides
Chaimae Baroudi
 
demo attachment
demo attachmentdemo attachment
demo attachment
Subhankar Paul
 
PhasePlane1-1.pptx
PhasePlane1-1.pptxPhasePlane1-1.pptx
PhasePlane1-1.pptx
YogeshGairola2
 
Directs Methods
Directs MethodsDirects Methods
Directs MethodsUIS
 
1  Part 2 Systems of Equations Which Do Not Have A Uni.docx
1  Part 2  Systems of Equations Which Do Not Have A Uni.docx1  Part 2  Systems of Equations Which Do Not Have A Uni.docx
1  Part 2 Systems of Equations Which Do Not Have A Uni.docx
eugeniadean34240
 
Matrices ppt
Matrices pptMatrices ppt
Matrices ppt
aakashray33
 
algebra
algebra algebra
algebra
Asyraf Ghani
 
Matrices 2_System of Equations.pdf
Matrices 2_System of Equations.pdfMatrices 2_System of Equations.pdf
Matrices 2_System of Equations.pdf
Kwame Nkrumah University of Science and Technology
 

Similar to Nsm (20)

chapter7_Sec1.ppt
chapter7_Sec1.pptchapter7_Sec1.ppt
chapter7_Sec1.ppt
 
6640173.ppt
6640173.ppt6640173.ppt
6640173.ppt
 
Slide_Chapter1_st.pdf
Slide_Chapter1_st.pdfSlide_Chapter1_st.pdf
Slide_Chapter1_st.pdf
 
Computational Method for Engineers: Solving a system of Linear Equations
Computational Method for Engineers: Solving a system of Linear EquationsComputational Method for Engineers: Solving a system of Linear Equations
Computational Method for Engineers: Solving a system of Linear Equations
 
System Of Linear Equations
System Of Linear EquationsSystem Of Linear Equations
System Of Linear Equations
 
matrices and algbra
matrices and algbramatrices and algbra
matrices and algbra
 
LINEAR EQUATION.pptx
LINEAR EQUATION.pptxLINEAR EQUATION.pptx
LINEAR EQUATION.pptx
 
system linear equations
 system linear equations  system linear equations
system linear equations
 
Chapter 3: Linear Systems and Matrices - Part 1/Slides
Chapter 3: Linear Systems and Matrices - Part 1/SlidesChapter 3: Linear Systems and Matrices - Part 1/Slides
Chapter 3: Linear Systems and Matrices - Part 1/Slides
 
lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...
lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...
lecture0003-numerical-methods-topic-3-solution-of-systems-of-linear-equations...
 
Ch9-Gauss_Elimination4.pdf
Ch9-Gauss_Elimination4.pdfCh9-Gauss_Elimination4.pdf
Ch9-Gauss_Elimination4.pdf
 
Chapter 3: Linear Systems and Matrices - Part 2/Slides
Chapter 3: Linear Systems and Matrices - Part 2/SlidesChapter 3: Linear Systems and Matrices - Part 2/Slides
Chapter 3: Linear Systems and Matrices - Part 2/Slides
 
demo attachment
demo attachmentdemo attachment
demo attachment
 
Lesson 7
Lesson 7Lesson 7
Lesson 7
 
PhasePlane1-1.pptx
PhasePlane1-1.pptxPhasePlane1-1.pptx
PhasePlane1-1.pptx
 
Directs Methods
Directs MethodsDirects Methods
Directs Methods
 
1  Part 2 Systems of Equations Which Do Not Have A Uni.docx
1  Part 2  Systems of Equations Which Do Not Have A Uni.docx1  Part 2  Systems of Equations Which Do Not Have A Uni.docx
1  Part 2 Systems of Equations Which Do Not Have A Uni.docx
 
Matrices ppt
Matrices pptMatrices ppt
Matrices ppt
 
algebra
algebra algebra
algebra
 
Matrices 2_System of Equations.pdf
Matrices 2_System of Equations.pdfMatrices 2_System of Equations.pdf
Matrices 2_System of Equations.pdf
 

Recently uploaded

Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
abh.arya
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 

Recently uploaded (20)

Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 

Nsm

  • 1.
  • 2.  Basics  Gauss elimination method  Gauss iterative method: Gauss Jacobi method Gauss sidle method
  • 4.  This system consists of linear equations, each with coefficients, and has unknowns which have to fulfill the set of equations simultaneously. To simplify notation, it is possible to rewrite the above equations in matrix notation:                                nnmnmm n n b b b x x x aaa aaa aaa 2 1 2 1 .........21 22212 11211 ...... ....... Simply ,we can say BAX 
  • 5.  Where A is called matrix of coefficient of order m*n ...... ....... .........21 22212 11211           mnmm n n aaa aaa aaa  X is a simple vector of order B is a simple vector of order           nx x x 2 1           nb b b 2 1
  • 6.  We can write a system of linear equations as a matrix by writing only the coefficients and constants that appear in the equations. This is called the augmented matrix of the system. mmnmm n n baaa baaa baaa 21 222221 111211
  • 7. To solve linear systems correspond to operations on the rows of the augmented matrix of the system.  For example, adding a multiple of one equation to another corresponds to adding a multiple of one row to another.
  • 8. For example,  Add a multiple of one row to another.  Multiply a row by a nonzero constant.  Interchange two rows. “Note that performing any of these operations on the augmented matrix of a system does not change its solution.”
  • 9. We use the following notation to describe the elementary row operations: Symbol Description Ri + kRj → Ri Change the ith row by adding k times row j to it. Then, put the result back in row i. kRi Multiply the ith row by k. Ri ↔ Rj Interchange the ith and jth rows.
  • 10.
  • 11. In general, to solve a system of linear equations using its augmented matrix, we use elementary row operations to arrive at a matrix in a certain form. This form is described as follows.
  • 12.  A matrix is in row-echelon form if it satisfies the following conditions:  The first nonzero number in each row (reading from left to right) is 1. This is called the leading entry.  The leading entry in each row is to the right of the leading entry in the row immediately above it.  All rows consisting entirely of zeros are at the bottom of the matrix.
  • 13.  A matrix is in reduced row-echelon form if it is in row-echelon form and also satisfies the following condition.  Every number above and below each leading entry is a 0.
  • 14. 1 2 Leading 1's do not shift to the right in successive rows. 0 0 7 0 3 4 5 0 0 0 0.4 1 1 1 10 1 0 0               Not in row-echelon form:
  • 15. Row-Echelon Form Reduced Row-Echelon Form                               1 1 2 2 Leading 1's haveLeading 1's shift to 0's above andthe right in below them.successive rows. 3 6 10 0 3 0 0 0 0 0 4 3 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1
  • 16. Start by obtaining 1 in the top left corner. Then, obtain zeros below that 1 by adding appropriate multiples of the first row to the rows below it. 1 0 0         
  • 17. We now discuss a systematic way to put a matrix in row-echelon form using elementary row operations.  We see how the process might work for a 3 x 4 matrix.
  • 18. Next, obtain a leading 1 in the next row. Then, obtain zeros below that 1.  At each stage, make sure every leading entry is to the right of the leading entry in the row above it.  Rearrange the rows if necessary. 1 1 0 0 1 0 0 0                  
  • 19. Solve the system of linear equations using Gaussian elimination.  We first write the augmented matrix of the system.  Then, we use elementary row operations to put it in row-echelon form. 4 8 4 4 3 8 5 11 2 12 17 x y z x y z x y z              
  • 20. 1 14 R 4 8 4 4 3 8 5 11 2 1 12 17 2 1 1 3 8 5 11 2 1 1 12 17                   
  • 21. 2 1 2 3 1 3 1 22 R 3R R R 2R R R 2 1 1 2 8 14 5 1 1 0 0 1 0 15 2 1 1 4 7 5 10 15 0 1 0                        
  • 22.  3 2 3 1 310 R 5R R R 1 0 1 0 0 2 1 1 4 7 10 20 2 1 1 4 7 2 1 0 1 0 0 1                        
  • 23. We now have an equivalent matrix in row-echelon form. The corresponding system of equations is:  We use back-substitution to solve the system. 2 1 4 7 2 x y z y z z          
  • 24.  y + 4(–2) = –7 y = 1  x + 2(1) – (–2) = 1 x = –3 The solution of the system is:(–3, 1, –2)
  • 25.  Let the set of equations given be: Where the element of the diagonal are the largest in each column. We can get the values of unknowns as follows: mnmnm nn nn nn bxaxbx bxaxbx bxaxbx bxaxbx     *.......**a . . . *..........**a *..........**a *..........**a 211m1 33232131 22222121 11211111
  • 26.  Rewrite the equations as:  Then make initial approximation of the solution x1,x2,..xn. )( 1 0 1 0 2121 11 1 1 nn xaxab a x   )( 1 0 2 0 323 0 1212 22 1 2 nn xaxaxab a x   )( 1 0 11 0 22 0 11 1  nnnnnn nn n xaxaxab a x 
  • 27. 27          n ji j ijii n ji j ii ij aa a a E 1 1 11 n1,2,...,ifor Evaluate the infinity(maximum row sum) norm of E Diagonally dominant matrix If A is a diagonally dominant matrix, then Jacobi iteration converges for any initial vector
  • 28. 28 Example 1 (Jacobi Iteration)                                   15 21 7 512 184 114 3 2 1 x x x            0 0 0 0 x 5 215 8 421 4 7 0 2 0 11 3 0 3 0 11 2 0 3 0 21 1 xx x xx x xx x       0.3 5 15 625.2 8 21 75.1 4 7    7395.26 2 0  Axb 0452.10 2 1  Axb Diagonally dominant matrix
  • 29. 29 Example 1 continued... 5 215 8 421 4 7 1 2 1 12 3 1 3 1 12 2 1 3 1 22 1 xx x xx x xx x       225.4 5 625.275.1215 875.3 8 375.1421 65625.1 4 3625.27          7413.6 2 2  Axb 8875.2 5 875.365625.1215 98125.3 8 225.465625.1421 6625.1 4 225.4875.37 3 3 3 2 3 1          x x x 9534.1 2 2  Axb Matrix is diagonally dominant, Jacobi iterations are converging
  • 30. 30 Example 2                                   7 21 15 114 184 512 3 2 1 x x x            0 0 0 0 x 7395.26 2 0  Axb 0 2 0 1 1 3 0 3 0 11 2 0 3 0 21 1 47 8 421 2 515 xxx xx x xx x      0.7 625.2 8 21 5.7 2 15      The matrix is not diagonally dominant 8546.54 2 1  Axb
  • 31. 31 Example 2 continued... 625.39625.25.747 25.0 8 75.7421 3125.11 2 75625.215 1 3 1 2 1 1        x x x 3761.208 2 2  Axb The residual term is increasing at each iteration, so the iterations are diverging. Note that the matrix is not diagonally dominant
  • 32.  Like for Gauss Jacobi we’ll first ensure that the elements of the diagonal are the maximum values  Then solve the 1s equation for the 1st unknown, 2nd for the 2nd unknown, etc. First iteration: i. Find the value of x1 by substituting the initial values of other unknowns ii. Find the value of x2 by substituting the current value of x1 and initial values of other unknowns. and continue...... Second iteration: i. Substitute all the values obtained in 1st iteration and find x1 ii. Use the current values of other unknowns, find x2 and continue....
  • 33. 33 Convergence of Gauss-Seidel iteration  GS iteration converges for any initial vector if A is a diagonally dominant matrix  GS iteration converges for any initial vector if A is a symmetric and positive definite matrix  Matrix A is positive definite if xTAx>0 for every nonzero x vector
  • 34. Given the system of equations 15312 321 x-xx  2835 321 xxx  761373 321  xxx                      1 0 1 3 2 1 x x x With an initial guess of The coefficient matrix is:               1373 351 5312 A Will the solution converge using the Gauss-Siedel method?
  • 35.               1373 351 5312 A Checking if the coefficient matrix is diagonally dominant 43155 232122  aaa 10731313 323133  aaa 8531212 131211  aaa The inequalities are all true and at least one row is strictly greater than, Therefore: The solution should converge using the Gauss-Siedel Method
  • 36.                                 76 28 1 1373 351 5312 3 2 1 a a a                      1 0 1 3 2 1 x x x Rewriting each equation 12 531 32 1 xx x   5 328 31 2 xx x   13 7376 21 3 xx x   With an initial guess of     50000.0 12 15031 1   x     9000.4 5 135.028 2   x     0923.3 13 9000.4750000.0376 3   x
  • 37.                      8118.3 7153.3 14679.0 3 2 1 x x x                      0923.3 9000.4 5000.0 3 2 1 x x x After Iteration #1     14679.0 12 0923.359000.431 1   x     7153.3 5 0923.3314679.028 2   x     8118.3 13 900.4714679.0376 3   x Substituting the x values into the equations After Iteration #2
  • 38. Iteration a1 a2 a3 1 2 3 4 5 6 0.50000 0.14679 0.74275 0.94675 0.99177 0.99919 4.9000 3.7153 3.1644 3.0281 3.0034 3.0001 3.0923 3.8118 3.9708 3.9971 4.0001 4.0001 Repeating more iterations, the following values are obtained                      4 3 1 3 2 1 x x x                      0001.4 0001.3 99919.0 3 2 1 x x x The solution obtained is close to the exact solution of .