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. Problems
  2. /The integral ∫₀¹ 4/(1 + x²) dx is exactly π, because d/dx tan⁻¹ x = 1/(1 + x²)…
AdvancedMathematicsHigh School (11–12)Numerical MethodsNumericalOlympiad
+1 more exams
A-Level
OlympiadA-Level

The integral ∫₀¹ 4/(1 + x²) dx is exactly π, because d/dx tan⁻¹ x = 1/(1 + x²)…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

The integral ∫0141+x2 dx\int_0^1 \dfrac{4}{1 + x^2}\,dx∫01​1+x24​dx is exactly π\piπ, because ddxtan⁡−1x=11+x2\dfrac{d}{dx}\tan^{-1} x = \dfrac{1}{1 + x^2}dxd​tan−1x=1+x21​.

Find T2T_2T2​ and T4T_4T4​ for this integral by the trapezium rule, to four decimal places. Use Richardson's improvement 4T4−T23\dfrac{4T_4 - T_2}{3}34T4​−T2​​, and give it to five decimal places. Compare the three errors with π\piπ, and say which rule the improved value really is.

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

Need a reminder? The key ideaShowHide

Simpson's rule, nnn even:

Sn=h3[ends+4(odd)+2(even)].\displaystyle S_n = \tfrac{h}{3}\big[\text{ends} + 4(\text{odd}) + 2(\text{even})\big].Sn​=3h​[ends+4(odd)+2(even)].

It is exact for cubics, and its error is −(b−a)h4180f′′′′(ξ)-\dfrac{(b - a)h^4}{180}f''''(\xi)−180(b−a)h4​f′′′′(ξ). Also S2n=4T2n−Tn3=2Mn+Tn3S_{2n} = \dfrac{4T_{2n} - T_n}{3} = \dfrac{2M_n + T_n}{3}S2n​=34T2n​−Tn​​=32Mn​+Tn​​.

The worked solution

Check an answer or open a hint to unlock the worked solution.

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Step 1. T2T_2T2​. h=0.5h = 0.5h=0.5: T2=0.52[4+2+2(3.2)]=3.1T_2 = \tfrac{0.5}{2}\big[4 + 2 + 2(3.2)\big] = 3.1T2​=20.5​[4+2+2(3.2)]=3.1.

Step 2. T4T_4T4​. h=0.25h = 0.25h=0.25, with inner ordinates 6417≈3.7647\tfrac{64}{17} \approx 3.76471764​≈3.7647, 3.23.23.2 and 6425=2.56\tfrac{64}{25} = 2.562564​=2.56. So T4=0.125[6+2(9.5247)]≈3.1312T_4 = 0.125\big[6 + 2(9.5247)\big] \approx 3.1312T4​=0.125[6+2(9.5247)]≈3.1312.

Step 3. The improvement. 4×3.13118−3.13≈3.14157\dfrac{4 \times 3.13118 - 3.1}{3} \approx 3.1415734×3.13118−3.1​≈3.14157.

Step 4. The errors. π≈3.141593\pi \approx 3.141593π≈3.141593. The errors are about 0.0420.0420.042, 0.0100.0100.010 and 0.000020.000020.00002. The improved value is Simpson's rule with 444 strips.

Check. The error of T4T_4T4​ is about a quarter of that of T2T_2T2​, as the h2h^2h2 rule says.

Answer: T2=3.1T_2 = 3.1T2​=3.1, T4≈3.1312T_4 \approx 3.1312T4​≈3.1312, improved ≈3.14157\approx 3.14157≈3.14157, which is S4S_4S4​.

Log in to save this for later
← All Problems
← Prove that Simpson's rule with 2 strips is exact for every cubic f(x) = A + Bx + Cx² + Dx³ on [-h…Use the substitution x = 3 sinh u to find ∫₀⁴ dx/(√(x² + 9))… →
More onNumerical Methods

Discussion (0)

Log in to join the discussion.

Loading…

Learn it in

  1. Simpson's rule and error estimatesNumerical Integration and Hyperbolic Substitutions

More on this topic

  1. Prove that Simpson's rule with 2 strips is exact for every cubic f(x) = A + Bx + Cx² + Dx³ on [-h…Advanced
  2. A hydrologist measures the depth of a river at points 2 m apart across a channel 12 m wide: Use…Hard
  3. An engineer must find ∫₁³ ln x dx with an error of less than 0.0005, and wants to know how much…Hard
Let f'' > 0 on [a, b]. Prove that on one strip, M₁ < ∫aᵇ f dx < T₁…Advanced
  • A test driver starts from rest and records the speed of a car every 10 s for one minute: Use the…Hard
  • All problems on this topic →