I am reading a book (SECOND EDITION) on computational physics by N.J. Giordano and H. Nakanishi. On Appendix E, page 502, the trapezoidal rule is introduced as: $$\int_a ^b f(x)dx \approx \sum_{i=1} ^{N-1} f(x_i) +\frac{1}{2}[f(a)+f(b)]$$
Why is there no $\Delta x$ element on this integration, is it a typo? When reading online about this technique, I often find this formula: $$\int_a ^b f(x)dx \approx \sum_{i=1} ^{N-1}\frac{1}{2}[f(x_i)+f(x_{i+1})]\Delta x_i$$
I am really struggling making sense of these two formulas, especially since the one from the book has no $\Delta x$.
