Formula(s) for composite/multiple-segment trapezoidal rule

  • Thread starter Thread starter s3a
  • Start date Start date
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 replies · 2K views
s3a
Messages
828
Reaction score
8

Homework Statement


Hello, everyone. :)

I'm looking at several different sources for the composite/multiple-segment trapezoidal rule (for approximating the value of an integral), but the formulas don't seem to agree.

Homework Equations


One place says I ≈ Δx/2 [f(a) + f(b)] + Δx Σ_(i=2)^(N-1) f(x_i).

Another place says I ≈ Δx/2 [f(a) + f(b)] + Δx Σ_(i=2)^(N) f(x_i).

Yet another place says I ≈ Δx/2 [f(a) + f(b) + 2 Σ_(i=1)^(N-1) f(a + iΔx)].

The Attempt at a Solution


Only the first one seems correct to me. Basically, the second one seems to me like it should end at N-1, not N, and the third one seems to me like it should end at N-2, not N-1.

Am I right?
 
on Phys.org