# Right endpoint approximation part II

#### lev888

##### Full Member
Okay.

Area = A x B
Good. My point - you didn't have numbers and yet you were able to provide the answer. Do you see that using variables in calculations is perfectly normal?

#### lev888

##### Full Member
Can you figure out the right end point of the first interval of length 1/N?

#### Hckyplayer8

##### Junior Member
Can you figure out the right end point of the first interval of length 1/N?
Since the left bound is 0 it is 0 + 1/N = 1/N

So endpoint number two would just be 1/N + 1/N = 2/N?

#### lev888

##### Full Member
Since the left bound is 0 it is 0 + 1/N = 1/N

So endpoint number two would just be 1/N + 1/N = 2/N?
Yes, etc.

#### Jomo

##### Elite Member
1/N, 2/N, 3/N,....N/N=1 = right endpoint.

Try this one. Suppose the interval is from 7 to 10. Can you label the endpoints?

#### Hckyplayer8

##### Junior Member
Yes, etc.
You plug in those x values (the bases) into the equation.

#### Hckyplayer8

##### Junior Member
1/N, 2/N, 3/N,....N/N=1 = right endpoint.

Try this one. Suppose the interval is from 7 to 10. Can you label the endpoints?
So I am just adding 1/N to the previous endpoint to find the new right endpoint? If 7/N is the left endpoint, then you would have 8/N, 9/N and 10/N as the sub intervals over the interval [7,10].

#### Jomo

##### Elite Member
So I am just adding 1/N to the previous endpoint to find the new right endpoint? If 7/N is the left endpoint, then you would have 8/N, 9/N and 10/N as the sub intervals over the interval [7,10].
No, this is not correct. 7/N is NOT the left endpoint. 7 is the left endpoint. And the base width is 1/N. Please try again to label the endpoints. you need to get this down before we proceed to the next step.

#### Hckyplayer8

##### Junior Member
No, this is not correct. 7/N is NOT the left endpoint. 7 is the left endpoint. And the base width is 1/N. Please try again to label the endpoints. you need to get this down before we proceed to the next step.
So it would be 7 + 1/N

#### Jomo

##### Elite Member
So it would be 7 + 1/N
I am not sure what you mean. The left most endpoint will be 7, the next one is 7 + 1/N...
Please continue until you get to 10.

#### Jomo

##### Elite Member
7, 7+1/N, 7+2/N, 7+3/N, .... 9, 9+1/N, 9+2/N, ..., 9+(N-1)/N, 10

Now suppose $$\displaystyle f(x) = x^2 + x$$. Approximate the area under the curve of f(x) from x=3 to x=7 using N rectangles.

#### lev888

##### Full Member
7, 7+1/N, 7+2/N, 7+3/N, .... 9, 9+1/N, 9+2/N, ..., 9+(N-1)/N, 10
7 + 1/N or 7 + 3/N?

#### Dr.Peterson

##### Elite Member
I'd probably find it easier to describe the endpoints as $$\displaystyle 7, 7 + \frac{3}{N}, 7 + \frac{6}{N}, \dots, 7 + \frac{3k}{N}, \dots, 7 + \frac{3(N-1)}{N}, 7 + \frac{3N}{N} = 10$$, with k ranging from 0 to N (the first right endpoint being $$\displaystyle 7 + \frac{3}{N}$$).

#### JeffM

##### Elite Member
Let's start at the very beginning. The right Riemann Sum is defined as follows:

$$\displaystyle \left \{ \sum_{j=1}^n f \left (a + j * \dfrac{b - a}{n} \right ) * \dfrac{n}{b - a} \right \}.$$

This formula tells you exactly what to do, each step of the way.

What is b - a? It is the length of the interval. In the case of your problem, it is

$$\displaystyle 1 - 0 = 1.$$

Any problem with that?

Now we are going to divide it into n equal sub-intervals.

Therefore, each sub-interval has a width of $$\displaystyle \dfrac{b - a}{n}.$$

When we want to divide a number into equal parts, we use division, right?

In the case of your problem, $$\displaystyle \dfrac{b - a}{n} = \dfrac{1}{n}.$$

Let's number the sub-intervals from left to right.

What are the boundaries of n sub-intervals along the x-axis over [a, b]? How about the very first sub-interval?

