Part 19: Trapezoidal Rule for UPSC ISS: Formula, Error Bound, and the Degree 1 Exactness

Practice on the go. Get our Android app.
Install App

Welcome back to Part 19 of Module 5, updated for the UPSC ISS 2026 to 2027 cycle. In Part 18 we met the mother of all integration rules and watched n=1n = 1 give birth to its first child. Today we study that child in full depth: the Trapezoidal Rule, and more importantly, the concept UPSC actually traps students on, its error bound.

The composite formula is I=h2[(y0+yn)+2(y1++yn1)]I = \dfrac{h}{2}\left[(y_0 + y_n) + 2(y_1 + \dots + y_{n-1})\right]. The rule assumes straight lines between points, carries a local error of order h3h^3 per strip and a global error of order h2h^2 overall, and is exact only for polynomials of degree one.

Exam context as always: 80 questions, 200 marks, 2 hours, 2.5 marks per question, about 0.83 deducted per wrong answer. Error bound theory questions from this exact page appeared as recently as the 2025 cycle.

This post is Part 19 of the Numerical Calculus Guide (Module 5), inside our UPSC ISS Numerical Analysis Complete Guide. Roadmap at the UPSC ISS hub.

The Story of Rahul and the Riverbank Property

Rahul, a government civil engineer, must compute the area of land bordered by a straight highway on one side and a winding river on the other. No formula of length times width can help with a curvy boundary.

So Rahul walks the highway and measures the land’s width at equal 10 metre intervals. Then he stretches straight ropes from each width point to the next, replacing the curvy riverbank with straight segments. Each strip between two widths and a rope is a trapezium. He sums their areas, and the total is his estimate. That physical act is the Trapezoidal Rule.

Have you ever used a straight line approximation to measure something curved? Share your hack in the comments.
0
Have you ever used a straight line approximation to measure something curved? Share your hack in the comments.x

The Core Formula

Dividing the range from x0x_0​ to xnx_n​ into nn equal sub intervals of width hh:I=h2[(y0+yn)+2(y1+y2++yn1)]I = \frac{h}{2}\left[(y_0 + y_n) + 2(y_1 + y_2 + \dots + y_{n-1})\right]

In simple words: half the interval gap, times the sum of the first and last entries plus twice the sum of all the middle entries.

A tiny worked check: for y(0)=1y(0) = 1, y(1)=2y(1) = 2, y(2)=5y(2) = 5 with h=1h = 1, the rule gives 12[(1+5)+2(2)]=5\dfrac{1}{2}\left[(1 + 5) + 2(2)\right] = 5.

The Geometric Assumption and the Freedom of Intervals

The fundamental assumption: between any two consecutive points, the function is a linear polynomial, of the form y=a+bxy = a + bx. Since a straight line needs only 2 points, the rule accepts any number of equal sub intervals. No even number condition, no multiple of three condition. That freedom is itself a tested fact.

The Trap: Local Versus Global Error

Rahul’s ropes miss area where the river bulges outward and add area where it curves inward. That mismatch is the truncation error, and it comes in two flavours.

Local error, one strip:Elocal=h312f(ξ)E_{\text{local}} = -\frac{h^3}{12}\,f”(\xi)

Global error, the whole range from a to b:Eglobal=(ba)h212f(ξ)E_{\text{global}} = -\frac{(b – a)\,h^2}{12}\,f”(\xi)

The local error is of order h3h^3; adding up nn strips costs one power of hh, leaving the global error at order h2h^2, written O(h2)O(h^2).

Students regularly confuse local h cubed with global h squared. What trick will you use to remember that global is h squared? Tell us.
0
Students regularly confuse local h cubed with global h squared. What trick will you use to remember that global is h squared? Tell us.x

StatChakravyuh Pro Tips

  1. The degree 1 exactness hack. The error carries ff”, the second derivative. If the integrand is linear, like y=5x+3y = 5x + 3, its second derivative is exactly zero, so the error vanishes and the rule is perfectly exact. Exact for degree one, and only degree one.
  2. The sub interval freedom answer. Asked how the interval must be divided, the answer is any finitely many sub intervals of equal size.
  3. The accuracy ranking. Because straight lines approximate curves crudely, the Trapezoidal Rule is generally the least accurate member of the Newton Cotes family. Simpson’s rules almost always beat it.

Solved PYQ Masterclass

PYQ (UPSC ISS 2025 cycle, as recorded in our PYQ archive): Consider the statements:

I. The Trapezoidal rule for evaluating abf(x)dx\int_a^b f(x)\,dx gives an exact result for a linear polynomial. II. The Trapezoidal rule for evaluating abf(x)dx\int_a^b f(x)\,dx gives an exact result for a quadratic polynomial.

Which of the above is or are correct?

The 5 second logic. The error term contains ff”. For the error to vanish, the second derivative must be identically zero, which happens only for linear polynomials. A quadratic has a constant, non zero second derivative, so a residual error survives. Statement I is true; Statement II is false.

Final Answer: Statement I only. Two and a half marks, zero numbers computed.

Common Traps to Avoid

Trap 1: Quoting the local error order for a global error question, or the reverse. Local is h3h^3, global is h2h^2.

Trap 2: Granting the rule exactness for quadratics. It never has it; that is Simpson’s territory in Part 20.

Trap 3: Inventing an even interval condition. That constraint belongs to Simpson’s 1/3, not to the Trapezoidal rule.

Frequently Asked Questions

  1. What is the Trapezoidal Rule used for?

    It approximates the area under a curve by dividing it into strips whose tops are straight line segments, forming trapeziums whose areas are summed.

  2. How many sub intervals does the rule need?

    Any number of equal sub intervals. Unlike Simpson’s 1/3 rule, there is no even number restriction.

  3. What is the geometric assumption of the rule?

    That the function between any two consecutive points is a linear polynomial, a straight line.

  4. What is the order of the global error?

    O(h2)O(h^2), with the expression (ba)h212f(ξ)-\dfrac{(b-a)h^2}{12}f”(\xi). The local error of a single strip is O(h3)O(h^3).

  5. When is the Trapezoidal Rule perfectly exact?

    Only when the integrand is a polynomial of degree one, because only then is the second derivative in the error term identically zero.

Take the Next Step with StatChakravyuh

Join the Free UPSC ISS WhatsApp Community. All parts of this series plus the Module 5 Practice PDF with 60 MCQs arrive there first. 👉 Join the WhatsApp Community now

Enroll in the Free UPSC ISS Course. Structured lessons and practice sets on the Practice Improve Repeat system, completely free. 👉 Enroll in the Free Course

Coming up in Part 20, the most important part of this module: Simpson’s 1/3 Rule and the famous Degree 3 Exactness trick that solves PYQs in 5 seconds.

Help other aspirants
UPSC ISS 2027 · Complete Chakravyuh

Stop buying tests one by one. Get all 6 papers in one package.

Complete Chakravyuh is the complete UPSC ISS test series for 2027. More than 6000 questions across all 6 papers, with every descriptive answer evaluated within 3 days. Practice. Improve. Repeat.

6000+Questions
All 6Papers Covered
6 + 1Courses in One
3 DaysAnswer Evaluation
₹7,499 ₹15,999 Regular price till 30 September 2026

Have a doubt or suggestion? Message us on WhatsApp

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
0
Got a similar doubt? Discuss here.x
()
x