Converting a limit to integral form or vice-versa

  • Context: Undergrad 
  • Thread starter Thread starter Raghav Gupta
  • Start date Start date
  • Tags Tags
    Form Integral Limit
Click For Summary

Discussion Overview

The discussion revolves around the relationship between limits and integrals, specifically how to convert a limit expression into integral form and vice versa. Participants explore definitions of integrals, Riemann sums, and the implications of these concepts in mathematical proofs and derivations, including Stirling's formula.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • Participants discuss the proof of the equation relating integrals and limits, questioning the placement of terms in the expression.
  • Some participants propose that an integral can be defined as the area under a curve, using Riemann sums as a foundational concept.
  • There is a suggestion that the formula $$ \int_a^b f(x) dx = 1/n\lim_{n\to\infty} (f(a) + f(a+h) + f(a+2h) +...+ f( a+ (n-1)h)) $$ contains an error regarding dimensional consistency.
  • Participants explore the limit $$ \lim_{n\to\infty}\frac{1}{n}\sum_{r=1}^n \log(r/n) $$ and its equivalence to the integral $$ \int_0^1 \log x \, dx $$ while expressing discomfort about the behavior of logarithmic functions at zero.
  • There is a discussion about the undefined nature of $$ 1/\infty $$ and its implications in the context of limits.
  • Some participants engage in a deeper exploration of limits involving logarithmic functions, applying L'Hôpital's rule to analyze the behavior as x approaches zero.
  • One participant expresses confusion about the mathematical steps taken in the limit evaluation and seeks clarification on the application of L'Hôpital's rule.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the correctness of the initial limit-to-integral conversion formula, with some suggesting errors while others defend its validity. The discussion on the behavior of logarithmic functions at zero also reveals differing interpretations, particularly regarding the limits involved.

Contextual Notes

Limitations include potential misunderstandings of dimensional analysis in the limit expressions, as well as unresolved questions about the behavior of logarithmic functions near zero. The discussion also reflects varying levels of familiarity with advanced mathematical concepts, such as L'Hôpital's rule and Riemann sums.

Raghav Gupta
Messages
1,010
Reaction score
76
What is the proof for this
$$ \int_a^b f(x) dx = 1/n\lim_{n\to\infty} (f(a) + f(a+h) + f(a+2h) +...+ f( a+ (n-1)h)) $$
h = (b-a)/n

Also I think there is some summation form which can be converted to integral form how?
 
Last edited by a moderator:
Physics news on Phys.org
What is your definition of the integral?
 
micromass said:
What is your definition of the integral?
BvU said:
Hi Raghav,

For this you can read up under Riemann sum

As μmass already indicates: an integral and a Riemann sum are closely related.

See also Riemann integral , Fundamental theorem of calculus
An integral is the area under a curve.
For any curve we can find it's area by putting infinitely small rectangles, trapezoids etc. shapes.
We can write $$ \int_a^b f(x) dx = \lim_{n\to\infty} \sum_{i=1}^n f(x_{i-1}) Δx $$
Δx = (b-a)/n
But how do we get this

$$ \int_a^b f(x) dx = 1/n\lim_{n\to\infty} (f(a) + f(a+h) + f(a+2h) +...+ f( a+ (n-1)h)) $$
h = (b-a)/n
From above that I know?
 
