SlideShare a Scribd company logo
1 of 38
ITERATIVESMETHODS
JACOBI METHOD ITERATIVESMETHODS
JACOBI METHOD Suppose we are trying to solve a system of linear equation Mx= b. If we assume that the diagonal entries are non-zero (true if the matrix M is positive definite), then we may rewrite this equation as: Dx+ Moffx = b Where: Dis the diagonal matrix containing the diagonal entries of M and Moff contains the off-diagonal entries of M. Because all the entries of the diagonal matrix are non-zero, the inverse is simply the diagonal matrix whose diagonal entries are the reciprocals of the corresponding entries of D.
Thus, we may bring the off-diagonal entries to the right hand side and multiply by D-1: x = D-1(b - Moffx)  You will recall from the class on iteration, we now have an equation of the form x = f(x), except in this case, the argument is a vector, and thus, one method of solving such a problem is to start with an initial vector x0.
EXAMPLE  Use the Jacobi method to approximate the solution of the following system of linear equations: Withinitialvalues:
Continue the iterations until two successive approximations are identical when rounded to three significant digits. Tobegin, writethesystem in theform:
As a convenient initial approximation. So, the first approximation is:
Continuing thisprocedure, youobtainthesequence of approximationsshown in Table.
Becausethelasttwocolumns in table are identical, you can concludethattothreesignificantdigitsthesolutionis: Forthesystem of linear equations given in example, theJacobimethodissaid ti converge. Thatis, repeated iterations succeed in producingapproximationthatiscorrecttothreesignificantdigits. As is generally true foriterativemethods, grateraccuracywouldrequire more iterations.
GAUSS-SEIDEL METHOD ITERATIVESMETHODS
GAUSS-SEIDEL METHOD The Gauss–Seidel method, also known as the Liebmann method or the method of successive displacement, is an iterative method used to solve a linear system of equations. It is named after the GermanmathematiciansCarl Friedrich Gauss and Philipp Ludwig von Seidel, and is similar to the Jacobi method. Though it can be applied to any matrix with non-zero elements on the diagonals, convergence is only guaranteed if the matrix is either diagonally dominant, or symmetric and positive definite.
First solve for the unknowns in order. Then we assume an initial value for [X(0)] We must remember that I always use the most recent value xi. This means that calculated values apply for the calculations are in the current iteration
Calculation of relative absolute error approximate Then find the correct answer when the maximum relative absolute error is approximately less than the specified tolerance for all unknowns.
EXAMPLE  Solve the following system of equations: Matrixcoefficients: Withinitialvalues:
Let's see if the matrix is diagonally dominant Satisfy all inequalities, therefore the solution should converge using the Gauss Seidel.
Rewritingeachequation: Withinitialvalues:
Iteration1 Theapproximaterelativeabsoluteerror: The approximate maximum relative absolute error after the first iteration is 100%.
Substituting the above values into the equations
Iteration 2 Theapproximaterelativeabsoluteerror: The approximate maximum relative absolute error after the second iteration is 24.7%.
Substituting the above values into the equations
Iteration 3 Theapproximaterelativeabsoluteerror: The approximate maximum relative absolute error after the second iteration is 8.9%.
Substituting the above values into the equations
Iteration 4 Theapproximaterelativeabsoluteerror: The approximate maximum relative absolute error after the second iteration is 0.06%.
Theresultingsolutionis: Theexactsolutionis:
GAUSS-SEIDEL RELAXATION METHOD Gauss-Seidel ITERATIVESMETHODS
GAUSS-SEIDEL RELAXATION The Gauss-Seidel method is a technique for solving the equations of the linear system of equationsAx = b one at a time in sequence, and uses previously     computed results as soon as they are available,
There are two important characteristics of the Gauss-Seidel method should be noted. Firstly, the computations appear to be serial. Since each component of the new iterate depends upon all previously computed components, the updates cannot be done simultaneously as in the Jacobi method. Secondly, the new iterate depends upon the order in which the equations are examined. If this ordering is changed, the components of the new iterates (and not just their order) will also change.
In terms of matrices, the definition of the Gauss-Seidel method can be expressed as  where the matrices D, -L and -U represent the diagonal, strictly lower triangular, and strictly upper triangular parts of, respectively.  The Gauss-Seidel method is applicable to strictly diagonally dominant, or symmetric positive definite matrices .
IMPROVING THE CONVERGENCE USING RELAXATION SOR The relaxation represents a slight modification to the Gauss Seidel and this improves the convergence. Estimated after each new value of x, that value is changed by a weighted average of the results of previous and current iteration. Where w is a weighting factor that has a Valors between 0 and 2.
Example. Figure 5. The effect of freezing the boundary on several levels of a surface.
EXAMPLE  Solve the following system of equations for Relaxation SOR: Withinitialvalues: With:
Rewritingeachequation: Withinitialvalues X1:
Iteration1
Iteration2
And we must make the followings iterations y and obtained:
If A is symmetric and positive definite, the Gauss-Seidel method converges. If A is symmetric and the matrix is the form: And is positive definite, the Jacobi method is convergent. CONVERGENCE OF ITERATIVES METHODS
If A is symmetric and positive definite, the relaxation method converges if and only if 0 < w <2. If w < 1 the method is named subrelajation and if w > 1, Overrelaxation. If A is symmetric, positive definite and tridiagonal, the optimal value of w for the convergence of the relaxation method is:      where:Pj: The spectral radius of the matrix Jacobi iteration method.
http://www.google.com.co/imgres?imgurl=http://www.unavarra.es/personal/victor_dominguez/portMatlab.jpg&imgrefurl=http://www.unavarra.es/personal/victor_dominguez/libroMatlab.htm&usg=__g0H6VfxnJXinSq932hKACQW-4mE=&h=423&w=596&sz=61&hl=es&start=19&itbs=1&tbnid=qcEPT90K9KGOJM:&tbnh=96&tbnw=135&prev=/images%3Fq%3DGauss-Seidel%2Bcon%2Brelajaci%25C3%25B3n%26hl%3Des%26sa%3DG%26gbv%3D2%26tbs%3Disch:1 http://www.ana.iusiani.ulpgc.es/metodos_numericos/document/apuntes/Parte_4.pdf Bibliography

