Applying L'Hospital's rule to Integration as the limit of a sum

In summary: In the first case, the derivative is computed by substituting the constant values of the limits of integration into the function being integrated, while in the second case, the calculation requires the use of the fundamental theorem of calculus. Similarly, to differentiate a sum with a variable upper limit of summation requires the use of the fundamental theorem of calculus and a definition of the discrete version of the derivative.In summary, The definite integral of a function from a to b can be expressed as the limit of a sum, where the summand is evaluated at equally spaced points and the spacing between these points approaches zero. Using L'Hopital's rule, the limit can
  • #1
Kumar8434
121
5
The definite integral of a function ##f(x)## from ##a## to ##b## as the limit of a sum is:
$$\int_a^bf(x)dx=\lim_{h\rightarrow 0}h(f(a)+f(a+h)+.. ..+f(a+(n-2)h)+f(a+(n-1)h))$$
where ##h=\frac{b-a}{n}##. So, replacing ##h## with ##\frac{b-a}{n}## gives:

$$\lim_{n\rightarrow \infty}(b-a)\frac{f(a)+f\left(a+\frac{b-a}{n}\right)+.. ..+f\left(a+(n-2)\frac{b-a}{n}\right)+f\left(a+(n-1)\frac{b-a}{n}\right)}{n}$$

This seems to be of the form ##\frac{\infty}{\infty}## because the numerator is an infinite sum and the denominator also tends to infinity, so I think L'Hospital's rule can be applied. So, applying L'Hospital's rule gives:
$$\int_a^bf(x)dx=\lim_{n\rightarrow \infty}\frac{(b-a)^2}{n^2}\left(-f'\left(a+\frac{b-a}{n}\right)-2f'\left(a+2\frac{(b-a)}{n}\right)-3f'\left(a+3\frac{(b-a)}{n}\right)-...+3f'\left(a+(n-3)\frac{(b-a)}{n}\right)+2f'\left(a+(n-2)\frac{(b-a)}{n}\right)+f'\left(a+(n-1)\frac{(b-a)}{n}\right)\right)$$
Replacing ##\frac{(b-a)}{n}## with ##h## gives:
$$\int_a^bf(x)dx=\lim_{h\rightarrow 0}h^2(-f'(a+h)-2f'(a+2h)-3f'(a+3h)-...+3f'(a+(n-3)h)+2f'(a+(n-2)h)+f'(a+(n-1)h))$$
Replacing ##f'(x)## with ##f(x)## and hence ##f(x)## with ##\int f(x)dx## gives:
$$\int_a^b\left(\int f(x)dx\right)dx=\lim_{h\rightarrow 0}h^2(-f(a+h)-2f(a+2h)-3f(a+3h)-...+3f(a+(n-3)h)+2f(a+(n-2)h)+f(a+(n-1)h))$$
Does the above series make any sense to you? I'm asking this because the starting terms of the series are negative and the first term is multiplied by 1, the second term by 2, the third term by 3, etc,i.e the multipliers are increasing by 1, but the last terms of the series are positive and the multipliers are decreasing by 1 instead as we move forward in the series. Is it something like some transition from negative terms to positive terms takes place in the middle or something?
Or Is applying L'Hospital's rule not allowed in this case?
 
Last edited:
Physics news on Phys.org
  • #2
Kumar8434 said:
This seems to be of the form ∞∞\frac{\infty}{\infty} because the numerator is an infinite sum and the denominator also tends to infinity, so I think L'Hospital's rule can be applied.
Where have you read that? L'Hôpital's rule applies to quotients where nominator and denominator both tends to 0 (not ∞). Your expression is just a formula for the average value of f across the points you have chosen times the length of the interval - which is no great surprise.
 
  • #3
Svein said:
Where have you read that? L'Hôpital's rule applies to quotients where nominator and denominator both tends to 0 (not ∞).
L'Hopital's Rule also applies to quotients where both numerator and denominator are approaching infinity. See https://en.wikipedia.org/wiki/L'Hôpital's_rule, near the top of the page.
 
  • #5
