4

I have a specific question for this equation :

$$\frac{1}{x+1} $$

Using Standard Integration,

$$\int_{0}^{1} \frac{1}{x+1} $$

which is approximately 0.69

Using Riemann Sum (right end point), however, I get this

$$ \lim _{n \to \infty } \Sigma ^n _{i=1} \frac{1}{n+i} $$

$$ = \lim _{n \to \infty } ( \frac {1} {n+1} + \frac {1} {n+2} + \frac {1} {n+3} + ... +\frac {1} {2n} ) $$

$$ = \lim _{n \to \infty } (\frac{1}{n})( \frac {1} {1+\frac{1}{n}} + \frac {1} {1+\frac{2}{n}} + \frac {1} {1+\frac{3}{n}} + ... +\frac {1} {2} ) $$

$$= (\frac{1}{\infty})( \frac {1} {1+0} + \frac {1} {1+0} + \frac {1} {1+0} + ... +\frac {1} {2} ) $$

$$= 0 $$

Is this right?

wel
  • 157
  • 2
    Uhh, no. Your second to last line is not correct. – Brian Tung Aug 04 '22 at 04:38
  • @BrianTung I changed it a little, but the final answer for me is still the same – wel Aug 04 '22 at 05:07
  • 1
    @Blitzer Why? $$\frac{1}{\frac{i}{n}+1} $$ is the height of the fundamental strip. The area should be $$ \frac{1}{i+n}$$ – wel Aug 04 '22 at 05:12
  • 2
    With that logic, every Riemann integral would be zero. – Martin R Aug 04 '22 at 05:23
  • @MartinR . Yes, that is the current dilemma I am faced with. Obviously, it doesn't check out, but I have no idea how to proceed with this. That is why I asked this on math.stackexchange.com – wel Aug 04 '22 at 05:25
  • @wel The way you take limits is inappropriate. – TravorLZH Aug 04 '22 at 05:34
  • @TravorLZH . Could you please elaborate? I understand this is the inappropriate way, which is why I am asking this on math.stackexchange.com – wel Aug 04 '22 at 05:42
  • Compare https://math.stackexchange.com/q/579895/42969 or https://math.stackexchange.com/q/59795/42969 or https://math.stackexchange.com/q/3780430/42969 – Martin R Aug 04 '22 at 06:01

6 Answers6

4

Your error has nothing to do with anything specfic to integration, it's a common mistake of how to approch limits.

Let's make a more simple example.

$$\forall n>0: 1= \frac 1n \times n = \frac1n(1+\ldots +1);\;n \text{ summands } $$

Taking the limit for $n \to \infty$, using your approach we get

$$\lim_{n \to \infty} \frac1n(1+\ldots +1) = \frac1\infty(1+\ldots+1)=0,$$

which is obviously wrong.

Your first error is in writing $\frac1\infty$, which is not a meaningful expression. There is a reason your instructors likely have tried to prevent you from doing that, and the reason is that the relations and rules for calculations we "grow up with" no longer work when one of the operands is $\infty$. More on that in a moment.

A reasonable approach is to split the limit into a product of 2 limits:

$$\lim_{n \to \infty} \frac1n(1+\ldots +1) = \lim_{n \to \infty} \frac1n \times \lim_{n \to \infty}n.$$

That isn't totally correct, but "mostly". You can formally do that only if you know that the limits you split into exist. But since you are trying to solve a problem, that is a good approach. If it turns out they do exist, good! If it turns out one of them doesn't exist, then at least it was worth a try and we need to look for other measures.

So what about those limits?

Obviously, $\lim_{n \to \infty} \frac1n=0$, no problem.

Also, $\lim_{n \to \infty}n = \infty$, also obvisouly.

Now there is a reason that the sequence $a_n=n$ is called diverging. It doesn't converge to any real number, just like $-1,+1,-1,+1,\ldots$ isn't converging to any real number. Writing $\lim_{n \to \infty}n = \infty$ is a very nice shorthand, that can be justified with topological arguments, it gives you some information of the behavior of $a_n=n$ that is more specific than "diverging". But, to recap, the "limit" $\infty$ is not a number you can calculate with.

And now, with this example, we can see, why this is so. The above example shows that in this specific case, considering the limit we want to calculate (which is $1$) we "would like" to have $0 \times \infty = 1$.

But if we change the product, we may "want" different outcomes, for example for taking the following example to the limit

