ArticleslgStudy

computer science

Jacobi eigenvalue algorithm

Jacobi eigenvalue algorithm is a computer science 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 eigenvalue algorithm rather than just read about it. In short: In numerical linear algebra, the Jacobi eigenvalue algorithm is an iterative method for the calculation of the eigenvalues and eigenvectors of a real symmetric matrix (a process known as diagonalization). It is named after Carl Gustav Jacob Jacobi, who first proposed the method in 1846, but it only became widely used in the 1950s with the advent of computers.

Key takeaways

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

Reference excerpt

In numerical linear algebra, the Jacobi eigenvalue algorithm is an iterative method for the calculation of the eigenvalues and eigenvectors of a real symmetric matrix (a process known as diagonalization). It is named after Carl Gustav Jacob Jacobi, who first proposed the method in 1846, but it only became widely used in the 1950s with the advent of computers. This algorithm is inherently a dense matrix algorithm: it draws little or no advantage from being applied to a sparse matrix, and it will destroy sparseness by creating fill-in. Similarly, it will not preserve structures such as being banded of the matrix on which it operates.

Description Let S be a symmetric matrix, and G=G(i,j,θ) be a Givens rotation matrix. Then:

S′=G⊤SG is symmetric and similar to S. Furthermore, S′ has entries:

S'ii=c2Sii−2scSij+s2SjjS'jj=s2Sii+2scSij+c2SjjS'ij=S'ji=(c2−s2)Sij+sc(Sii−Sjj)S'ik=S'ki=cSik−sSjkk≠i,jS'jk=S'kj=sSik+cSjkk≠i,jS'kl=Sklk,l≠i,j where s=sin⁡(θ) and c=cos⁡(θ). Since G is orthogonal, S and S′ have the same Frobenius norm ||⋅||F (the square-root sum of squares of all components), however we can choose θ such that Si′j′=0, in which case S′ has a larger sum of squares on the diagonal:

S'ij=cos⁡(2θ)Sij+12sin⁡(2θ)(Sii−Sjj) Set this equal to 0, and rearrange:

tan⁡(2θ)=2SijSjj−Sii if Sjj=Sii

θ=π4 In order to optimize this effect, Sij should be the off-diagonal element with the largest absolute value, called the pivot. The Jacobi eigenvalue method repeatedly performs rotations until the matrix becomes almost diagonal. Then the elements in the diagonal are approximations of the (real) eigenvalues of S.

Convergence If p=Skl is a pivot element, then by definition |Sij|≤|p| for 1≤i,j≤n,i≠j . Let Γ(S)2 denote the sum of squares of all off-diagonal entries of S. Since S has exactly 2N:=n(n−1) off-diagonal elements, we have p2≤Γ(S)2≤2Np2 or 2p2≥Γ(S)2/N . Now Γ(SJ)2=Γ(S)2−2p2. This implies Γ(SJ)2≤(1−1/N)Γ(S)2 or Γ(SJ)≤(1−1/N)1/2Γ(S); that is, the sequence of Jacobi rotations converges at least linearly by a factor (1−1/N)1/2 to a diagonal matrix. A number of N Jacobi rotations is called a sweep; let Sσ denote the result. The previous estimate yields

Γ(Sσ)≤(1−1N)N/2Γ(S); that is, the sequence of sweeps converges at least linearly with a factor ≈ e1/2 . However the following result of Schönhage yields locally quadratic convergence. To this end let S have m distinct eigenvalues λ1,...,λm with multiplicities ν1,...,νm and let d > 0 be the smallest distance of two different eigenvalues. Let us call a number of

NS:=n(n−1)2−∑μ=1m12νμ(νμ−1)≤N Jacobi rotations a Schönhage-sweep. If Ss denotes the result then

Γ(Ss)≤n2−1(γ2d−2γ),γ:=Γ(S) . Thus convergence becomes quadratic as soon as Γ(S)<d2+n2−1

Cost Each Givens rotation can be done in O(n) steps when the pivot element p is known. However the search for p requires inspection of all N ≈ ⁠1/2⁠ n2 off-diagonal elements, which means this search dominates the overall complexity and pushes the computational complexity of a sweep in the classical Jacobi algorithm to O(n4). Competing algorithms attain O(n3) complexity for a full diagonalisation.

Caching row maximums We can reduce the complexity of finding the pivot element from O(N) to O(n) if we introduce an additional index array m1,…,mn−1 with the property that mi is the index of the largest element in row i, (i = 1, ..., n − 1) of the current S. Then the indices of the pivot (k, l) must be one of the pairs (i,mi). Also the updating of the index array can be done in O(n) average-case complexity: First, the maximum entry in the updated rows k and l can be found in O(n) steps. In the other rows i, only the entries in columns k and l change. Looping over these rows, if mi is neither k nor l, it suffices to compare the old maximum at mi to the new entries and update mi if necessary. If mi should be equal to k or l and the corresponding entry decreased during the update, the maximum over row i has to be found from scratch in O(n) complexity. However, this will happen on average only once per rotation. Thus, each rotation has O(n) and one sweep O(n3) average-case complexity, which is equivalent to one matrix multiplication. Additionally the mi must be initialized before the process starts, which can be done in n2 steps. Typically the Jacobi method converges within numerical precision after a small number of sweeps. Note that multiple eigenvalues reduce the number of iterations since NS<N.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Jacobi eigenvalue algorithm

Start with the simplest possible case. Write down what Jacobi eigenvalue algorithm claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, 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 eigenvalue algorithm 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 eigenvalue algorithm 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 eigenvalue algorithm

In research
Jacobi eigenvalue algorithm appears in computer science 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 eigenvalue algorithm 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 eigenvalue algorithm is common in secondary-school and first-year university syllabi. It links to neighbouring topics Numerical linear algebra, so understanding it makes those chapters shorter.
In everyday life
Look for Jacobi eigenvalue algorithm 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 eigenvalue algorithm” →

How to study Jacobi eigenvalue algorithm in 20 minutes

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

Frequently asked questions

What is Jacobi eigenvalue algorithm in simple terms?

In numerical linear algebra, the Jacobi eigenvalue algorithm is an iterative method for the calculation of the eigenvalues and eigenvectors of a real symmetric matrix (a process known as diagonalization). It is named after Carl Gustav Jacob Jacobi, who first proposed the method in 1846, but it only…

Why does Jacobi eigenvalue algorithm matter?

Because it connects several computer science 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 eigenvalue algorithm?

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 eigenvalue algorithm.

Tags

  • Numerical linear algebra

Keep exploring