Finding Area Under Curve: Rectangles vs Trapezia

Click For Summary

Discussion Overview

The discussion revolves around the comparison of two numerical methods for finding the area under a curve: the trapezium rule and the rectangle rule. Participants explore the conditions under which one method might be more effective than the other, considering both theoretical and practical implications.

Discussion Character

  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants suggest that the rectangle rule, specifically using the height at the midpoint, could potentially yield better results than the trapezium rule.
  • Others question whether the advantages of using the midpoint height are negated by the values on either side of the interval.
  • One participant argues that the rectangle method is a zero'th order approximation while the trapezium method is a first order approximation, implying a fundamental difference in their effectiveness.
  • A simple example is provided where the integral of x^2 from 0 to 1 is evaluated, showing that the midpoint estimate is slightly better than the trapezium estimate.
  • Another participant posits that the effectiveness of each method may depend on the type of curve being analyzed, suggesting that a mathematical examination of the curve is necessary to determine which method is superior.
  • References to error analysis in numerical methods are mentioned, indicating that the discussion includes considerations of the mathematical underpinnings of each method.

Areas of Agreement / Disagreement

Participants express differing opinions on the effectiveness of the rectangle rule compared to the trapezium rule, with no consensus reached on whether there are specific cases where rectangles outperform trapezia.

Contextual Notes

Participants acknowledge the complexity of the mathematical analysis involved in comparing the two methods, indicating that the discussion may be influenced by the specific characteristics of the curves being integrated.

whatisreality
Messages
286
Reaction score
1
Two numerical methods for finding the area under a curve are the trapezium rule, where the area is split into trapezia, and the rectangle rule where you split into rectangles. The rectangle rule has two forms, one where you take the height at the midpoint and one where you take the height of the vertex on the left.

Given the area is split into the same number of smaller shapes, is there ever going to be a case when the rectangles are better than trapezia? I can't think of one! But there must be a case where rectangles are better, or why bother learning the method?
 
Physics news on Phys.org
Rectangle - height in middle could be better than trapezium.
 
  • Like
Likes   Reactions: whatisreality
mathman said:
Rectangle - height in middle could be better than trapezium.
Even if the height in the middle is better, won't the points on either side negate that?
 
whatisreality said:
Two numerical methods for finding the area under a curve are the trapezium rule, where the area is split into trapezia, and the rectangle rule where you split into rectangles. The rectangle rule has two forms, one where you take the height at the midpoint and one where you take the height of the vertex on the left.

Given the area is split into the same number of smaller shapes, is there ever going to be a case when the rectangles are better than trapezia? I can't think of one! But there must be a case where rectangles are better, or why bother learning the method?
I don't understand mathman's reply.
To me rectangle is zero'th order and trapezium is first order approximation to the function being integrated. Check the error analysis sections in the links.

I suppose one can concoct a pathological case where (by accident) the simpler method comes out better, but why bother ?

And 'learning' the method is sensible, because it's so evident and uncomplicated.
 
  • Like
Likes   Reactions: whatisreality
Simple example: \int_0^1 x^2dx = 1/3. One interval. Trapezium est. = 1/2, midpoint est. = 1/4. Midpoint slightly better.
 
  • Like
Likes   Reactions: whatisreality
I'm going to go out on a limb and say it's a little more complicated mathematically. I'd wager different types of curves might have an effect on the ranking of which is the most effective method. I was looking at the error analysis of numerical analysis formulas, and it looks like to answer your question (even holding the widths of the divisions the same across methods) requires an examination of the curve as well as the method.

Of course, sometimes less effective is taught because it's simpler, and simpler is easier to learn.

Here seems to be comparison of error terms between rectangular and trapezoidal (See https://en.wikipedia.org/wiki/Newton–Cotes_formulas). Look under the section labeled Open Newton-Cotes Formulae in the last column.
 
  • Like
Likes   Reactions: whatisreality

Similar threads

  • · Replies 24 ·
Replies
24
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
12K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K