ArticleslgStudy

mathematics

Successive over-relaxation

Successive over-relaxation is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Successive over-relaxation rather than just read about it. In short: In numerical linear algebra, the method of successive over-relaxation (SOR) is a variant of the Gauss–Seidel method for solving a linear system of equations, resulting in faster convergence. A similar method can be used for any slowly converging iterative process.

Successive over-relaxation — main illustration
Successive over-relaxation — illustration

Key takeaways

  • Successive over-relaxation belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Successive over-relaxation to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Successive over-relaxation from memory before moving on to harder problems.

Reference excerpt

In numerical linear algebra, the method of successive over-relaxation (SOR) is a variant of the Gauss–Seidel method for solving a linear system of equations, resulting in faster convergence. A similar method can be used for any slowly converging iterative process. It was devised simultaneously by David M. Young Jr. and by Stanley P. Frankel in 1950 for the purpose of automatically solving linear systems on digital computers. Over-relaxation methods had been used before the work of Young and Frankel. An example is the method of Lewis Fry Richardson, and the methods developed by R. V. Southwell. However, these methods were designed for computation by human calculators, requiring some expertise to ensure convergence to the solution which made them inapplicable for programming on digital computers. These aspects are discussed in the thesis of David M. Young Jr.

Formulation Given a square system of n linear equations with unknown x: A𝐱=𝐛 where: A=[a11a12⋯a1na21a22⋯a2n⋮⋮⋱⋮an1an2⋯ann],𝐱=[x1x2⋮xn],𝐛=[b1b2⋮bn]. Then A can be decomposed into a diagonal component D, and strictly lower and upper triangular components L and U: A=D+L+U, where D=[a110⋯00a22⋯0⋮⋮⋱⋮00⋯ann],L=[00⋯0a210⋯0⋮⋮⋱⋮an1an2⋯0],U=[0a12⋯a1n00⋯a2n⋮⋮⋱⋮00⋯0]. The system of linear equations may be rewritten as: (D+ωL)𝐱=ω𝐛−[ωU+(ω−1)D]𝐱 for a constant ω > 1, called the relaxation factor. The method of successive over-relaxation is an iterative technique that solves the left hand side of this expression for x, using the previous value for x on the right hand side. Analytically, this may be written as: 𝐱(k+1)=(D+ωL)−1(ω𝐛−[ωU+(ω−1)D]𝐱(k))=Lω𝐱(k)+𝐜, where 𝐱(k) is the kth approximation or iteration of 𝐱 and 𝐱(k+1) is the next or k + 1 iteration of 𝐱. However, by taking advantage of the triangular form of (D+ωL), the elements of x(k+1) can be computed sequentially using forward substitution: xi(k+1)=(1−ω)xi(k)+ωaii(bi−∑j<iaijxj(k+1)−∑j>iaijxj(k)),i=1,2,…,n. This can again be written analytically in matrix-vector form without the need of inverting the matrix (D+ωL): 𝐱(k+1)=(1−ω)𝐱(k)+ωD−1(𝐛−L𝐱(k+1)−U𝐱(k)).

Convergence

The choice of relaxation factor ω is not necessarily easy, and depends upon the properties of the coefficient matrix. In 1947, Ostrowski proved that if A is symmetric and positive-definite then ρ(Lω)<1 for 0<ω<2. Thus, convergence of the iteration process follows, but we are generally interested in faster convergence rather than just convergence.

Convergence Rate The convergence rate for the SOR method can be analytically derived. One needs to assume the following