More Related Content

What's hot

Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical MethodsGauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical MethodsJanki Shah
 
Gauss jordan and Guass elimination method
Gauss jordan and Guass elimination methodGauss jordan and Guass elimination method
Gauss jordan and Guass elimination methodMeet Nayak
 
Gauss Elimination Method With Partial Pivoting
Gauss Elimination Method With Partial PivotingGauss Elimination Method With Partial Pivoting
Gauss Elimination Method With Partial PivotingSM. Aurnob
 
Direct and indirect methods
Direct and indirect methodsDirect and indirect methods
Direct and indirect methodsEjaz hussain
 
Direct Methods For The Solution Of Systems Of
Direct Methods For The Solution Of Systems OfDirect Methods For The Solution Of Systems Of
Direct Methods For The Solution Of Systems OfMarcela Carrillo
 
Gauss Jordan Method
Gauss Jordan MethodGauss Jordan Method
Gauss Jordan MethodZunAib Ali
 
Solution to linear equhgations
Solution to linear equhgationsSolution to linear equhgations
Solution to linear equhgationsRobin Singh
 
Gauss Jordan
Gauss JordanGauss Jordan
Gauss JordanEzzat Gul
 
Iterativos Methods
Iterativos MethodsIterativos Methods
Iterativos MethodsJeannie
 
Gauss elimination & Gauss Jordan method
Gauss elimination & Gauss Jordan methodGauss elimination & Gauss Jordan method
Gauss elimination & Gauss Jordan methodNaimesh Bhavsar
 
