SlideShare a Scribd company logo
Relaxation Method
Introduction
• Relaxation method is an iterative approach
solution to systems of linear equations.
• Basic idea behind this method is to improve
the solution vector successively by reducing the
largest residual at a particular iteration.
What is a residual?
• Suppose x(i) € R is an approximation to the
solution of the linear system defined by
Ax=b
• Residual vector for x(i) with respect to this system
is
R(i) =b-A x(i) in ith iteration
• The error: E(I )= x-x(i)
• R(i) = b –Ax(i) = Ax –Ax(i) = A(x –x(i)) = AE(i):
• Residual equation:
– AE(i)=R(i)
Let x(p) =( x1
(p),x2
(p) … xn
(p))T
be the solution vector obtained after pth
iteration. If Ri
(p) denotes residual,
ai1x1 + ai2x2 + … + ainxn = bi
Define by,
Ri
(p) = bi- (ai1x1 + ai2x2 + … + ainxn)
Applying relaxation method
• Transfer all the terms to the right hand side of the
equation
• Reorder the equations in a way such that largest co-
efficient in the equations appear on the diagonal
• Select the largest residual and give an increment
dx=-r(i)/aii
• Change x(i) to x(i) +dx(i) to relax R(i) that is to reduce
R(i) to zero
Example :
6x1-3x2+x3 = 11
2x1+x2-8x3 =-15
x1-7x2+x3 = 10
0= 11- 6x1 - 3x2 - x3 R1
0= 10- x1 + 7x2 - x3  R2
0= -15- 2x1 - x2 + 8x3  R3
• Start with initial guesses x1=x2=x3=0
• R1=11,
• R2=10,
• R3=-15
• Largest residual is R3
• So that dx3 = - R3 /a33
• dx3= -15/-8 = 1.875
New guesses:
x1=0
x2=0 and
x3=1.875
Continue the process until r  0
Final result would be like this
Iteration
no R1 R2 R3
Max
Ri dx(i) x1 x2 x3
0 11 10 -15 1.875 0 0 0
1 -9.125 8.125 0 9.125 1.5288 0 0 1.875
2 0.0478 6.5962 -3.0576 6.5962 -0.9423 1.5288 0 1.875
3 -2.8747 0.0001 -2.1153 -2.8747 -0.4791 1.5288 -0.9423 1.875
4 -0.0031 0.4792 -1.1571 -1.1571 0.1446 1.0497 -0.9423 1.875
5 0.1447 0.3346 0.0003 0.3346 -0.0478 1.0497 -0.9423 2.0196
6 0.2881 0.0000 0.0475 0.2881 0.0480 1.0497 -0.9901 2.0196
7 -0.0001 0.048 0.1435 0.1435 -0.0179 1.0017 -0.9901 2.0196
8 0.0178 0.0659 0.0003 - - 1.0017 -0.9901 2.0017
• At ith iteration we can see that
R1,R2 and R3 are small enough,
• So xi values in this iteration
x1 = 1.007,
x2 = -0.9901,
x3 = 2.0017
• Which are very close to the Exact solutions
x1 = 1.0
x2 = -1.0
x3 = 2.0
Convergence
• Converges slowly for large systems of equations
(large n)
Special cases
• Simple to implement
• Not useful as a stand alone solution method
• Key ingredients to multi grid methods
– Jacobi
– Gauss seidel
– red
Comparison with Other
Methods
Methods available to find solutions
 Direct
Elimination
 Gaussian elimination
 Gauss-Jordan
elimination
Decomposition
 Court's reduction