$$n=\frac1n n^2,$$

we again get that the first factor $\frac1n$ tends to $0$ when $n$ tends to $\infty$ and the second factor $n^2$ tends to $\infty$. So for this case, we want $0 \times \infty$ to be $\infty$.

And if you consider the limit of

$$\frac1n=\frac1{n^2}n,$$

we see that in that case we want $0 \times \infty$ to be $0$.

So, to recap: $0 \times \infty$ is not a meaningful real number, as we can see in simple cases, it "would be equal" to different values, depending on how exactly we arrived at those $0$ and $\infty$.

To come back to your original problem: Your product

$$ = \lim _{n \to \infty } (\frac{1}{n})( \frac {1} {1+\frac{1}{n}} + \frac {1} {1+\frac{2}{n}} + \frac {1} {1+\frac{3}{n}} + ... +\frac {1} {2} ) $$

is very similar to my initial example, your fractions in the sum are just a bit more complicated. What may have fooled you is that each term there is obviously bounded from above by $1$. The problem is that the $\ldots$ hide the fact that you have an increasing number of those summands, so any one being bounded means nothing.

Just look at my above initial of

$$\forall n>0: 1= \frac1n(1+\ldots +1);\;n \text{ summands, } $$

each summand is a constant, but you have $n$ summands, so their sum is $n$, and this not bounded.

Ingix
  • 14,494
  • Is it possible, then, to use Riemann's Sum to solve it anyway? – wel Aug 04 '22 at 08:26
  • Sure it is, I mean that integral is a Rieman integral, so it can be solved that way. It just takes a lot, lot, lot more time and effort to do that, because the limit you end up is not trivial. Basically, you have to "redo" the proof of the main theorem of calculus, that shows those integrals can be easily solved when you know the antiderivative. I can't say how much work you don't need to do because you are doing it for a special case and not the general theorem. – Ingix Aug 04 '22 at 08:36
  • +1. I would add that in the original problem there are $n+1$ summands in $\frac {1} {1+\frac{1}{n}} +...$ and each of them is $\ge 1/2$. And I would add that this problem is standard integration, not Riemann integration. Calling it a Riemann sum is like calling the Wright brothers' first plane a Boeing. – DanielWainfleet Aug 04 '22 at 15:41
2

To put this in a general sense, the task you are facing is evaluating the following type of limit: $$ \lim_{n\to\infty}\sum_{i=1}^nf(n,i), $$ in which $\lim_{n\to\infty}f(n,i)=0$ for any fixed $i$. However, this is not the case when $i$ is a dummy variable in the sum. Thus, you cannot simply plug in the pointwise limit of $f(n,i)$ to get zero.

TravorLZH
  • 6,718
1

You cannot simply "plug in infinity" in the limit here and conclude the product is zero, because the number of terms in the sum is also increasing.

As to the broader question of under what conditions a Riemann sum can be computed by taking an antiderivative, see https://en.wikipedia.org/wiki/Fundamental_theorem_of_calculus#Second_part

hunter
  • 29,847
  • I'm sorry, I do not understand that wikipedia article at all. Could you advise on what to do if you want to find the area under the graph for $$ \frac {1}{x+1} $$ from 0 to 1 using Riemann Sum? – wel Aug 04 '22 at 05:19
  • Since $\log(x+1)$ is an antiderivative of $\frac{1}{x+1}$, the fundamental theorem of calculus says that the Riemann sum is equal to $\log(2)$. – hunter Aug 04 '22 at 12:55
1

For a function like this, it is not possible for the Riemann sum to be different to the integral.

Your second-to-last line is not correct, because the two terms you are multiplying together are:

  1. $\frac{1}{n}$, which tends towards 0 as $n \rightarrow \infty$; and

  2. $\frac{1}{1 + \frac{1}{n}} + \frac{1}{1 + \frac{2}{n}} + \ldots + \frac{1}{1 + \frac{n}{n}}$, which tends towards $\infty$ as $n \rightarrow \infty$

Since they both depend on $n$, if you try to treat their limits separately you will get $0 \times \infty$ which is an indeterminate form - i.e. you need to do some more work to find the actual limit.