$$\displaystyle \text {Left } a = a + 0 * \dfrac{(b - a)}{n} \text { and Right } = a + 1 * \dfrac{(b - a)}{n}.$$

Make sense? How about the second sub-interval?

$$\displaystyle \text {Left } a = a + 1 * \dfrac{(b - a)}{n} = a + (2 - 1) * \dfrac{(b - a)}{n} \text { and Right } = a + 2 * \dfrac{(b - a)}{n}.$$

$$\displaystyle \text {Left } a = a + 2 * \dfrac{(b - a)}{n} = a + (3 - 1) * \dfrac{(b - a)}{n} \text { and Right } = a + 3 * \dfrac{(b - a)}{n}.$$

$$\displaystyle \text {Left } a + (n - 1) * \dfrac{(b - a)}{n} \text { and Right } = b = a + n * \dfrac{(b - a)}{n}.$$

I see a pattern here. The endpoints of the jth sub-interval are

$$\displaystyle \text {Left } a + (j - 1) * \dfrac{(b - a)}{n} \text { and Right } = b = a + j * \dfrac{(b - a)}{n}.$$

In your problem, because a = 0 and b = 1, b - a reduces to 1 and the endpoints reduce to

$$\displaystyle \text {Left } \dfrac{j - 1}{n} \text { and Right } = \dfrac{j}{n}.$$.

Now let's think about the jth rectangle

The height is simply f(the right end point of the sub-interval) and the width is 1 / n so the area is their product

$$\displaystyle f \left ( \dfrac{j}{n} \right ) * \dfrac{1}{n}.$$

But $$\displaystyle f(x) = x^2 + 1 \implies f \left ( \dfrac{j}{n} \right ) = \dfrac{j^2}{n^2} + 1.$$

So the area of the jth rectangle is

$$\displaystyle \left ( \dfrac{j^2}{n^2} + 1 \right ) * \dfrac{1}{n} = \dfrac{j^2}{n^3} + \dfrac{1}{n}.$$

Now we just add those areas up.

$$\displaystyle \left ( \sum_{j=1}^n \dfrac{j^2}{n^3} + \dfrac{1}{n} \right ) = \left ( \sum_{j=1}^n \dfrac{j^2}{n^3} \right ) + \left ( \sum_{j=1}^n \dfrac{1}{n}\right ) =$$

$$\displaystyle \dfrac{n(n + 1)(2n + 1)}{6n^3} + \dfrac{n}{n} = 1 + \dfrac{2n^3 + 3n^2 + n}{6n^3} = \dfrac{4}{3} + \dfrac{3n^2 + n}{6n^3}.$$

Take the limit of that as n approaches infinity, and you end up with 4/3.

$$\displaystyle \int \ x^2 + 1 \ dx = \dfrac{x^3}{3} + x + C \implies$$

$$\displaystyle \int_0^1 \ x^2 + 1 \ dx = \left ( \dfrac{1^3}{3} + 1 + C \right ) - \left ( \dfrac{0^3}{3} + 0 + C \right) = \dfrac{4}{3}.$$

#### Jomo

##### Elite Member
Let's start at the very beginning. The right Riemann Sum is defined as follows:

$$\displaystyle \left \{ \sum_{j=1}^n f \left (a + j * \dfrac{b - a}{n} \right ) * \dfrac{n}{b - a} \right \}.$$

This formula tells you exactly what to do, each step of the way.

What is b - a? It is the length of the interval. In the case of your problem, it is

$$\displaystyle 1 - 0 = 1.$$

Any problem with that?

Now we are going to divide it into n equal sub-intervals.

Therefore, each sub-interval has a width of $$\displaystyle \dfrac{b - a}{n}.$$

When we want to divide a number into equal parts, we use division, right?

In the case of your problem, $$\displaystyle \dfrac{b - a}{n} = \dfrac{1}{n}.$$

Let's number the sub-intervals from left to right.

What are the boundaries of n sub-intervals along the x-axis over [a, b]? How about the very first sub-interval?

$$\displaystyle \text {Left } a = a + 0 * \dfrac{(b - a)}{n} \text { and Right } = a + 1 * \dfrac{(b - a)}{n}.$$

Make sense? How about the second sub-interval?

$$\displaystyle \text {Left } a = a + 1 * \dfrac{(b - a)}{n} = a + (2 - 1) * \dfrac{(b - a)}{n} \text { and Right } = a + 2 * \dfrac{(b - a)}{n}.$$

