Let's start at the very beginning. The right Riemann Sum is defined as follows:
[MATH]\left \{ \sum_{j=1}^n f \left (a + j * \dfrac{b - a}{n} \right ) * \dfrac{n}{b - a} \right \}.[/MATH]
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
[MATH]1 - 0 = 1.[/MATH]
Any problem with that?
Now we are going to divide it into n equal sub-intervals.
Therefore, each sub-interval has a width of [MATH]\dfrac{b - a}{n}.[/MATH]
When we want to divide a number into equal parts, we use division, right?
In the case of your problem, [MATH]\dfrac{b - a}{n} = \dfrac{1}{n}.[/MATH]
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?
[MATH]\text {Left } a = a + 0 * \dfrac{(b - a)}{n} \text { and Right } = a + 1 * \dfrac{(b - a)}{n}.[/MATH]
Make sense? How about the second sub-interval?
[MATH]\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}.[/MATH]
How about the third sub-interval?
[MATH]\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}.[/MATH]
How about the nth sub-interval?
[MATH]\text {Left } a + (n - 1) * \dfrac{(b - a)}{n} \text { and Right } = b = a + n * \dfrac{(b - a)}{n}.[/MATH]
I see a pattern here. The endpoints of the jth sub-interval are
[MATH]\text {Left } a + (j - 1) * \dfrac{(b - a)}{n} \text { and Right } = b = a + j * \dfrac{(b - a)}{n}.[/MATH]
In your problem, because a = 0 and b = 1, b - a reduces to 1 and the endpoints reduce to
[MATH]\text {Left } \dfrac{j - 1}{n} \text { and Right } = \dfrac{j}{n}.[/MATH].
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
[MATH]f \left ( \dfrac{j}{n} \right ) * \dfrac{1}{n}.[/MATH]
But [MATH]f(x) = x^2 + 1 \implies f \left ( \dfrac{j}{n} \right ) = \dfrac{j^2}{n^2} + 1. [/MATH]
So the area of the jth rectangle is
[MATH]\left ( \dfrac{j^2}{n^2} + 1 \right ) * \dfrac{1}{n} = \dfrac{j^2}{n^3} + \dfrac{1}{n}.[/MATH]
Now we just add those areas up.
[MATH]\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 ) = [/MATH]
[MATH]\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}.[/MATH]
Take the limit of that as n approaches infinity, and you end up with 4/3.
[MATH]\int \ x^2 + 1 \ dx = \dfrac{x^3}{3} + x + C \implies[/MATH]
[MATH]\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}.[/MATH]