INVERSION OF MATRIX BY GAUSS ELIMINATION METHOD
INVERSION OF MATRIX BY GAUSS ELIMINATION METHODINVERSION OF MATRIX BY GAUSS ELIMINATION METHOD
INVERSION OF MATRIX BY GAUSS ELIMINATION METHODreach2arkaELECTRICAL
 
METHOD OF LEAST SQURE
METHOD OF LEAST SQUREMETHOD OF LEAST SQURE
METHOD OF LEAST SQUREDanial Mirza
 
Gaussian Elimination Method
Gaussian Elimination MethodGaussian Elimination Method
Gaussian Elimination MethodAndi Firdaus
 

What's hot (20)

Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical MethodsGauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
 
Nsm
Nsm Nsm
Nsm
 
Linear and non linear equation
Linear and non linear equationLinear and non linear equation
Linear and non linear equation
 
Gauss jordan and Guass elimination method
Gauss jordan and Guass elimination methodGauss jordan and Guass elimination method
Gauss jordan and Guass elimination method
 
Gauss Elimination Method With Partial Pivoting
Gauss Elimination Method With Partial PivotingGauss Elimination Method With Partial Pivoting
Gauss Elimination Method With Partial Pivoting
 
Direct and indirect methods
Direct and indirect methodsDirect and indirect methods
Direct and indirect methods
 
Direct Methods For The Solution Of Systems Of
Direct Methods For The Solution Of Systems OfDirect Methods For The Solution Of Systems Of
Direct Methods For The Solution Of Systems Of
 
Relaxation method
Relaxation methodRelaxation method
Relaxation method
 
Term paper
Term paperTerm paper
Term paper
 
Gauss Jordan Method
Gauss Jordan MethodGauss Jordan Method
Gauss Jordan Method
 
Nmsa 170900713008
Nmsa 170900713008Nmsa 170900713008
Nmsa 170900713008
 
Solution to linear equhgations
Solution to linear equhgationsSolution to linear equhgations
Solution to linear equhgations
 
Gauss Jordan
Gauss JordanGauss Jordan
Gauss Jordan
 
Iterativos Methods
Iterativos MethodsIterativos Methods
Iterativos Methods
 
Gauss elimination & Gauss Jordan method
Gauss elimination & Gauss Jordan methodGauss elimination & Gauss Jordan method
Gauss elimination & Gauss Jordan method
 
INVERSION OF MATRIX BY GAUSS ELIMINATION METHOD
INVERSION OF MATRIX BY GAUSS ELIMINATION METHODINVERSION OF MATRIX BY GAUSS ELIMINATION METHOD
INVERSION OF MATRIX BY GAUSS ELIMINATION METHOD
 
Basic calculus (i)
Basic calculus (i)Basic calculus (i)
Basic calculus (i)
 
Cramer's Rule
Cramer's RuleCramer's Rule
Cramer's Rule
 
METHOD OF LEAST SQURE
METHOD OF LEAST SQUREMETHOD OF LEAST SQURE
METHOD OF LEAST SQURE
 
Gaussian Elimination Method
Gaussian Elimination MethodGaussian Elimination Method
Gaussian Elimination Method
 

Similar to Interactives Methods

Iterativos methods
Iterativos methodsIterativos methods
Iterativos methodsJeannie
 
The Jacobi and Gauss-Seidel Iterative Methods.pdf
The Jacobi and Gauss-Seidel Iterative Methods.pdfThe Jacobi and Gauss-Seidel Iterative Methods.pdf
The Jacobi and Gauss-Seidel Iterative Methods.pdfTigabu Yaya
 
Numerical
NumericalNumerical
Numerical1821986
 
Metodos jacobi y gauss seidel
Metodos jacobi y gauss seidelMetodos jacobi y gauss seidel
Metodos jacobi y gauss seidelCesar Mendoza
 
