Hello I'm having some issues with a homework problem. I need to express the integral as the limit of sums and evaluate $$\int_0^\pi \sin(7x)\,dx$$ I can find $$ \Delta x = \frac{\pi-0}{n} = \frac{\pi}{n} \text{ and }x_i = 0 + \frac{\pi}{n}i$$ so I get $$\int_0^\pi \sin(7x)\,dx = \lim_{n\to \infty}\sum_{i=1}^n\sin\left(\frac{7\pi}{n}i\right)\frac{\pi}{n} $$
I know that $$\lim_{n\to \infty}\sum_{i=1}^n\sin\left(\frac{7\pi}{n}i\right)\frac{\pi}{n} = \frac{2}{7}$$ but I need to understand how to get there only using limits and sums.
this is where I'm stuck, I don't know how to proceed while expressing the limit and sum. Any help would be greatly appreciated.