By setting x0 = a, x1 = a + h, etc. (you already have ##\Delta x = h##) .

I think there is a small error in the lower formula: 1/n can't be outside the ##\lim## .
(It also doesn't fit dimensionwise)
(b-a) should be the factor in front and 1/n should be at the end (within the ##\lim## scope)
 
BvU said:
By setting x0 = a, x1 = a + h, etc. (you already have ##\Delta x = h##) .

I think there is a small error in the lower formula: 1/n can't be outside the ##\lim## .
(It also doesn't fit dimensionwise)
(b-a) should be the factor in front and 1/n should be at the end (within the ##\lim## scope)
Okay, got that and yes 1/n should be inside lim scope.

Applying this how $$ \lim_{n\to\infty}\frac{1}{n}\sum_{r=1}^n log(r/n) = \int_0^1 logx dx$$ ?
 
Ah ! A new turn to this thread. We're going to derive Stirling's formula !

Your righthand side makes me feel uncomfortable. A primitive of ##\log x## is ##x\log x - x## and there is no ##\log 0##, so I suppose this is to be continued. And yes:

If you take ##f(x) = \log x## and write out
$$
\int_a^b f(x) dx = (b-a) \lim_{n\to\infty} ( f(a+h) + f(a+2h) +...+ f( a+ nh)) 1/n
$$you see your summation appearing (b = 1, a = 0, h = 1/n).

Note that I sneakily shifted by h (starting from a+h instead of from a). So from lower sum to upper sum (which google) to avoid the ##\log 0##).​
 
BvU said:
Ah ! A new turn to this thread. We're going to derive Stirling's formula !

Your righthand side makes me feel uncomfortable. A primitive of ##\log x## is ##x\log x - x## and there is no ##\log 0##, so I suppose this is to be continued. And yes:

If you take ##f(x) = \log x## and write out
$$
\int_a^b f(x) dx = (b-a) \lim_{n\to\infty} ( f(a+h) + f(a+2h) +...+ f( a+ nh)) 1/n
$$you see your summation appearing (b = 1, a = 0, h = 1/n).

Note that I sneakily shifted by h (starting from a+h instead of from a). So from lower sum to upper sum (which google) to avoid the ##\log 0##).​
I saw that Stirling formula in Wikipedia and I am feeling uncomfortable with that. ( I think it is taught in university with a lot of basics first and I am in high school.)
I also googled lower to upper sum and don't know that things trapezoidal rule in details.( I think university will be fun.:rolleyes:)

So, according to wolframalpha
Left hand side is 0 and Right hand side is coming -1
Is that true?
But someone was telling me that they are equal.
Also 1/∞ is not strictly zero, it may be 0.00000...1
So log 0 not comes in left hand side.
 
Raghav Gupta said:
Also 1/∞ is not strictly zero, it may be 0.00000...1

##1/\infty## is undefined. It doesn't exist. And if you do want to define it, then it will be exactly 0.
 
  • Like
Likes   Reactions: Raghav Gupta
  • #10
micromass said:
##1/\infty## is undefined. It doesn't exist. And if you do want to define it, then it will be exactly 0.
Okay, so is this true?

$$ \lim_{n\to\infty}\frac{1}{n}\sum_{r=1}^n log(r/n) = \int_0^1 logx dx$$

[Edit - added ] is 0 * log0 = 0 ?
 
Last edited:
  • #11
is 0 * log0 = 0
No, but ##\displaystyle \lim_{x\rightarrow 0} x\log x = 0##

Left hand side is 0 and Right hand side is coming -1
Where do you see a zero appearing on the left hand side ? Try it on your calculator (mine ?:) goes up to n = 170 and no way it's going to 0).

So is Wolfram a dud ? No it's not. But you need to improve the incantation...

By the way, my deepest respect for the JEE level. I find it hard to believe they can ask so much of people wanting to get into university ! All (or almost) all the stuff I have to mobilize in order to help you, I learned after grammar school.​
 
Last edited:
  • #12
BvU said:
No, but ##\displaystyle \lim_{x\rightarrow 0} x\log x = 0##

Where do you see a zero appearing on the left hand side ? Try it on your calculator (mine ?:) goes up to n = 170 and no way it's going to 0).

So is Wolfram a dud ? No it's not. But you need to improve the incantation...
##\displaystyle \lim_{x\rightarrow 0} x\log x = 0##
Now how is this true?

Got the -1 in left hand side by improving incantation:)
 
  • #13
As x goes to 0, log(x) along goes to -infinity so [itex]\frac{1}{log(x)}[/itex] goes to 0 and we can apply L'Hopital's rule to [itex]\frac{x}{\frac{1}{log(x)}}[/itex].

The derivative of x is, or course, 1 and the derivative of [itex]\frac{1}{log(x)}= (log(x))^{-1}[/itex] is [itex]-(log(x))^{-2}\frac{1}{x}[/itex] so that the limit is the limit of [itex]\frac{1}{-\frac{1}{x}(log(x))^2}[/itex][itex]= -\frac{(log(x))^2}{x}= -\frac{xlog(x)}{x}[/itex].

So if [itex]\lim_{x\to 0} x log(x)[/itex] is some finite number, A, then we must have [itex]A= -A(\lim_{x\to 0} x)= 0[/itex]
 
  • #14
HallsofIvy said:
As x goes to 0, log(x) along goes to -infinity so [itex]\frac{1}{log(x)}[/itex] goes to 0 and we can apply L'Hopital's rule to [itex]\frac{x}{\frac{1}{log(x)}}[/itex].

The derivative of x is, or course, 1 and the derivative of [itex]\frac{1}{log(x)}= (log(x))^{-1}[/itex] is [itex]-(log(x))^{-2}\frac{1}{x}[/itex] so that the limit is the limit of [itex]\frac{1}{-\frac{1}{x}(log(x))^2}[/itex][itex]= -\frac{(log(x))^2}{x}= -\frac{xlog(x)}{x}[/itex].

So if [itex]\lim_{x\to 0} x log(x)[/itex] is some finite number, A, then we must have [itex]A= -A(\lim_{x\to 0} x)= 0[/itex]
Shouldn't that bold part have## (log(x))^{-2} ## in denominator ?
and I am also not getting what you are doing after that
How
[itex]\frac{1}{-\frac{1}{x}(log(x))^2}[/itex][itex]= -\frac{(log(x))^2}{x}[/itex]
 
Last edited:
  • #15
  • #16
HaHa, no problem,
Halls you took me in a complicated way,
Here see this,
$$ xlogx = \frac{logx}{\frac{1}{x}} $$
Here limit x tends to zero and as we are getting num. and den -∞/∞ we can then also apply L Hopital rule.
Then
$$ \frac{-x^2}{x} = -x $$
As here limit x tends to 0
We get 0.

Thanks BvU, Halls (although your way was very complicated but bringing L Hopital was crucial) and also thanks to μm .
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 31 ·
2
Replies
31
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 18 ·
Replies
18
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K