Trouble with an Integral: Is the Partial Derivative Method Always Reliable?

  • Context: Graduate 
  • Thread starter Thread starter gnome
  • Start date Start date
  • Tags Tags
    Integral
Click For Summary

Discussion Overview

The discussion revolves around the reliability of using the partial derivative method for evaluating integrals, specifically the integral of the form \(\int_0^1 x^p (\ln x)^3 \, dx\). Participants explore various approaches to the problem, including integration by parts and the application of Leibniz's rule for differentiation under the integral sign.

Discussion Character

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

Main Points Raised

  • Some participants question the validity of defining \(F(p) = \int_0^1 x^p \, dx\) when \(p\) is treated as a constant, arguing that it complicates the differentiation process.
  • Others propose using integration by parts as a more straightforward method to evaluate the integral, suggesting that it avoids potential pitfalls associated with differentiating under the integral sign.
  • A participant introduces the recursion relation \(I_n = -\frac{n}{p+1} I_{n-1}\) derived from integration by parts, which aligns with previous results discussed in the thread.
  • Concerns are raised about the legitimacy of switching the order of integration and differentiation, with some participants emphasizing the need for caution in such operations.
  • There is a discussion about the conditions under which the partial derivative of the integrand must exist for the method to be valid, with questions about the necessity of the derivative being defined over the entire range of integration.

Areas of Agreement / Disagreement

Participants express differing views on the appropriateness of using the partial derivative method versus integration by parts. There is no consensus on which method is superior, and the discussion remains unresolved regarding the reliability of the partial derivative approach in this context.

Contextual Notes

Some participants highlight the potential for confusion when defining auxiliary functions and the implications of treating \(p\) as a constant versus a variable. The discussion also touches on the limitations of the Leibniz rule and the conditions required for its application.

gnome
Messages
1,031
Reaction score
1
This almost seems to easy to be true. Is there anything wrong with this:

[itex]\mbox{Find} \int_0^1 x^p\, (ln\, {x})^3 \, dx[/itex]

[itex]\mbox{First let } F(p) = \int_0^1 x^p\,dx = \frac{x^{p+1}}{p+1} |_0^1 = \frac{1}{p+1}[/itex]

[itex]\frac{\partial}{\partial p}( \frac{1}{p+1}) = \frac{-1}{(p+1)^2}[/itex]

[itex]\mbox{then }F'(p) = \int_0^1 x^p\,ln\,x\,dx = \frac{-1}{(p+1)^2}[/itex]

[itex]\mbox{so now let } G(p) = \int_0^1 x^p\,ln\,x\,dx = \frac{-1}{(p+1)^2}[/itex]

[itex]\frac{\partial}{\partial p} (\frac{-1}{(p+1)^2}) = \frac{2}{(p+1)^3}[/itex]


[itex]\mbox{then }G'(p) = \int_0^1 x^p\,(ln\,x)^2\,dx = \frac{2}{(p+1)^3}[/itex]

[itex]\mbox{Finally let } H(p) = \int_0^1 x^p\,(ln\,x)^2\,dx = \frac{2}{(p+1)^3}[/itex]

[itex]\frac{\partial}{\partial p}( \frac{2}{(p+1)^3}) = \frac{-6}{(p+1)^4}[/itex]

[itex]\mbox{therefore } H'(p) = \int_0^1 x^p\,(ln\,x)^3\,dx = \frac{-6}{(p+1)^4}[/itex]
 
Last edited:
Physics news on Phys.org
I don't understand line 4.
 
p in the problem is a constant, and dx is your variable of integration, and therefore you should not define [tex]F(\fbox{p}) = \mathop \int \limits_0 ^ 1 x ^ p dx[/tex]
A normal Integration by Parts will work. Let:
u = ln3x => du = 3 ((ln2x) / x) dx
dv = xpdx => v = xp + 1 / (p + 1)
[tex]\mathop \int \limits_0 ^ 1 x ^ p \ln ^ 3 x dx = \left. \frac{x ^ {p + 1} \ln ^ 3 x}{p + 1} \right|_0 ^ 1 - \frac{3}{p + 1} \int \limits_0 ^ 1 x ^ p \ln ^ 2 x dx[/tex].
Can you go from here? :)
 
quasar987 said:
I don't understand line 4.

If A = B, dA/dp = dB/dp.

Here, [itex]\mbox{A }= F(p) = \int_0^1 x^p\,dx[/itex]
and
[itex]\mbox{B } = \frac{1}{p+1}[/itex]

And the way I defined F(p), the value of F'(p) is the solution to the original problem.