Svein said:
Where have you read that? L'Hôpital's rule applies to quotients where nominator and denominator both tends to 0 (not ∞). Your expression is just a formula for the average value of f across the points you have chosen times the length of the interval - which is no great surprise.
I remember reading in my book that all the other indeterminate forms can be reduced to ##\frac{0}{0}##. So, ##\frac{\infty}{\infty}## is the same as ##\frac{0}{0}##. And, I'm not saying that my last expression is a surprise. The series is not making any sense to me. How is it the average value of f multiplied by the length of the interval?
 
  • #6
Your "..." depend on n in a non-continuous way. You cannot derive "..." with respect to n.

Counterexample: f(x)=1, a=0, b=1. Obviously the integral is 1, but f'(x)=0 for all x, hence your sum would give 0.
 
  • #7
Kumar8434 said:
And, I'm not saying that my last expression is a surprise. The series is not making any sense to me. How is it the average value of f multiplied by the length of the interval?
OK. Let us take it step by step.
  1. [itex]\frac{(x_{1}+x_{2}+\dotso +x_{n})}{n}[/itex] is by definition the mean (or average) value of the xi
  2. Thus [itex]
    \frac{f(a)+f\left(a+\frac{b-a}{n}\right)+.. ..+f\left(a+(n-2)\frac{b-a}{n}\right)+f\left(a+(n-1)\frac{b-a}{n}\right)}{n}
    [/itex] is the mean (or average) value of the f values.
  3. Your expression (before going to the limit) ([itex]
    (b-a)\frac{f(a)+f\left(a+\frac{b-a}{n}\right)+.. ..+f\left(a+(n-2)\frac{b-a}{n}\right)+f\left(a+(n-1)\frac{b-a}{n}\right)}{n}
    [/itex] is thus the mean (or average) value of the f values times the length of the interval (b - a)
 
  • Like
Likes Stephen Tashi
  • #8
In addition to the other comments, your (@Kumar8434) work requires f to be differentiable. For a definite integral ##\int_a^b f(x)dx##, the only requirement on f is that it be continuous on (a, b). There is no guarantee that such a function will also be differentiable.
 
  • #9
Kumar8434 said:
I'm asking this because the starting terms of the series are negative and the first term is multiplied by 1, the second term by 2, the third term by 3, etc,i.e the multipliers are increasing by 1, but the last terms of the series are positive and the multipliers are decreasing by 1 instead as we move forward in the series. Is it something like some transition from negative terms to positive terms takes place in the middle or something?
Yes.
But first, let's straighten out the terminology of "positive" vs "negative". You can't tell the sign of the terms because you don't know the sign of ##f'(x)##. You are using the terminology "positive" to mean a term that has a "+" sign in front of it, but that does guarantee that the term is a positive number.

If you divide ##[a,b]## into 3 intervals the left endpoints of these intervals are ##a,\ a+(1/3)(b-a),\ a+ (2/3)(b-a)##.
When you increase the number divisions to 4, the argument of ##f(a + (b-a)/n)## moves to the left from ##a + (1/3)(b-a)## to ##a + (1/4)(b-a)##. The argument of ##f(a + (n-1)(b-a)/n)## moves to the right from ##a + (2/3)(b-a)## to ##a + (3/4)(b-a)##.

So the "+" and "-" signs in front of the terms do correctly account for how the direction of the argument of a given function of is changing on the x-axis. What isn't obvious from the notation is that as ##n## increases, new terms are appearing as terms in the sum.

The general pattern is that you have a function of the form ##G(n) = \sum_{i=1}^n w_i(n)## and you are attempting to give an interpretation to the notation ##G'(n)## by doing a term-by-term differentiation of the sum, but to define the derivative, you need an interpretation of the difference quotient ##\frac{ G(n+h) - G(n)}{h}## and it isn't clear what you mean by ##G(n+h)## when ##h## is not an integer. For example if ##n = 3## and ##h = 0.1## then your interpretation of ##G(n)## appears to be to keep ##n = 3## as the upper index of the summation and use ## n = 3.1## when you evaluate the functions ##w_i(n)##.

This situation is analogous to distinction between differentiating a function defined by an integral with constant limits of integration vs a function defined by an integral with variable limits of integration - e.g. finding the derivative of ##P(x) = \int_0^{2x} xy^2 dy \ ## vs ##\ ## finding the derivative of ##Q(x) = \int_0^1 xy^2 dy##.
 
  • #10
mfb said:
Your "..." depend on n in a non-continuous way. You cannot derive "..." with respect to n.

Counterexample: f(x)=1, a=0, b=1. Obviously the integral is 1, but f'(x)=0 for all x, hence your sum would give 0.
I think my sum would be undefined in that case. Because remember that it'll be a sum of an infinite number of 0's. I think that's an indeterminate form. Forget about adding the derivatives of ##f(x)##. Instead in my last expression, it says that the double integral of f(x) from a to b is given by the series on the right, which doesn't involve derivatives. How's that possible? The double integral will be of the form F(x)+Cx+D. By taking definite integral the constant D will eliminate but there would still be a constant C. But my series on the right doesn't give any arbitrary constant. And, I don't see any way to evaluate such a series whose starting terms and ending terms are of opposite signs.
 
  • #11
Mark44 said:
In addition to the other comments, your (@Kumar8434) work requires f to be differentiable. For a definite integral ##\int_a^b f(x)dx##, the only requirement on f is that it be continuous on (a, b). There is no guarantee that such a function will also be differentiable.
If it's differentiable, is the series true and does it make any sense?
 
  • #12
Svein said:
OK. Let us take it step by step.
  1. [itex]\frac{(x_{1}+x_{2}+\dotso +x_{n})}{n}[/itex] is by definition the mean (or average) value of the xi
  2. Thus [itex]
    \frac{f(a)+f\left(a+\frac{b-a}{n}\right)+.. ..+f\left(a+(n-2)\frac{b-a}{n}\right)+f\left(a+(n-1)\frac{b-a}{n}\right)}{n}
    [/itex] is the mean (or average) value of the f values.
  3. Your expression (before going to the limit) ([itex]
    (b-a)\frac{f(a)+f\left(a+\frac{b-a}{n}\right)+.. ..+f\left(a+(n-2)\frac{b-a}{n}\right)+f\left(a+(n-1)\frac{b-a}{n}\right)}{n}
    [/itex] is thus the mean (or average) value of the f values times the length of the interval (b - a)
Obviously the definite integral of a function from a to b is its average value between a and b multiplied by the length of the interval. Why are you talking about that? I thought you were saying that about my final expression.
 
  • #13
Kumar8434 said:
But my series on the right doesn't give any arbitrary constant.

One of your steps is:
Kumar8434 said:
Replacing ##f'(x)## with ##f(x)## and hence ##f(x)## with ##\int f(x)dx## gives:

but that does not define a unique process because there can be several different functions whose derivative is the given ##f(x)##.
 
  • #14
Stephen Tashi said:
One of your steps is:but that does not define a unique process because there can be several different functions whose derivative is the given ##f(x)##.
Oh, so it does give an arbitrary constant. Thanks.
 
  • #15
Kumar8434 said:
Replacing ##\frac{(b-a)}{n}## with ##h## gives:
$$\int_a^bf(x)dx=\lim_{h\rightarrow 0}h^2(-f'(a+h)-2f'(a+2h)-3f'(a+3h)-...+3f'(a+(n-3)h)+2f'(a+(n-2)h)+f'(a+(n-1)h))$$

Keep in mind that your notation only makes sense if you treat ##n## as a function of ##h##.

There is a distinction between:

##A(h) = \sum_{i=1}^\infty w_i(h) ##

versus

##B(h) = \sum_{i=1}^{g(h)} w_i(h)##
 
  • #16
Stephen Tashi said:
This situation is analogous to distinction between differentiating a function defined by an integral with constant limits of integration vs a function defined by an integral with variable limits of integration - e.g. finding the derivative of ##P(x) = \int_0^{2x} xy^2 dy \ ## vs ##\ ## finding the derivative of ##Q(x) = \int_0^1 xy^2 dy##.
In this case, the limits are constants, aren't they?
 
  • #17
Stephen Tashi said:
Keep in mind that your notation only makes sense if you treat ##n## as a function of ##h##.

There is a distinction between:

##A(h) = \sum_{i=1}^\infty w_i(h) ##

versus

##B(h) = \sum_{i=1}^{g(h)} w_i(h)##
Yeah, I know that. That's why I replaced ##h## in terms of ##n## to get an expression in a single variable before differentiating. However, if the function we're talking about is everywhere positive from a to b then certainly the starting and end terms of
$$\lim_{h\rightarrow 0}h^2(-f(a+h)-2f(a+2h)-3f(a+3h)-...+3f(a+(n-3)h)+2f(a+(n-2)h)+f(a+(n-1)h))$$
differ in sign. How to interpret this change in sign?
 
  • #18
Kumar8434 said:
In this case, the limits are constants, aren't they?

By "this case", do you mean one of your own equations?

I'm drawing the analogy between an integral with a variable upper limit and your summations ##\sum_{i=1}^n## where ##n## depends on ##h##.

In the usual sort of summation problem: ## \sum_{i=1}^{n+1} w_i(h) ## can be computed as ##\sum_{i=1}^{n} w_i(h) + w_{n+1}(h)##. ##\ ## However, you are dealing with summations where the functions ##w_i(h)## don't stay constant as the upper index of the summation increases. For example the second term involves ## w_2(h)= f(a + (b-a)/n)## where ##n## is a function of ##h## ##\ ## (i.e. ## h = (b-a)/n## so ##n = (b-a)/h##.)

Using the notation "##h(n)##" to emphasize that ##h## is a function of ##n##, Your sums are of the form ##G(n) = \sum_{k=1}^n w_i(h(n)) ## ##\ ## We cannot compute ##G(n+1)## as ##G(n) + w_{n+1}(h(n))##.

So the sequence of sums ##G_2, G_3,...## is not a sequence of partial sums of the same infinite series and we can't apply convergence tests to it (e.g. the ratio test) that deal with partial sums of the same series. - not that you worry about such things ! :)
 
  • #19
Kumar8434 said:
However, if the function we're talking about is everywhere positive from a to b then certainly the starting and end terms of
$$\lim_{h\rightarrow 0}h^2(-f(a+h)-2f(a+2h)-3f(a+3h)-...+3f(a+(n-3)h)+2f(a+(n-2)h)+f(a+(n-1)h))$$
differ in sign. How to interpret this change in sign?

You've spoken of replacing ##f'(x)## by ##f(x)## , so speaking about "the function" being everywhere positive is ambiguous.

Even if ##f(x)## is a positive function and even if ##f'(x)## is a positive function, a function ##w(h) = f(g(h))## can have a negative derivative ##w'(h)## if ##g'(h)## is negative.
 

1. What is L'Hospital's rule and how is it applied to integration?

L'Hospital's rule is a mathematical theorem that can be used to evaluate indeterminate forms, such as 0/0 or ∞/∞. When applying this rule to integration, it allows us to evaluate certain integrals that would otherwise be difficult or impossible to solve.

2. What is the limit of a sum and how is it related to integration?

The limit of a sum is a concept in calculus that involves finding the value that a sum approaches as the number of terms in the sum approaches infinity. This concept is closely related to integration, as integration is essentially finding the area under a curve, which can be thought of as a sum of infinitely many rectangles.

3. Can L'Hospital's rule be used for all integrals?

No, L'Hospital's rule can only be used for certain types of integrals, specifically those that can be written in the form of an indeterminate form. It cannot be used for integrals that do not have an indeterminate form or for integrals that are not continuous.

4. How do you apply L'Hospital's rule to integration?

To apply L'Hospital's rule to integration, you first need to rewrite the integral as a limit of a sum. Then, use the rule to evaluate the limit, which will give you the value of the integral. It is important to note that L'Hospital's rule can only be applied if the limit of the sum is an indeterminate form.

5. Are there any limitations or drawbacks to using L'Hospital's rule for integration?

Yes, there are some limitations and drawbacks to using L'Hospital's rule for integration. It can only be used for certain types of integrals and it may not always give an accurate result. Additionally, it can be a lengthy and complex process to apply the rule, so it may not be the most efficient method for solving integrals.

Similar threads

Replies
16
Views
2K
Replies
2
Views
1K
Replies
2
Views
1K
Replies
3
Views
972
Replies
1
Views
937
Replies
4
Views
751
Replies
3
Views
1K
Replies
1
Views
163
  • Calculus
Replies
6
Views
1K
Back
Top