HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Notes
  2. /Numerical Integration: Quick Revision
Mathematics

Numerical Integration: Quick Revision

A brief note on the trapezium, mid-ordinate and Simpson rules, their errors and Richardson's improvement, with the hyperbolic substitutions for roots of quadratics.

StemPy LabWritten by StemPy Lab
Log in to save

A brief note on Numerical Integration. Read it before a test. Try each question at the end before you open its answer.

The three rules

  • Trapezium: Tn=h2[ends+2×inner]T_n = \tfrac{h}{2}[\text{ends} + 2 \times \text{inner}]Tn​=2h​[ends+2×inner].
  • Mid-ordinate: Mn=h×M_n = h \timesMn​=h× (sum of the mid-ordinates).
  • Simpson, nnn even: Sn=h3[ends+4×odd+2×even]S_n = \tfrac{h}{3}[\text{ends} + 4 \times \text{odd} + 2 \times \text{even}]Sn​=3h​[ends+4×odd+2×even].

Errors

  • Shape: for f′′>0f'' > 0f′′>0, TTT is too big and MMM too small.
  • Trapezium bound: (b−a)h2K12\dfrac{(b - a)h^2 K}{12}12(b−a)h2K​, with ∣f′′∣≤K|f''| \le K∣f′′∣≤K.
  • Halving hhh: TTT and MMM errors fall to a quarter, Simpson's to a sixteenth.
  • Simpson is exact for cubics.
  • Richardson: 4T2n−Tn3=S2n=2Mn+Tn3\dfrac{4T_{2n} - T_n}{3} = S_{2n} = \dfrac{2M_n + T_n}{3}34T2n​−Tn​​=S2n​=32Mn​+Tn​​.

Hyperbolic substitutions

  • x2+a2\sqrt{x^2 + a^2}x2+a2​: put x=asinh⁡ux = a\sinh ux=asinhu.
  • x2−a2\sqrt{x^2 - a^2}x2−a2​: put x=acosh⁡ux = a\cosh ux=acoshu.
  • First result: ∫dxx2+a2=sinh⁡−1xa+C\int\dfrac{dx}{\sqrt{x^2 + a^2}} = \sinh^{-1}\dfrac{x}{a} + C∫x2+a2​dx​=sinh−1ax​+C.
  • Second result: ∫dxx2−a2=cosh⁡−1xa+C\int\dfrac{dx}{\sqrt{x^2 - a^2}} = \cosh^{-1}\dfrac{x}{a} + C∫x2−a2​dx​=cosh−1ax​+C.
  • A first-degree term: complete the square first.

A worked example

Estimate ∫01dx1+x\int_0^1\dfrac{dx}{1 + x}∫01​1+xdx​ by Simpson's rule with 222 strips.

  1. Ordinates. 111, 23\tfrac{2}{3}32​, 12\tfrac{1}{2}21​, with h=12h = \tfrac{1}{2}h=21​.
  2. Rule. 16(1+83+12)=2536≈0.6944\tfrac{1}{6}\left(1 + \tfrac{8}{3} + \tfrac{1}{2}\right) = \tfrac{25}{36} \approx 0.694461​(1+38​+21​)=3625​≈0.6944.
  3. Compare. The exact value is ln⁡2\ln 2ln2, so the error is about 0.00130.00130.0013.

Practice with new numbers

A program to try

The program prints the three rules side by side for ∫011+x3 dx\int_0^1 \sqrt{1 + x^3}\,dx∫01​1+x3​dx, an integral with no simple antiderivative.

Read it first. Then run it. Which column settles first?

1. Change the function to x ** 3. Which column is exact from the start?

Mistakes to avoid

  • Simpson with an odd number of strips.
  • h2\tfrac{h}{2}2h​ in Simpson's rule in place of h3\tfrac{h}{3}3h​.
  • The wrong family: plus under the root means sinh.
  • Old limits after a shift or a substitution.

Check yourself

  1. Find T2T_2T2​ for ∫02x2 dx\int_0^2 x^2\,dx∫02​x2dx.
  1. Why is Simpson's rule exact for x3x^3x3?
  1. With T4=0.70T_4 = 0.70T4​=0.70 and T8=0.69T_8 = 0.69T8​=0.69, give Richardson's estimate.
  1. Find ∫dxx2+49\int\dfrac{dx}{\sqrt{x^2 + 49}}∫x2+49​dx​.
  1. Which substitution suits x2−16\sqrt{x^2 - 16}x2−16​?

Sources

  • OpenStax, Calculus Volume 2, Section 3.6, Numerical Integration.
← All Notes
← Numerical Solution of Equations: Quick RevisionElevation, Depression and Bearings: Quick Revision →
More onNumerical Methods

Discussion (0)

Log in to join the discussion.

Loading…

On this page

  1. The three rules
  2. Errors
  3. Hyperbolic substitutions
  4. A worked example
  5. Practice with new numbers
  6. A program to try
  7. Mistakes to avoid
  8. Check yourself
  9. Sources

Goes with the lesson

  1. Integrals by hyperbolic substitutionNumerical Integration and Hyperbolic Substitutions

More notes on this topic

  1. Numerical Solution of Equations: Quick Revision
All notes on this topic →