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. 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)]. 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, or not?
For reference, the first formula can be found toward the beginning of the solution for part c.: https://www.docdroid.net/uNEKLNh/i.pdf#page=2
The second formula is equation (9.13) from here.: https://www.docdroid.net/9gQvLmE/ii.pdf
The third formula is in the frame of this video at 6:30. (The link already points to 6:30, for your convenience.): https://www.youtube.com/watch?v=Br9SWhhgRyg&feature=youtu.be&t=6m30s
Any input would be greatly appreciated!