ArticleslgStudy

mathematics

Jacobi method

Jacobi method 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 Jacobi method rather than just read about it. In short: In numerical linear algebra, the Jacobi method (a.k.a. the Jacobi iteration method) is an iterative algorithm for determining the solutions of a strictly diagonally dominant system of linear equations. Each diagonal element is solved for, and an approximate value is plugged in.

Key takeaways

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

Reference excerpt

In numerical linear algebra, the Jacobi method (a.k.a. the Jacobi iteration method) is an iterative algorithm for determining the solutions of a strictly diagonally dominant system of linear equations. Each diagonal element is solved for, and an approximate value is plugged in. The process is then iterated until it converges. This algorithm is a stripped-down version of the Jacobi transformation method of matrix diagonalization. The method is named after Carl Gustav Jacob Jacobi.

Description Let A𝐱=𝐛 be a square system of n linear equations, where:A=[a11a12⋯a1na21a22⋯a2n⋮⋮⋱⋮an1an2⋯ann],𝐱=[x1x2⋮xn],𝐛=[b1b2⋮bn]. When A and 𝐛 are known, and 𝐱 is unknown, we can use the Jacobi method to approximate 𝐱. The vector 𝐱(0) denotes our initial guess for 𝐱 (often 𝐱i(0)=0 for i=1,2,...,n). We denote 𝐱(k) as the k-th approximation or iteration of 𝐱, and 𝐱(k+1) is the next (or k+1) iteration of 𝐱.

Matrix-based formula Then A can be decomposed into a diagonal component D, a lower triangular part L and an upper triangular part U:A=D+L+UwhereD=[a110⋯00a22⋯0⋮⋮⋱⋮00⋯ann] and L+U=[0a12⋯a1na210⋯a2n⋮⋮⋱⋮an1an2⋯0].The solution is then obtained iteratively via

𝐱(k+1)=D−1(𝐛−(L+U)𝐱(k)).

Element-based formula The element-based formula for each row i is thus:xi(k+1)=1aii(bi−∑j≠iaijxj(k)),i=1,2,…,n.The computation of xi(k+1) requires each element in 𝐱(k) except itself. Unlike the Gauss–Seidel method, we cannot overwrite xi(k) with xi(k+1), as that value will be needed by the rest of the computation. The minimum amount of storage is two vectors of size n.

Algorithm Input: initial guess x(0) to the solution, (diagonal dominant) matrix A, right-hand side vector b, convergence criterion Output: solution when convergence is reached Comments: pseudocode based on the element-based formula above

k = 0 while convergence not reached do for i := 1 step until n do σ = 0 for j := 1 step until n do if j ≠ i then σ = σ + aij xj(k) end end xi(k+1) = (bi − σ) / aii end increment k end

Convergence The standard convergence condition (for any iterative method) is when the spectral radius of the iteration matrix is less than 1:

ρ(D−1(L+U))<1. A sufficient (but not necessary) condition for the method to converge is that the matrix A is strictly or irreducibly diagonally dominant. Strict row diagonal dominance means that for each row, the absolute value of the diagonal term is greater than the sum of absolute values of other terms:

|aii|>∑j≠i|aij|. The Jacobi method sometimes converges even if these conditions are not satisfied. Note that the Jacobi method does not converge for every symmetric positive-definite matrix. For example, A=(29212611115)⇒D−1(L+U)=(022912913016550)⇒ρ(D−1(L+U))≈1.0661.

Examples

Example question A linear system of the form Ax=b with initial estimate x(0) is given by

A=[2157], b=[1113]andx(0)=[11]. We use the equation x(k+1)=D−1(b−(L+U)x(k)), described above, to estimate x. First, we rewrite the equation in a more convenient form D−1(b−(L+U)x(k))=Tx(k)+C, where T=−D−1(L+U) and C=D−1b. From the known values D−1=[1/2001/7], L=[0050]andU=[0100]. we determine T=−D−1(L+U) as T=[1/2001/7]{[00−50]+[0−100]}=[0−1/2−5/70]. Further, C is found as C=[1/2001/7][1113]=[11/213/7]. With T and C calculated, we estimate x as x(1)=Tx(0)+C: x(1)=[0−1/2−5/70][11]+[11/213/7]=[5.08/7]≈[51.143]. The next iteration yields x(2)=[0−1/2−5/70][5.08/7]+[11/213/7]=[69/14−12/7]≈[4.929−1.714]. This process is repeated until convergence (i.e., until ‖Ax(n)−b‖ is small). The solution after 25 iterations is

x=[7.111−3.222].

Example question 2 Suppose we are given the following linear system:

10x1−x2+2x3=6,−x1+11x2−x3+3x4=25,2x1−x2+10x3−x4=−11,3x2−x3+8x4=15. If we choose (0, 0, 0, 0) as the initial approximation, then the first approximate solution is given by x1=(6+0−(2∗0))/10=0.6,x2=(25+0+0−(3∗0))/11=25/11=2.2727,x3=(−11−(2∗0)+0+0)/10=−1.1,x4=(15−(3∗0)+0)/8=1.875. Using the approximations obtained, the iterative procedure is repeated until the desired accuracy has been reached. The following are the approximated solutions after five iterations.

The exact solution of the system is (1, 2, −1, 1).

Python example

Weighted Jacobi method The weighted Jacobi iteration uses a parameter ω to compute the iteration as

𝐱(k+1)=ωD−1(𝐛−(L+U)𝐱(k))+(1−ω)𝐱(k) with ω=2/3 being the usual choice. From the relation L+U=A−D, this may also be expressed as

𝐱(k+1)=ωD−1𝐛+(I−ωD−1A)𝐱(k)=𝐱(k)+ωD−1𝐫(k), where 𝐫(k)=𝐛−A𝐱(k) is the algebraic residual at iteration k.

Convergence in the symmetric positive definite case If the system matrix A is symmetric positive-definite, one can show convergence. Let C=Cω=I−ωD−1A be the iteration matrix. Then, convergence is guaranteed for

ρ(Cω)<1⟺0<ω<2λmax(D−1A), where λmax is the maximal eigenvalue. The spectral radius can be minimized for a particular choice of ω=ωopt as follows minωρ(Cω)=ρ(Cωopt)=1−2κ(D−1A)+1forωopt:=2λmin(D−1A)+λmax(D−1A), where κ is the matrix condition number.

See also Gauss–Seidel method Successive over-relaxation Iterative method § Linear systems Gaussian Belief Propagation Matrix splitting

References

External links This article incorporates text from the article Jacobi_method on CFD-Wiki that is under the GFDL license. Black, Noel; Moore, Shirley & Weisstein, Eric W. "Jacobi method". MathWorld. Jacobi Method from www.math-linux.com

Worked examples

Example 1 — a first encounter with Jacobi method

Start with the simplest possible case. Write down what Jacobi method 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 Jacobi method 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 Jacobi method 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 Jacobi method

In research
Jacobi method 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 Jacobi method 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
Jacobi method 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 Jacobi method 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 “Jacobi method” →

How to study Jacobi method in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Jacobi method 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 Jacobi method out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Jacobi method in simple terms?

In numerical linear algebra, the Jacobi method (a.k.a. the Jacobi iteration method) is an iterative algorithm for determining the solutions of a strictly diagonally dominant system of linear equations. Each diagonal element is solved for, and an approximate value is plugged in.

Why does Jacobi method 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 Jacobi method?

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 Jacobi method.

Tags

  • Numerical linear algebra
  • Relaxation (iterative methods)

Keep exploring