# Help with converting integral to Riemann Sum

I have the integral $$\int_1^3\sin(x)\,\mathrm dx$$ and I want to convert it to a Riemann Sum. I understand that the first thing I should do is set the limit as $n\to\infty$. I am stumped as what I should do next. Can someone walk me through the steps of converting integrals to Riemann Sums?

• Perhaps review this and the examples: khanacademy.org/math/ap-calculus-ab/… – Moo May 21 '18 at 12:45
• Welcome to Maths SX! I suppose you mean for the integral from $1$ to $3$? – Bernard May 21 '18 at 12:46
• @Bernard yes, I'm not quite familiar with mathematical formatting – kydd May 21 '18 at 12:54
• Can you show us an attempt at least, so then we can help explain where you went wrong (or right)? – Andrew Li May 21 '18 at 12:59
• I started out by finding delta x, which should be (3-1)/n, and that is the width of each rectangle. Then, I need to find the height of each rectangle, but I don't know how to do that. I think it's something like adding on to the first x value on my interval, but I'm not sure. – kydd May 21 '18 at 13:06

You have to introduce the subdivision points. As the intercal is $[1,3]$, with length $2$, we obtain: $$x_0=1,\:x_1=1+\frac2n,\dots,\: x_i=1+i\cdot \frac 2n,\dots,\: x_n=1+n\cdot \frac 2n=3$$