VietDao29 said:
p in the problem is a constant, and dx is your variable of integration, and therefore you should not define F(p)...
Why not? Why should I not define any "helper" function I want as long as I don't do anything illegal to the original function? p is not necessarily a constant; it's just not the variable of integration. Think of it as [itex]E(p,x) = x^p\,ln^3\,x[/itex], and the original question as [itex]\int_{a(p)}^{b(p)}\,E(p,x)\,dx[/itex]

Yes, it can be solved using integration by parts 3 times, doing 3 logarithmic integrals (and giving the same answer), but isn't this Leibniz Rule method much more elegant?
 
Last edited:
I should have been more specific. It is

[tex]F'(p)=\int_0^1x^p\ln(x)dx[/tex]

that I don't get. To me it would be

[tex]F'(p)=\int_0^1px^{p-1}dx[/tex]
 
You're taking
[itex]F(x) = x^p\,dx[/itex] where p is a constant and differentiating wrt x:
[itex]F'(x) = px^{p-1}[/itex] but you can't do that through the integral sign.
Remember that this is a definite integral so [itex]\int_0^1 x^p\,dx[/itex] is a NUMBER.
If you say [itex]F(x) = \int_0^1 x^p\,dx[/itex], it's like saying [itex]F(x) = 5[/itex] (just picking a number out of the air), but with confusing notation since your x is being used two different ways.
Then [itex]F'(x) = \frac{dF}{dx} = 0[/itex].

I'm making the integrand a function of p and x [call it E(p,x)] and defining the entire rhs (the integral of E) as a function of p, so when I differentiate through the integral sign all I get for F'(p) is the partial derivative of E wrt p (since the limits of integration are both constants), which is equivalent to
[itex]F(p) = x^p[/itex]
[itex]F'(p) = x^p\,ln(x)[/itex] (remember, logarithmic differentiation.)

The general rule is here:
http://mathworld.wolfram.com/LeibnizIntegralRule.html
 
Last edited:
It is certainly admissible to form an auxiliary function with its independent variable being p.

The only thing that might have invalidated the approach would have been where you switch the order of the limiting operations "integration" and "differentiation".

"Normally", however, as in your case, this switch is allowed.
 
For those still skeptical of gnome's result, let us consider the sequence of integrals:
[tex]I_{n}=\int_{0}^{1}x^{p}(\ln(x))^{n}dx}[/tex]
Integration by parts yields, for p>-1:
[tex]I_{n}=\frac{x^{p+1}}{p+1}(\ln(x))^{n}\mid_{x=0}^{x=1}-\frac{n}{p+1}\int_{0}^{1}x^{p}(\ln(x))^{n-1}dx=-\frac{n}{p+1}I_{n-1}[/tex]

That is, we have the recursion relation:
[tex]I_{n}=-\frac{n}{p+1}I_{n-1}[/tex]
which is, precisely, gnome's result, remembering that:
[tex]I_{0}=\frac{1}{p+1}[/tex]
 
arildno said:
The only thing that might have invalidated the approach would have been where you switch the order of the limiting operations "integration" and "differentiation".
.

Please elaborate on what you mean by that. I don't want to inadvertently get into trouble.
 
  • #10
gnome said:
Please elaborate on what you mean by that. I don't want to inadvertently get into trouble.

Let us have an integral of the form:
[tex]I(\alpha)=\int_{a}^{b}f(x,\alpha)dx[/tex]
The derivative of I with respect to alpha is, as usual, given by the expression:
[tex]I'(\alpha)=\lim_{h\to{0}}\frac{I(\alpha+h)-I(\alpha)}{h}=\lim_{h\to{0}}\int_{a}^{b}\frac{f(x,\alpha+h)-f(x,\alpha)}{h}dx[/tex]
where I've used additivity of integrals, among other manipulations.

Now, this limit may well exist, even if, say, the partial derivative of f with respect to alpha does NOT exist.

That is, there exists cases where the above expression is valid, whereas the switched version,
[tex]\int_{a}^{b}(\lim_{h\to{0}}\frac{f(x,\alpha+h)-f(x,\alpha)}{h})dx[/tex]
does not exist, for example if the integrand is undefined.
 
  • #11
If I understand you correctly, in those instances where the partial derivative of f with respect to alpha doesn't exist, this method of finding the definite integral is invalid, so in order to use it one must be certain that the partial derivative is defined. Correct?

But are there instances where the partial derivative IS defined but the integral still cannot be obtained by this method?

Oh, and does the derivative have to be defined everywhere, or is it sufficient that it be defined over the range of the integral?
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 19 ·
Replies
19
Views
5K
  • · Replies 27 ·
Replies
27
Views
3K
Replies
6
Views
2K
  • · Replies 20 ·
Replies
20
Views
4K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K