ArticleslgStudy

chemistry

DIIS

DIIS is a chemistry 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 DIIS rather than just read about it. In short: DIIS (direct inversion in the iterative subspace or direct inversion of the iterative subspace), also known as Pulay mixing, is a technique for extrapolating the solution to a set of linear equations by directly minimizing an error residual (e.g. a Newton–Raphson step size) with respect to a linear combination of known sample vectors. DIIS was developed by Peter Pulay in the field of computational quantum chemistry…

Key takeaways

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

Reference excerpt

DIIS (direct inversion in the iterative subspace or direct inversion of the iterative subspace), also known as Pulay mixing, is a technique for extrapolating the solution to a set of linear equations by directly minimizing an error residual (e.g. a Newton–Raphson step size) with respect to a linear combination of known sample vectors. DIIS was developed by Peter Pulay in the field of computational quantum chemistry with the intent to accelerate and stabilize the convergence of the Hartree–Fock self-consistent field method. At a given iteration, the approach constructs a linear combination of approximate error vectors from previous iterations. The coefficients of the linear combination are determined so to best approximate, in a least squares sense, the null vector. The newly determined coefficients are then used to extrapolate the function variable for the next iteration. The method has been shown to be equivalent to the pre-existing Anderson acceleration, and to reduce to GMRES in the linear case.

Details At each iteration, an approximate error vector, ei, corresponding to the variable value, pi is determined. After sufficient iterations, a linear combination of m previous error vectors is constructed

𝐞m+1=∑i=1m ci𝐞i. The DIIS method seeks to minimize the norm of em+1 under the constraint that the coefficients sum to one. The reason why the coefficients must sum to one can be seen if we write the trial vector as the sum of the exact solution (pf) and an error vector. In the DIIS approximation, we get:

𝐩=∑ici(𝐩f+𝐞i)=𝐩f∑ici+∑ici𝐞i We minimize the second term while it is clear that the sum coefficients must be equal to one if we want to find the exact solution. The minimization is done by a Lagrange multiplier technique. Introducing an undetermined multiplier λ, a Lagrangian is constructed as

L=‖𝐞m+1‖2−2λ(∑i ci−1),=∑ijcjBjici−2λ(∑i ci−1), where Bij=⟨𝐞j,𝐞i⟩. Equating zero to the derivatives of L with respect to the coefficients and the multiplier leads to a system of (m + 1) linear equations to be solved for the m coefficients (and the Lagrange multiplier).

[B11B12B13...B1m−1B21B22B23...B2m−1B31B32B33...B3m−1⋮⋮⋮⋮⋱⋮Bm1Bm2Bm3...Bmm−1111...10][c1c2c3⋮cmλ]=[000⋮01] Moving the minus sign to λ, results in an equivalent symmetric problem.

[B11B12B13...B1m1B21B22B23...B2m1B31B32B33...B3m1⋮⋮⋮⋮⋱⋮Bm1Bm2Bm3...Bmm1111...10][c1c2c3⋮cm−λ]=[000⋮01] The coefficients are then used to update the variable as

𝐩m+1=∑i=1mci𝐩i.

References

Literature Garza, Alejandro J.; Scuseria, Gustavo E. (2012). "Comparison of self-consistent field convergence acceleration techniques" (PDF). Journal of Chemical Physics. 173 (5): 054110. Bibcode:2012JChPh.137e4110G. doi:10.1063/1.4740249. hdl:1911/94152. PMID 22894335. Rohwedder, Thorsten; Schneider, Reinhold (2011). "An analysis for the DIIS acceleration method used in quantum chemistry calculations". Journal of Mathematical Chemistry. 49 (9): 1889. doi:10.1007/s10910-011-9863-y. S2CID 51759476.

See also GMRES Anderson acceleration

External links The Mathematics of DIIS

Worked examples

Example 1 — a first encounter with DIIS

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

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

How to study DIIS in 20 minutes

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

Frequently asked questions

What is DIIS in simple terms?

DIIS (direct inversion in the iterative subspace or direct inversion of the iterative subspace), also known as Pulay mixing, is a technique for extrapolating the solution to a set of linear equations by directly minimizing an error residual (e.g. a Newton–Raphson step size) with respect to a linear…

Why does DIIS matter?

Because it connects several chemistry 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 DIIS?

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 DIIS.

Tags

  • Computational chemistry
  • Numerical linear algebra
  • Quantum chemistry

Keep exploring