ArticleslgStudy

science

Romberg's method

Romberg's method is a 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 Romberg's method rather than just read about it. In short: In numerical analysis, Romberg's method is used to estimate the definite integral ∫abf(x)dx by applying Richardson extrapolation repeatedly on the trapezium rule or the rectangle rule (midpoint rule). The estimates generate a triangular array.

Romberg's method — main illustration
Romberg's method — illustration

Key takeaways

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

Reference excerpt

In numerical analysis, Romberg's method is used to estimate the definite integral ∫abf(x)dx by applying Richardson extrapolation repeatedly on the trapezium rule or the rectangle rule (midpoint rule). The estimates generate a triangular array. Romberg's method is a Newton–Cotes formula – it evaluates the integrand at equally spaced points. The integrand must have continuous derivatives, though fairly good results may be obtained if only a few derivatives exist. If it is possible to evaluate the integrand at unequally spaced points, then other methods such as Gaussian quadrature and Clenshaw–Curtis quadrature are generally more accurate. The method is named after Werner Romberg, who published the method in 1955.

Method Using hn=(b−a)2n+1, the method can be inductively defined by R(0,0)=h0(f(a)+f(b))R(n,0)=12R(n−1,0)+2hn∑k=12n−1f(a+(2k−1)hn−1)R(n,m)=R(n,m−1)+14m−1(R(n,m−1)−R(n−1,m−1))=14m−1(4mR(n,m−1)−R(n−1,m−1)) where n≥m and m≥1. Observe that the first two equations correspond to the first column, and these are the formulas associated to the compound trapezoidal rule. In big O notation, the error for R(n, m) is: O(hn2m+2). The zeroth extrapolation, R(n, 0), is equivalent to the trapezoidal rule with 2n + 1 points; the first extrapolation, R(n, 1), is equivalent to Simpson's rule with 2n + 1 points. The second extrapolation, R(n, 2), is equivalent to Boole's rule with 2n + 1 points. The further extrapolations differ from Newton-Cotes formulas. In particular further Romberg extrapolations expand on Boole's rule in very slight ways, modifying weights into ratios similar as in Boole's rule. In contrast, further Newton-Cotes methods produce increasingly differing weights, eventually leading to large positive and negative weights. This is indicative of how large degree interpolating polynomial Newton-Cotes methods fail to converge for many integrals, while Romberg integration is more stable. By labelling our O(h2) approximations as A0(h2n) instead of R(n,0), we can perform Richardson extrapolation with the error formula defined below: ∫abf(x)dx=A0(h2n)+a0(h2n)2+a1(h2n)4+a2(h2n)6+⋯ Once we have obtained our O(h2(m+1)) approximations Am(h2n), we can label them as R(n,m). When function evaluations are expensive, it may be preferable to replace the polynomial interpolation of Richardson with the rational interpolation proposed by Bulirsch & Stoer (1967).

A geometric example To estimate the area under a curve the trapezoid rule is applied first to one-piece, then two, then four, and so on.

After trapezoid rule estimates are obtained, Richardson extrapolation is applied.

For the first iteration the two piece and one piece estimates are used in the formula ⁠4 × (more accurate) − (less accurate)/3⁠. The same formula is then used to compare the four piece and the two piece estimate, and likewise for the higher estimates For the second iteration the values of the first iteration are used in the formula ⁠16 × (more accurate) − (less accurate)/15⁠ The third iteration uses the next power of 4: ⁠64 × (more accurate) − (less accurate)/63⁠ on the values derived by the second iteration. The pattern is continued until there is one estimate.

Example As an example, the Gaussian function is integrated from 0 to 1, i.e. the error function erf(1) ≈ 0.842700792949715. The triangular array is calculated row by row and calculation is terminated if the two last entries in the last row differ less than 10−8.

0.77174333 0.82526296 0.84310283 0.83836778 0.84273605 0.84271160 0.84161922 0.84270304 0.84270083 0.84270066 0.84243051 0.84270093 0.84270079 0.84270079 0.84270079

The result in the lower right corner of the triangular array is accurate to the digits shown. It is remarkable that this result is derived from the less accurate approximations obtained by the trapezium rule in the first column of the triangular array.

Implementation Here is an example of a computer implementation of the Romberg method (in the C programming language):

Here is an implementation of the Romberg method (in the Python programming language):

References

Citations

Bibliography

External links ROMBINT – code for MATLAB (author: Martin Kacenak) Free online integration tool using Romberg, Fox–Romberg, Gauss–Legendre and other numerical methods SciPy implementation of Romberg's method Romberg.jl — Julia implementation (supporting arbitrary factorizations, not just 2n+1 points)

Illustrations

Romberg's method: Two-piece
Two-piece
Romberg's method: Four-piece
Four-piece
Romberg's method: Eight-piece
Eight-piece

Worked examples

Example 1 — a first encounter with Romberg's method

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

In research
Romberg's method appears in 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 Romberg's 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
Romberg's method is common in secondary-school and first-year university syllabi. It links to neighbouring topics Numerical integration, so understanding it makes those chapters shorter.
In everyday life
Look for Romberg's 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 “Romberg's method” →

How to study Romberg's method in 20 minutes

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

Frequently asked questions

What is Romberg's method in simple terms?

In numerical analysis, Romberg's method is used to estimate the definite integral ∫abf(x)dx by applying Richardson extrapolation repeatedly on the trapezium rule or the rectangle rule (midpoint rule). The estimates generate a triangular array.

Why does Romberg's method matter?

Because it connects several 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 Romberg's 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 Romberg's method.

Tags

  • Numerical integration

Keep exploring