the relaxation parameter is appropriate: ω∈(0,2) Jacobi's iteration matrix CJac:=I−D−1A has only real eigenvalues Jacobi's method is convergent: μ:=ρ(CJac)<1 the matrix decomposition A=D+L+U satisfies the property that det⁡(λD+zL+1zU)=det⁡(λD+L+U) for any z∈ℂ∖{0} and λ∈ℂ. Then the convergence rate can be expressed as ρ(Cω)={14[ωμ+ω2μ2−4(ω−1)]2,0<ω≤ωoptω−1,ωopt<ω<2 where the optimal relaxation parameter is given by ωopt:=1+(μ1+1−μ2)2=1+μ24+O(μ3). In particular, for ω=1 (Gauss-Seidel) it holds that ρ(Cω)=μ2=ρ(CJac)2. For the optimal ω we get ρ(Cω)=1−1−μ21+1−μ2=μ24+O(μ3), which shows SOR is roughly four times more efficient than Gauss–Seidel. The last assumption is satisfied for tridiagonal matrices since Z(λD+L+U)Z−1=λD+zL+1zU for diagonal Z with entries Zii=zi−1 and det⁡(λD+L+U)=det⁡(Z(λD+L+U)Z−1).

Algorithm Since elements can be overwritten as they are computed in this algorithm, only one storage vector is needed, and vector indexing is omitted. The algorithm goes as follows:

Inputs: A, b, ω Output: ϕ

Choose an initial guess ϕ to the solution repeat until convergence for i from 1 until n do set σ to 0 for j from 1 until n do if j ≠ i then set σ to σ+aijϕj end if end (j-loop) set ϕi to (1−ω)ϕi+ω(bi−σ)/aii end (i-loop) check if convergence is reached end (repeat)

Note (1−ω)ϕi+ωaii(bi−σ) can also be written ϕi+ω(bi−σaii−ϕi), thus saving one multiplication in each iteration of the outer for-loop.

Example We are presented the linear system 4x1−x2−6x3+0x4=2,−5x1−4x2+10x3+8x4=21,0x1+9x2+4x3−2x4=−12,1x1+0x2−7x3+5x4=−6. To solve the equations, we choose a relaxation factor ω=0.5 and an initial guess vector ϕ=(0,0,0,0). According to the successive over-relaxation algorithm, the following table is obtained, representing an exemplary iteration with approximations, which ideally, but not necessarily, finds the exact solution, (3, −2, 2, 1), in 38 steps.

A simple implementation of the algorithm in Common Lisp is offered below.

A simple Python implementation of the pseudo-code provided above.

Symmetric successive over-relaxation The version for symmetric matrices A, in which U=LT, is referred to as Symmetric Successive Over-Relaxation, or (SSOR), in which P=(Dω+L)ω2−ωD−1(Dω+U), and the iterative method is 𝐱k+1=𝐱k−γkP−1(A𝐱k−𝐛), k≥0. The SOR and SSOR methods are credited to David M. Young Jr.

Other applications of the method

A similar technique can be used for any iterative method. If the original iteration had the form xn+1=f(xn) then the modified version would use xn+1SOR=(1−ω)xnSOR+ωf(xnSOR). However, the formulation presented above, used for solving systems of linear equations, is not a special case of this formulation if x is considered to be the complete vector. If this formulation is used instead, the equation for calculating the next vector will look like 𝐱(k+1)=(1−ω)𝐱(k)+ωL∗−1(𝐛−U𝐱(k)), where L∗=L+D. Values of ω>1 are used to speed up convergence of a slow-converging process, while values of ω<1 are often used to help establish convergence of a diverging iterative process or speed up the convergence of an overshooting process. There are various methods that adaptively set the relaxation parameter ω based on the observed behavior of the converging process. Usually they help to reach a super-linear convergence for some problems but fail for the others.

See also

Jacobi method Gaussian Belief Propagation Matrix splitting

Notes

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Successive over-relaxation

Start with the simplest possible case. Write down what Successive over-relaxation claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Successive over-relaxation before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Successive over-relaxation ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Successive over-relaxation

In research
Successive over-relaxation appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Successive over-relaxation in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Successive over-relaxation is common in secondary-school and first-year university syllabi. It links to neighbouring topics Numerical linear algebra, Relaxation (iterative methods), so understanding it makes those chapters shorter.
In everyday life
Look for Successive over-relaxation outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Successive over-relaxation” →

How to study Successive over-relaxation in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Successive over-relaxation means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Successive over-relaxation out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Successive over-relaxation in simple terms?

In numerical linear algebra, the method of successive over-relaxation (SOR) is a variant of the Gauss–Seidel method for solving a linear system of equations, resulting in faster convergence. A similar method can be used for any slowly converging iterative process.

Why does Successive over-relaxation matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Successive over-relaxation?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Successive over-relaxation.

Tags

  • Numerical linear algebra
  • Relaxation (iterative methods)

Keep exploring