It is actually a bit hard to evaluate this particular Riemann sum using normal limit methods (the easiest way to do it is to just prove that it is equal to the integral whose value you've already shown). However, if you choose a different subdivision of the interval $[0, 1]$ you can create a Riemann sum that you can evaluate to get the right answer, and with some changes of variable you can see the explanation in this question and its accepted answer.

ConMan
  • 24,300
  • I'm going to be honest, I don't really understand the link that you sent. Perhaps it's because the asker's equation isn't the same as mine, $$\lim_{n \to \infty}\frac{ \frac{b}{a}^\frac{1}{n}-1}{\frac{1}{n}} $$ Is the equation $$\frac{b}{a}^\frac{1}{n} $$ ? if so, where does the -1 and 1/n come from? – wel Aug 04 '22 at 08:34
  • In that question, they are integrating $\frac{1}{x}$, so if you choose $a = 1$ and $b = 2$ you'll get the same result as for your integral. All of the terms there come from choosing the partition such that adjacent intervals increase in size by some fixed ratio, instead of making them equally spaced, so you can apply properties of geometric series to evaluate the sum. – ConMan Aug 04 '22 at 08:45
  • I'm really sorry, but could I just clarify, if I were to tweak that equation $ \frac{1}{x} $ to my equation $\frac{1}{x+1} $ , would it be $ \lim_{n \to \infty} \frac{\frac{b}{a} ^\frac{1}{n+1}−1}{\frac{1}{n+1}} $ ? – wel Aug 04 '22 at 11:03
  • It would not. What I'm saying is that evaluating $\int_0^1 \frac{1}{x+1} dx$ is the same thing as evaluating $\int_1^2 \frac{1}{x} dx$. Then, to get the expression in the linked question, you also have to change it so that instead of breaking the interval $[1, 2]$ into sections of equal width, you break it into sections based on a geometric sequence. – ConMan Aug 04 '22 at 23:10
0

You want to show that $$ \lim _{n \to \infty } \sum ^n _{i=1} \frac{1}{n+i}=\ln 2$$ As others have said, the usual way to do this is to define $$\ln x = \int_1^x \frac1{t} dt $$ and the workings in your question would then essentially complete the proof. If you want a proof that doesn't rely on the integral then we need a different definition for $\ln 2 $. Perhaps you are happy with the series: $$\ln 2=1-\frac12+\frac13-\frac14+ \cdots$$

in which case we can complete the proof without calculus as follows:

Note that $$\sum^n_{i \text{ odd}}\frac{1}{i} + \sum ^n_{i \text{ even}}\frac{1}{i}=\sum ^n_{i =1}\frac{1}{i}= 2\sum^{2n}_{i \text{ even}}\frac{1}{i} $$

We are interested in $$ \sum ^n _{i=1} \frac{1}{n+i}= \sum ^{2n}_{i=1} \frac{1}{i}-\sum ^{n}_{i=1} \frac{1}{i} $$ $$=\sum^{2n}_{i \text{ odd}}\frac{1}{i} + \sum ^{2n}_{i \text{ even}}\frac{1}{i} - 2 \sum^{2n}_{i \text{ even}}\frac{1}{i}$$ $$=\sum^{2n}_{i \text{ odd}}\frac{1}{i} - \sum ^{2n}_{i \text{ even}}\frac{1}{i} $$ but taking the limit we see this is equal to our definition of $\ln 2$.

Blitzer
  • 2,018
0

Yes, it's possible to show both expressions equal $\ln(2)$. Just like how others pointed out, we can't just "plug in $\infty$" all the time and get the right answer because $\infty$ is not a real number. To show our Riemann Sum converges to $\ln{(2)}$, we do

$$\eqalign{ \lim_{n\to\infty}\sum_{i=1}^{n}\frac{1}{n+i} &= \lim_{n\to\infty}\sum_{i=1}^{n}\frac{1}{n\left(1+\frac{i}{n}\right)} \cr &= \lim_{n\to\infty}\sum_{i=1}^{n}\left(\frac{1}{1+\frac{i}{n}}\right)\left(\frac{1-0}{n}\right). }$$

Recall the definition of Riemann Sums on $\left[a,b\right]$ using $n$ subintervals that $x_i = a+i\Delta x$ and $\Delta x = \frac{b-a}{n}$. Let $b=1$ and $a=0$ so that $\Delta x = \frac{1-0}{n}$ and $x_i = 0 + i\left(\frac{1-0}{n}\right) = \frac{i}{n}$. Then we get the sum to equal

$$\int_0^1 \frac{1}{1+x}dx,$$

which equals $\ln{(2)}$.

Does that make sense?

Accelerator
  • 4,923