Solution of equations for methods iterativos
Solution of equations for methods iterativosSolution of equations for methods iterativos
Solution of equations for methods iterativosDUBAN CASTRO
 
Solution of equations for methods iterativos
Solution of equations for methods iterativosSolution of equations for methods iterativos
Solution of equations for methods iterativosDUBAN CASTRO
 
Direct Methods to Solve Lineal Equations
Direct Methods to Solve Lineal EquationsDirect Methods to Solve Lineal Equations
Direct Methods to Solve Lineal EquationsLizeth Paola Barrero
 
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
 
A Condensation-Projection Method For The Generalized Eigenvalue Problem
A Condensation-Projection Method For The Generalized Eigenvalue ProblemA Condensation-Projection Method For The Generalized Eigenvalue Problem
A Condensation-Projection Method For The Generalized Eigenvalue ProblemScott Donald
 
Systems of Linear Algebra
Systems of Linear AlgebraSystems of Linear Algebra
Systems of Linear AlgebraAyesha Arshad
 
System of linear algebriac equations nsm
System of linear algebriac equations nsmSystem of linear algebriac equations nsm
System of linear algebriac equations nsmRahul Narang
 
lecture-3 laplce and poisson.pptx .
lecture-3 laplce and poisson.pptx                .lecture-3 laplce and poisson.pptx                .
lecture-3 laplce and poisson.pptx .happycocoman
 

Similar to Interactives Methods (20)

Iterativos methods
Iterativos methodsIterativos methods
Iterativos methods
 
Ijetr021210
Ijetr021210Ijetr021210
Ijetr021210
 
Ijetr021210
Ijetr021210Ijetr021210
Ijetr021210
 
Chapter v
Chapter vChapter v
Chapter v
 
CHAPTER 3 numer.pdf
CHAPTER 3 numer.pdfCHAPTER 3 numer.pdf
CHAPTER 3 numer.pdf
 
The Jacobi and Gauss-Seidel Iterative Methods.pdf
The Jacobi and Gauss-Seidel Iterative Methods.pdfThe Jacobi and Gauss-Seidel Iterative Methods.pdf
The Jacobi and Gauss-Seidel Iterative Methods.pdf
 
Numerical
NumericalNumerical
Numerical
 
Metodos jacobi y gauss seidel
Metodos jacobi y gauss seidelMetodos jacobi y gauss seidel
Metodos jacobi y gauss seidel
 
Solution of equations for methods iterativos
Solution of equations for methods iterativosSolution of equations for methods iterativos
Solution of equations for methods iterativos
 
Solution of equations for methods iterativos
Solution of equations for methods iterativosSolution of equations for methods iterativos
Solution of equations for methods iterativos
 
Direct Methods to Solve Lineal Equations
Direct Methods to Solve Lineal EquationsDirect Methods to Solve Lineal Equations
Direct Methods to Solve Lineal Equations
 
Direct methods
Direct methodsDirect methods
Direct methods
 
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
 
Direct methods
Direct methodsDirect methods
Direct methods
 
A Condensation-Projection Method For The Generalized Eigenvalue Problem
A Condensation-Projection Method For The Generalized Eigenvalue ProblemA Condensation-Projection Method For The Generalized Eigenvalue Problem
A Condensation-Projection Method For The Generalized Eigenvalue Problem
 
Unger
UngerUnger
Unger
 
Systems of Linear Algebra
Systems of Linear AlgebraSystems of Linear Algebra
Systems of Linear Algebra
 
01.02 linear equations
01.02 linear equations01.02 linear equations
01.02 linear equations
 
System of linear algebriac equations nsm
System of linear algebriac equations nsmSystem of linear algebriac equations nsm
System of linear algebriac equations nsm
 
lecture-3 laplce and poisson.pptx .
lecture-3 laplce and poisson.pptx                .lecture-3 laplce and poisson.pptx                .
lecture-3 laplce and poisson.pptx .
 

Interactives Methods