(Cholesky's reduction)
 Iterative
 Jacobi's method
 Gauss-Seidel method
 Relaxation method
Advantages and Disadvantages
 Relaxation method is the core part of linear algebra.
 This method provide preconditions for new methods.
 Easily adoptable to computers.
 Can solve more than 100s of linear equations
simultaneously.
 Slower progress than the competing methods
Solve:
6x - 3y + z = 11
2x + y - 8z = -15
x - 7y + z = 10
Gaussian
Elimination
Gauss-
Jordan
Elimination
Courts
Reduction
Relaxation
method
X 1 1 1 1.0017
Y -1 -1 -1 -0 9901
Z 2 2 2 2.0017
Relaxation method is the best
method for :
 Relaxation method is highly used for image
processing .
 This method has been developed for analysis of
hydraulic structures .
 Solving linear equations relating to the radiosity
problem.
 Relaxation methods are iterative methods for solving
systems of equations, including nonlinear systems.
 Relaxation method used with other numerical
methods in mono-tropic programs.
Completed Researches
Why relaxation methods?
• Direct methods are robust.
• Direct methods are less computational costly.
But
• They require high memory access.
• Slow in convergence.
Evolution of relaxation methods
• Gauss Siedel Iteration
 Gauss’s letter to Gerling
 Era of electronic computing
•Work of David Young
 Notions - “Consistent Ordering” and “Property A”
 Convergence of the methods
• Ostrowski (1937)
 Relevant properties for M-Matrices
• Theorem of Stein – Rosenburg (1948)
 Asymptotic rates
• Concept of Irreducibility
 Grid oriented matrices
•Concept of Cyclic Matrices
 Convergence theory of SOR methods
•Varga’s Contribution
 Generalization of Young’s results
 Matrix Iterative Analysis (1962)
 Notions – Regular Splittings
 Theories -Stieltjes and M-Matrices
 Semi Iterative Methods
Richard Varga
• 1960s and 1970s
 Chaotic Relaxations
 Chazan , Miranker , Miellou , Robert
• Multigrid Methods
 Krylov subspace method
 Use of Eugene values
References
Rao, K.S., Year. Numerical Methods for Scientists and
Engineers. 2nd ed. Delhi: Prentice-Hall of India.
Yousef Sadd and , Henk A. van der Vorst, Iterative Solution of
Linear Systems in the 20th Century [pdf]. Available at: <www-
users.cs.umn.edu/~saad/PDF/umsi-99-152.pdf> Accessed [12th
July 2012]
Relaxation Methods for Iterative Solution to Linear Systems of
Equations Gerald Recktenwald Portland State University
Mechanical Engineering Department
Scientic Computing II Relaxation MethodsMichael Bader
Summer term 2012
Working scenario
Demonstration

More Related Content

PDF
Theory of Plates and Shells
PPT
NUMERICAL METHODS -Iterative methods(indirect method)
PDF
Class 7 Consolidation Test ( Geotechnical Engineering )
PPTX
Electrical double layer theory
PPTX
Diabetes Mellitus
PPTX
Hypertension
PPTX
Republic Act No. 11313 Safe Spaces Act (Bawal Bastos Law).pptx
PPTX
Power Point Presentation on Artificial Intelligence
Theory of Plates and Shells
NUMERICAL METHODS -Iterative methods(indirect method)
Class 7 Consolidation Test ( Geotechnical Engineering )
Electrical double layer theory
Diabetes Mellitus
Hypertension
Republic Act No. 11313 Safe Spaces Act (Bawal Bastos Law).pptx
Power Point Presentation on Artificial Intelligence

What's hot (20)

PPTX
Crout s method for solving system of linear equations
PDF
Higher Order Differential Equation
PPTX
Jacobi iteration method
PPTX
Numerical analysis ppt
PPTX
Homogeneous Linear Differential Equations
PPTX
applications of first order non linear partial differential equation
PPTX
Linear differential equation
PPTX
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
PDF
numerical differentiation&integration
PPTX
Differential equations of first order
PPTX
Runge Kutta Method
PPTX
Runge-Kutta methods with examples
PPTX
Jacobi method
PPT
Applications of numerical methods
PPTX
Bisection method
PPTX
Iterative methods
PDF
Lu decomposition
PPTX
Ordinary differential equations
PPTX
Runge-Kutta-Methods.pptx
PPTX
System of linear equations
Crout s method for solving system of linear equations
Higher Order Differential Equation
Jacobi iteration method
Numerical analysis ppt
Homogeneous Linear Differential Equations
applications of first order non linear partial differential equation
Linear differential equation
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
numerical differentiation&integration
Differential equations of first order
Runge Kutta Method
Runge-Kutta methods with examples
Jacobi method
Applications of numerical methods
Bisection method
Iterative methods
Lu decomposition
Ordinary differential equations
Runge-Kutta-Methods.pptx
System of linear equations
Ad

Viewers also liked (6)

PPTX
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
PDF
Jacobi and gauss-seidel
PPTX
PPT
Gauss sediel
PPT
Newton Raphson method for load flow analysis
PPTX
Regula falsi method
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
Jacobi and gauss-seidel
Gauss sediel
Newton Raphson method for load flow analysis
Regula falsi method
Ad

Similar to Relaxation method (20)

PDF
Curve Fitting in Numerical Methods Regression
PDF
me310_5_regression.pdf numerical method for engineering
PDF
Subgradient Methods for Huge-Scale Optimization Problems - Юрий Нестеров, Cat...
PDF
Wiener Filter Hardware Realization
PDF
UNIT I_5.pdf
PPTX
Regression vs Neural Net
PDF
document(1).pdf
PPT
Least square method
PDF
Random Matrix Theory and Machine Learning - Part 3
PDF
Sparsenet
PPTX
machine learning.pptx
PDF
Cs36565569
PDF
Solving Fuzzy Maximal Flow Problem Using Octagonal Fuzzy Number
PDF
Solving Fuzzy Maximal Flow Problem Using Octagonal Fuzzy Number
PPTX
Unit 3-Numerical Algorithms (3).pptx .is of topic data structures and algorithm
PPT
18-21 Principles of Least Squares.ppt
PDF
CI_L01_Optimization.pdf
PDF
Linear regression: introduction and method
PPTX
Av 738- Adaptive Filtering - Background Material
PPTX
08-Regression.pptx
Curve Fitting in Numerical Methods Regression
me310_5_regression.pdf numerical method for engineering
Subgradient Methods for Huge-Scale Optimization Problems - Юрий Нестеров, Cat...
Wiener Filter Hardware Realization
UNIT I_5.pdf
Regression vs Neural Net
document(1).pdf
Least square method
Random Matrix Theory and Machine Learning - Part 3
Sparsenet
machine learning.pptx
Cs36565569
Solving Fuzzy Maximal Flow Problem Using Octagonal Fuzzy Number
Solving Fuzzy Maximal Flow Problem Using Octagonal Fuzzy Number
Unit 3-Numerical Algorithms (3).pptx .is of topic data structures and algorithm
18-21 Principles of Least Squares.ppt
CI_L01_Optimization.pdf
Linear regression: introduction and method
Av 738- Adaptive Filtering - Background Material
08-Regression.pptx

More from Parinda Rajapaksha (8)

PDF
Android development
PPTX
Realm mobile database
PPTX
Identifying adverse drug reactions by analyzing twitter messages
PPTX
Analysis of Feature Selection Algorithms (Branch & Bound and Beam search)
PDF
The Needleman-Wunsch Algorithm for Sequence Alignment
PPTX
Scientific methods in computer science
PPTX
Gift 4 life v 1.1 (Blood Camp Management System)
PPTX
Ceylon tobacco company (ctc)
Android development
Realm mobile database
Identifying adverse drug reactions by analyzing twitter messages
Analysis of Feature Selection Algorithms (Branch & Bound and Beam search)
The Needleman-Wunsch Algorithm for Sequence Alignment
Scientific methods in computer science
Gift 4 life v 1.1 (Blood Camp Management System)
Ceylon tobacco company (ctc)

Recently uploaded (20)

PPTX
History, Philosophy and sociology of education (1).pptx
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
1_English_Language_Set_2.pdf probationary
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PPTX
20th Century Theater, Methods, History.pptx
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
Trump Administration's workforce development strategy
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
History, Philosophy and sociology of education (1).pptx
LDMMIA Reiki Yoga Finals Review Spring Summer
1_English_Language_Set_2.pdf probationary
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
AI-driven educational solutions for real-life interventions in the Philippine...
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
TNA_Presentation-1-Final(SAVE)) (1).pptx
Paper A Mock Exam 9_ Attempt review.pdf.
Unit 4 Computer Architecture Multicore Processor.pptx
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
20th Century Theater, Methods, History.pptx
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Trump Administration's workforce development strategy
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf

Relaxation method

  • 2. Introduction • Relaxation method is an iterative approach solution to systems of linear equations. • Basic idea behind this method is to improve the solution vector successively by reducing the largest residual at a particular iteration.
  • 3. What is a residual? • Suppose x(i) € R is an approximation to the solution of the linear system defined by Ax=b • Residual vector for x(i) with respect to this system is R(i) =b-A x(i) in ith iteration
  • 4. • The error: E(I )= x-x(i) • R(i) = b –Ax(i) = Ax –Ax(i) = A(x –x(i)) = AE(i): • Residual equation: – AE(i)=R(i)
  • 5. Let x(p) =( x1 (p),x2 (p) … xn (p))T be the solution vector obtained after pth iteration. If Ri (p) denotes residual, ai1x1 + ai2x2 + … + ainxn = bi Define by, Ri (p) = bi- (ai1x1 + ai2x2 + … + ainxn)
  • 6. Applying relaxation method • Transfer all the terms to the right hand side of the equation • Reorder the equations in a way such that largest co- efficient in the equations appear on the diagonal • Select the largest residual and give an increment dx=-r(i)/aii • Change x(i) to x(i) +dx(i) to relax R(i) that is to reduce R(i) to zero
  • 7. Example : 6x1-3x2+x3 = 11 2x1+x2-8x3 =-15 x1-7x2+x3 = 10 0= 11- 6x1 - 3x2 - x3 R1 0= 10- x1 + 7x2 - x3  R2 0= -15- 2x1 - x2 + 8x3  R3
  • 8. • Start with initial guesses x1=x2=x3=0 • R1=11, • R2=10, • R3=-15 • Largest residual is R3 • So that dx3 = - R3 /a33 • dx3= -15/-8 = 1.875
  • 10. Final result would be like this Iteration no R1 R2 R3 Max Ri dx(i) x1 x2 x3 0 11 10 -15 1.875 0 0 0 1 -9.125 8.125 0 9.125 1.5288 0 0 1.875 2 0.0478 6.5962 -3.0576 6.5962 -0.9423 1.5288 0 1.875 3 -2.8747 0.0001 -2.1153 -2.8747 -0.4791 1.5288 -0.9423 1.875 4 -0.0031 0.4792 -1.1571 -1.1571 0.1446 1.0497 -0.9423 1.875 5 0.1447 0.3346 0.0003 0.3346 -0.0478 1.0497 -0.9423 2.0196 6 0.2881 0.0000 0.0475 0.2881 0.0480 1.0497 -0.9901 2.0196 7 -0.0001 0.048 0.1435 0.1435 -0.0179 1.0017 -0.9901 2.0196 8 0.0178 0.0659 0.0003 - - 1.0017 -0.9901 2.0017
  • 11. • At ith iteration we can see that R1,R2 and R3 are small enough, • So xi values in this iteration x1 = 1.007, x2 = -0.9901, x3 = 2.0017 • Which are very close to the Exact solutions x1 = 1.0 x2 = -1.0 x3 = 2.0
  • 12. Convergence • Converges slowly for large systems of equations (large n)
  • 13. Special cases • Simple to implement • Not useful as a stand alone solution method • Key ingredients to multi grid methods – Jacobi – Gauss seidel – red
  • 15. Methods available to find solutions  Direct Elimination  Gaussian elimination  Gauss-Jordan elimination Decomposition  Court's reduction (Cholesky's reduction)  Iterative  Jacobi's method  Gauss-Seidel method  Relaxation method
  • 16. Advantages and Disadvantages  Relaxation method is the core part of linear algebra.  This method provide preconditions for new methods.  Easily adoptable to computers.  Can solve more than 100s of linear equations simultaneously.  Slower progress than the competing methods
  • 17. Solve: 6x - 3y + z = 11 2x + y - 8z = -15 x - 7y + z = 10 Gaussian Elimination Gauss- Jordan Elimination Courts Reduction Relaxation method X 1 1 1 1.0017 Y -1 -1 -1 -0 9901 Z 2 2 2 2.0017
  • 18. Relaxation method is the best method for :  Relaxation method is highly used for image processing .  This method has been developed for analysis of hydraulic structures .  Solving linear equations relating to the radiosity problem.  Relaxation methods are iterative methods for solving systems of equations, including nonlinear systems.  Relaxation method used with other numerical methods in mono-tropic programs.
  • 20. Why relaxation methods? • Direct methods are robust. • Direct methods are less computational costly. But • They require high memory access. • Slow in convergence.
  • 21. Evolution of relaxation methods • Gauss Siedel Iteration  Gauss’s letter to Gerling  Era of electronic computing
  • 22. •Work of David Young  Notions - “Consistent Ordering” and “Property A”  Convergence of the methods • Ostrowski (1937)  Relevant properties for M-Matrices • Theorem of Stein – Rosenburg (1948)  Asymptotic rates • Concept of Irreducibility  Grid oriented matrices
  • 23. •Concept of Cyclic Matrices  Convergence theory of SOR methods •Varga’s Contribution  Generalization of Young’s results  Matrix Iterative Analysis (1962)  Notions – Regular Splittings  Theories -Stieltjes and M-Matrices  Semi Iterative Methods Richard Varga
  • 24. • 1960s and 1970s  Chaotic Relaxations  Chazan , Miranker , Miellou , Robert • Multigrid Methods  Krylov subspace method  Use of Eugene values
  • 25. References Rao, K.S., Year. Numerical Methods for Scientists and Engineers. 2nd ed. Delhi: Prentice-Hall of India. Yousef Sadd and , Henk A. van der Vorst, Iterative Solution of Linear Systems in the 20th Century [pdf]. Available at: <www- users.cs.umn.edu/~saad/PDF/umsi-99-152.pdf> Accessed [12th July 2012] Relaxation Methods for Iterative Solution to Linear Systems of Equations Gerald Recktenwald Portland State University Mechanical Engineering Department Scientic Computing II Relaxation MethodsMichael Bader Summer term 2012