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. /An engineer must find ∫₁³ ln x dx with an error of less than 0.0005, and wants to know how much…
HardMathematicsHigh School (11–12)Numerical MethodsNumericalOlympiad
+1 more exams
A-Level
OlympiadA-Level

An engineer must find ∫₁³ ln x dx with an error of less than 0.0005, and wants to know how much…

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.

An engineer must find ∫13ln⁡x dx\int_1^3 \ln x\,dx∫13​lnxdx with an error of less than 0.00050.00050.0005, and wants to know how much work each rule needs.

First find the exact value by integration by parts, to four decimal places. Then use the error bounds, with the largest value of ∣f′′(x)∣|f''(x)|∣f′′(x)∣ on [1,3][1, 3][1,3]. Find the least number of strips that guarantees the accuracy for the trapezium rule, and then for the mid-ordinate rule. Explain why the bound may ask for more strips than are really needed.

Check your answer

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

Need a reminder? The key ideaShowHide

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. The exact value. [xln⁡x−x]13=3ln⁡3−3+1=3ln⁡3−2≈1.2958\left[x\ln x - x\right]_1^3 = 3\ln 3 - 3 + 1 = 3\ln 3 - 2 \approx 1.2958[xlnx−x]13​=3ln3−3+1=3ln3−2≈1.2958.

Step 2. The bound on f′′f''f′′. ∣f′′(x)∣=1x2≤1|f''(x)| = \dfrac{1}{x^2} \le 1∣f′′(x)∣=x21​≤1 on [1,3][1, 3][1,3].

Step 3. The trapezium rule. 2h212<0.0005\dfrac{2h^2}{12} < 0.0005122h2​<0.0005 gives h2<0.003h^2 < 0.003h2<0.003 and h<0.0548h < 0.0548h<0.0548. Then n=2h>36.5n = \dfrac{2}{h} > 36.5n=h2​>36.5, so 373737 strips.

Step 4. The mid-ordinate rule. 2h224<0.0005\dfrac{2h^2}{24} < 0.0005242h2​<0.0005 gives h2<0.006h^2 < 0.006h2<0.006, h<0.0775h < 0.0775h<0.0775 and n>25.8n > 25.8n>25.8, so 262626 strips.

Step 5. Why so many. The bound uses the largest ∣f′′∣|f''|∣f′′∣, which is reached only at x=1x = 1x=1. Over most of the interval ∣f′′∣|f''|∣f′′∣ is much smaller, so the true error is smaller than the bound.

Answer: exact ≈1.2958\approx 1.2958≈1.2958; 373737 strips for the trapezium rule and 262626 for the mid-ordinate rule.

Log in to save this for later
← All Problems
← Let f'' > 0 on [a, b]. Prove that on one strip, M₁ < ∫aᵇ f dx < T₁…A hydrologist measures the depth of a river at points 2 m apart across a channel 12 m wide: Use… →
More onNumerical Methods

Discussion (0)

Log in to join the discussion.

Loading…

Learn it in

  1. The trapezium and mid-ordinate rulesNumerical Integration and Hyperbolic Substitutions

More on this topic

  1. The integral ∫₀¹ 4/(1 + x²) dx is exactly π, because d/dx tan⁻¹ x = 1/(1 + x²)…Advanced
  2. Prove that Simpson's rule with 2 strips is exact for every cubic f(x) = A + Bx + Cx² + Dx³ on [-h…Advanced
  3. A hydrologist measures the depth of a river at points 2 m apart across a channel 12 m wide: Use…Hard

With nnn strips of width hhh:

Tn=h2[y0+yn+2(inner)],\displaystyle T_n = \tfrac{h}{2}\big[y_0 + y_n + 2(\text{inner})\big],Tn​=2h​[y0​+yn​+2(inner)],
Mn=h[sum of mid-ordinates].\displaystyle M_n = h\big[\text{sum of mid-ordinates}\big].Mn​=h[sum of mid-ordinates].

For f′′>0f'' > 0f′′>0, TTT is too big and MMM too small. The trapezium error is at most (b−a)h2K12\dfrac{(b - a)h^2K}{12}12(b−a)h2K​ when ∣f′′∣≤K|f''| \le K∣f′′∣≤K; the mid-ordinate bound has 242424 in place of 121212.

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 →