1. ## Reimann's sums

$\displaystyle \int_{1}^{3}x^2-x+1~dx$

I have to find this integral using reimann's sums

usually what I do si subtract 3-1/n to get 2/n

and that gives me 2i/n which I then sub into the polynomial and multiply by 2/n to give me the answer(using limits and sums ofcourse)...but for this one it's not working so I'm guessing I shouldn't be using 2i/n???

2. Originally Posted by akhayoon
$\displaystyle \int_{1}^{3}x^2-x+1~dx$

I have to find this integral using reimann's sums

usually what I do si subtract 3-1/n to get 2/n

and that gives me 2i/n which I then sub into the polynomial and multiply by 2/n to give me the answer(using limits and sums ofcourse)...but for this one it's not working so I'm guessing I shouldn't be using 2i/n???
no, it is not 2i/n

you have: $\displaystyle x_0 = 1, x_1 = 1 + \frac 2n, x_2 = 1 + \frac 4n \cdots x_i = 1 + \frac {2i}n$

and of course, $\displaystyle \int_a^b f(x)~dx = \lim_{n \to \infty} \sum_{i = 0}^{n} f(x_i) \Delta x$, where $\displaystyle \Delta x = \frac {b - a}n$

3. thanks but I don't understand how you got

$\displaystyle x_1=1+\frac{2}{n}$ or

$\displaystyle x_2=1+\frac{4}{n}$

could you please show me how you got these?

4. Originally Posted by akhayoon
thanks but I don't understand how you got

$\displaystyle x_1=1+\frac{2}{n}$ or

$\displaystyle x_2=1+\frac{4}{n}$

could you please show me how you got these?
remember, the $\displaystyle x_i$'s are the points on the x-axis that are $\displaystyle \Delta x$ apart.

so if $\displaystyle x_0 = a$

then $\displaystyle x_1 = a + \Delta x$ .....since we move a distance of $\displaystyle \Delta x$ to the right to go from $\displaystyle x_0$ to $\displaystyle x_1$

and $\displaystyle x_2 = x_1 + \Delta x$

and $\displaystyle x_3 = x_2 + \Delta x$

and so on.

here, $\displaystyle \Delta x = \frac 2n$

so, $\displaystyle x_0 = 1$

and $\displaystyle x_1 = 1 + \frac 2n$

and $\displaystyle x_2 = x_1 + \Delta x = 1 + \frac 2n + \frac 2n = 1 + \frac 4n$

and $\displaystyle x_3 = x_2 + \Delta x = 1 + \frac 4n + \frac 2n = 1 + \frac 6n$

.
.
.

$\displaystyle x_i = 1 + \frac {2i}n$