Understanding the Trapezoidal Rule for Approximating Definite Integrals

  • Thread starter Thread starter MMM
  • Start date Start date
  • Tags Tags
    Intuition
MMM
Messages
8
Reaction score
0

Homework Statement


I'm curious about how the trapezoidal rule is derived for approximating definite integrals.

Homework Equations



According to my calculus book the equation is $$h[(1/2)y_{0} + y_{1} + y_{2} + ... +y_{n-1} + (1/2)y_{n}]$$

The Attempt at a Solution


I'm curious as to why the first and last y values are multiplied by $$1/2$$
I've solved a lot of problems using the trapezoidal rule, but I don't quite understand it. Any insight on why the first and last y values are multiplied by $$1/2$$.
 
Physics news on Phys.org
MMM said:

Homework Statement


I'm curious about how the trapezoidal rule is derived for approximating definite integrals.

Homework Equations



According to my calculus book the equation is $$h[(1/2)y_{0} + y_{1} + y_{2} + ... +y_{n-1} + (1/2)y_{n}]$$

The Attempt at a Solution


I'm curious as to why the first and last y values are multiplied by $$1/2$$
I've solved a lot of problems using the trapezoidal rule, but I don't quite understand it. Any insight on why the first and last y values are multiplied by $$1/2$$.
You are representing the area under the curve as a set of trapezoids. The total area is h(y0 + y1)/2 + h(y1 + y2)/2 ... and so on. The 1/2 goes away for all points but the first and last.
 
  • Like
Likes 1 person
I get it now, I appreciate the help.
 
Thread 'Use greedy vertex coloring algorithm to prove the upper bound of χ'
Hi! I am struggling with the exercise I mentioned under "Homework statement". The exercise is about a specific "greedy vertex coloring algorithm". One definition (which matches what my book uses) can be found here: https://people.cs.uchicago.edu/~laci/HANDOUTS/greedycoloring.pdf Here is also a screenshot of the relevant parts of the linked PDF, i.e. the def. of the algorithm: Sadly I don't have much to show as far as a solution attempt goes, as I am stuck on how to proceed. I thought...

Similar threads

Back
Top