$$\displaystyle \text {Left } a = a + 2 * \dfrac{(b - a)}{n} = a + (3 - 1) * \dfrac{(b - a)}{n} \text { and Right } = a + 3 * \dfrac{(b - a)}{n}.$$

$$\displaystyle \text {Left } a + (n - 1) * \dfrac{(b - a)}{n} \text { and Right } = b = a + n * \dfrac{(b - a)}{n}.$$

I see a pattern here. The endpoints of the jth sub-interval are

$$\displaystyle \text {Left } a + (j - 1) * \dfrac{(b - a)}{n} \text { and Right } = b = a + j * \dfrac{(b - a)}{n}.$$

In your problem, because a = 0 and b = 1, b - a reduces to 1 and the endpoints reduce to

$$\displaystyle \text {Left } \dfrac{j - 1}{n} \text { and Right } = \dfrac{j}{n}.$$.

Now let's think about the jth rectangle

The height is simply f(the right end point of the sub-interval) and the width is 1 / n so the area is their product

$$\displaystyle f \left ( \dfrac{j}{n} \right ) * \dfrac{1}{n}.$$

But $$\displaystyle f(x) = x^2 + 1 \implies f \left ( \dfrac{j}{n} \right ) = \dfrac{j^2}{n^2} + 1.$$

So the area of the jth rectangle is

$$\displaystyle \left ( \dfrac{j^2}{n^2} + 1 \right ) * \dfrac{1}{n} = \dfrac{j^2}{n^3} + \dfrac{1}{n}.$$

Now we just add those areas up.

$$\displaystyle \left ( \sum_{j=1}^n \dfrac{j^2}{n^3} + \dfrac{1}{n} \right ) = \left ( \sum_{j=1}^n \dfrac{j^2}{n^3} \right ) + \left ( \sum_{j=1}^n \dfrac{1}{n}\right ) =$$

$$\displaystyle \dfrac{n(n + 1)(2n + 1)}{6n^3} + \dfrac{n}{n} = 1 + \dfrac{2n^3 + 3n^2 + n}{6n^3} = \dfrac{4}{3} + \dfrac{3n^2 + n}{6n^3}.$$

Take the limit of that as n approaches infinity, and you end up with 4/3.

$$\displaystyle \int \ x^2 + 1 \ dx = \dfrac{x^3}{3} + x + C \implies$$

$$\displaystyle \int_0^1 \ x^2 + 1 \ dx = \left ( \dfrac{1^3}{3} + 1 + C \right ) - \left ( \dfrac{0^3}{3} + 0 + C \right) = \dfrac{4}{3}.$$
Nicely done. I was think about showing Hckeyplayer8 the formula but chose the longer way. I have been thinking I was wrong mainly because hckeyplayer8 was not getting it and my method always seems to be a little different for different formulas. Nice job

#### JeffM

##### Elite Member
Nicely done. I was think about showing Hckeyplayer8 the formula but chose the longer way. I have been thinking I was wrong mainly because hckeyplayer8 was not getting it and my method always seems to be a little different for different formulas. Nice job
Jomo

One thought I have frequently had is that trying to teach an abbreviated version of analysis to start calculus is backwards. Most students find it hard and see no purpose in it. Yes, the logical foundation of calculus lies in analysis, but using calculus does not require any understanding of analysis. Nor do we start teaching students algebra by introducing the Peano postulates. Foundations came historically after what sits on those foundations. Psychology mirrors history.

I suspect that the only pedagogically persuasive reason to start with any form of analysis is to convince students that calculus has some logical basis. I further suspect that that could perhaps be done with a far simpler structure than either standard or non-standard analysis.

But if we are going to teach an introduction to analysis in calculus, I'd prefer to base it on the very carefully defined concepts of Newton quotient and Riemann sum and present them as recipes to be followed

• Jomo

#### JeffM

##### Elite Member
Posr #35 has a confusing typo. In the definition, the second factor should be (b - a)/n.

#### Jomo

##### Elite Member
Posr #35 has a confusing typo. In the definition, the second factor should be (b - a)/n.
How did I miss that one!

#### JeffM

##### Elite Member
How did I miss that one!
Well, I wrote it and still missed it. The problem with formulas is that we know what they ought to be and so miss typos.

• Jomo