Derivative of integral of function with respect to the function

In summary, the conversation is about finding a way to prove that if a certain function g is increased, then another function q will also increase. The conversation involves discussing the use of functional derivatives and variational derivatives, as well as applying the chain rule to find the derivative of q with respect to g. The conversation also touches on the properties of a CDF and a PDF and how they relate to the functions in question.
  • #1
DCG
6
0
Hi all,

I have the following quantity:

[itex]f = \int_{\mu}^{\infty} (1-F(x))a(x)dx[/itex]

I want to claim that by increasing the following quantity:

[itex]g = \int_{\mu}^{\infty} a(x)f(x)dx[/itex]

then [itex] f [/itex] can only increase. Can I differentiate [itex] f [/itex] with respect
to [itex] g [/itex]? Is the following correct?

[itex] \frac{\partial (\int_{\mu}^{\infty} (1-F(x))a(x)dx)}{\partial (\int_{\mu}^{\infty} a(x)f(x)dx)}[/itex]

[itex] = \frac{\frac{\partial (\int_{\mu}^{\infty} (1-F(x))a(x)dx)}{\partial x}}{\frac{\partial (\int_{\mu}^{\infty} a(x)f(x)dx)}{\partial x}}[/itex]

[itex] = \frac{(1-F(x))a(x)}{f(x)a(x)} [/itex]

[itex] = \frac{1-F(x)}{f(x)} [/itex]

I already know that [itex] a(x) > 0 [/itex] for [itex] x>\mu[/itex] and that [itex] \frac{1-F(x)}{f(x)} [/itex] is positive. Therefore [itex] f [/itex] increases when [itex] g [/itex] is increased. Does this resolve the problem?

Thank you for taking the time to read and answer!
 
Physics news on Phys.org
  • #2
No, because you cannot differentiate f and g with respect to x- they are not functions of x.
 
  • #3
Oh I see. Any pointers on how I could approach this though? Is there a name for this kind of problem? Anything I could read that could help me?

Thanks a lot!
 
  • #4
It's not clear what you're trying to do. You have an expression for f that doesn't depend on g at all. Why are you talking about increasing g? Is F(x) given, or is the problem to determine F(x) in terms of g?
 
  • #5
DCG said:
Hi all,

I have the following quantity:

[itex]f = \int_{\mu}^{\infty} (1-F(x))a(x)dx[/itex]

I want to claim that by increasing the following quantity:

[itex]g = \int_{\mu}^{\infty} a(x)f(x)dx[/itex]
In the second line, you have f as a function of one variable, x. But the first line doesn't make it a function of x. Rather, it appears to be a function of μ, and/or a functional of F(), a().
 
  • #6
I am sorry, my choice of variable names is terrible. Let:

[itex]q = \int_{\mu}^{\infty} (1-F(x))a(x)dx[/itex]

In my first post I named it [itex]f[/itex] and it has nothing to do with [itex]f(x)[/itex].

[itex]g = \int_{\mu}^{\infty} a(x)f(x)dx[/itex]

Here [itex]F(x),f(x)[/itex] are fixed. They are the cdf and pdf of a regular distribution, [itex]\mu[/itex] is also fixed. It is the mean of that distribution. The only thing not fixed here is [itex]a(x)[/itex]. This function is positive for [itex]x>\mu[/itex] and is also monotone non-decreasing. My problem is the following:

Suppose I have some specific [itex]a(x)[/itex] and I want to replace it by another function ([itex]a_2[/itex]) with the same properties. Let:

[itex]q_2 = \int_{\mu}^{\infty} (1-F(x))a_2(x)dx[/itex]

and

[itex]g_2 = \int_{\mu}^{\infty} a_2(x)f(x)dx[/itex]

I want to prove that if [itex]g_2 \geq g[/itex] then [itex]q_2 \geq q[/itex]. Thanks your time.
 
  • #7
So I read a bit about functional derivatives. It seems like [itex]q=q(a)[/itex] is a functional. It maps functions to numbers. So I can try and find its derivative with respect to [itex]a[/itex]. According to what I read:

[itex]\int \frac{\partial q(a)}{\partial a(x)}h(x)dx = {lim}_{\epsilon \rightarrow 0} \frac{q(a + \epsilon h) - q(a)}{\epsilon}[/itex]

[itex]= {lim}_{\epsilon \rightarrow 0} \frac{q(a) + \epsilon q(h) - q(a)}{\epsilon}[/itex] [itex]= q(h) = \int_{\mu}^{\infty}(1-F(x))h(x)[/itex]

Now if I assume that [itex]h(x)[/itex] is defined only on [itex][\mu ,\infty ][/itex] I have that:

[itex]\int_{\mu}^{\infty} \frac{\partial q(a)}{\partial a(x)}h(x)dx = \int_{\mu}^{\infty}(1-F(x))h(x)[/itex]

which means that (I am not sure about this):

[itex]\frac{\partial q(a)}{\partial a(x)} = (1-F(x))[/itex]

In the same way it turns out that [itex]\frac{\partial g(a)}{\partial a(x)} = f(x) [/itex]

Using the chain rule I get:

[itex]\frac{\partial q(a)}{\partial g(a)} = \frac{\frac{\partial q(a)}{\partial a(x)}}{\frac{\partial g(a)}{\partial a(x)}} = \frac{1-F(x)}{f(x)} \geq 0[/itex]

Does this even resemble anything valid?
 
  • #8
That's more or less right, but you might run into problems trying to do it that way when your functionals aren't linear in your function a(x). When doing variational derivatives it's helpful to use the identity

$$\frac{\delta a(x)}{\delta a(y)} = \delta(x-y),$$
where ##\delta(x-y)## is the Dirac delta function (I will assume you know what this is, but ask if you don't). If we take the variational derivative of, say, g = g[a], we get

$$\frac{\delta g[a]}{\delta a(y)} = \int_{\mu}^\infty dx~f(x) \frac{\delta a(x)}{\delta a(y)} = \int_{\mu}^\infty dx~f(x) \delta(x-y) = f(y)\Theta(y-\mu),$$
where ##\Theta(x)## is the Heaviside step function, which appears because the delta function doesn't contribute anything to the integral unless y is in the integration range.

I'll let you try the variational derivative of q[a] for yourself.

What the derivative tells you is that if you have some fixed ##a(x)## and you perturb it to ##a(x) + \epsilon \delta a(x),## where ##\epsilon## is some small number and ##\delta a(x)## is O(1), then

$$g[a + \epsilon \delta a] \approx g[a] + \epsilon \int_{\mu}^\infty dy f(y) \delta a(y);$$
(well, it's exactly equal to that in this case because g was linearly dependent on a, but this is basically the functional equivalent of the tangent approximation to a function).

That said, I'll have to think for a second if the chain rule would work like that for variational derivatives.
 
  • #9
Hey DCG and welcome to the forums.

You have a PDF so it means that the CDF is monotonic increasing. This implies 1 - F(x) is monotonic decreasing.

If g2 > g then this means integral of (a2(x) - a(x))f(x)dx over the appropriate interval is > 0. If q2 > q then this means integral (a2(x) - a(x))(1 - F(x))dx over the appropriate interval is also > 0.

But (a2(x) - a(x))(1 - F(x)) = (a2(x) - a(x)) - F(x)(a_2(x) - a(x)) which implies integral (a_2(x) - a(x))dx > F(x)(a_2(x) - a(x))dx over the right region (which makes sense).

Now we know (a_2(x) - a(x))dx > 0 and we know that F(x) <= 1 for any x by the properties of the CDF so the above inequality holds.
 
  • #10
To push the functional way of doing it a little bit further (although DCG might be happy with chiro's solution, which is less technically demanding than what I'm about to do), I think the way you would need to think about things is like this: suppose g is just a variable, not a functional. Then we could interpret a(x) as a function of both x and g, which is determined by solving the integral equation

$$g = \int_{\mu}^\infty dx~f(x)a(x|g).$$

Differentiating implicitly with respect to g gives

$$1 = \int_{\mu}^\infty dx~f(x)\frac{\partial a(x|g)}{\partial g}.$$
Notice that if we set g = 1 in the first equation we would have a similar equation to this second one, suggesting that we can state

$$a(x|1) = \frac{\partial a(x|g)}{\partial g},$$
where a(x|1) is the solution to the original integral equation with g = 1.

Now, we can also consider q to be a function of g. (q is no longer considered to be a functional of a because a is determined by solving the integral equation). So,

$$q(g) = \int_{\mu}^\infty dx~(1-F(x))a(x|g),$$
and
$$\frac{\partial q(g)}{\partial g} = \int_{\mu}^\infty dx~(1-F(x))a(x|1).$$

One could then presumably solve the integral equation for a(x|1), and could then insert the solution into the equation for q'(g). Of course, the problem is that I don't think you get a unique solution. Suppose I set ##a(x|1) = h(x)/f(x)##, assuming f(x) is never zero on ##(\mu,\infty)##. Then all I need to do is pick any function h(x) that's normalizable on ##(\mu,\infty)##.
 
Last edited:
  • #11
chiro said:
Hey DCG and welcome to the forums.

You have a PDF so it means that the CDF is monotonic increasing. This implies 1 - F(x) is monotonic decreasing.

If g2 > g then this means integral of (a2(x) - a(x))f(x)dx over the appropriate interval is > 0. If q2 > q then this means integral (a2(x) - a(x))(1 - F(x))dx over the appropriate interval is also > 0.

But (a2(x) - a(x))(1 - F(x)) = (a2(x) - a(x)) - F(x)(a_2(x) - a(x)) which implies integral (a_2(x) - a(x))dx > F(x)(a_2(x) - a(x))dx over the right region (which makes sense).

Now we know (a_2(x) - a(x))dx > 0 and we know that F(x) <= 1 for any x by the properties of the CDF so the above inequality holds.

Thank you for your answer but I do not understand what happened to f(x) in the integral of
(a2(x)-a1(x))f(x)dx >0
this does not imply that integral(a2(x)-a1(x))dx > 0
since f(x) could allocate more probability mass to intervals where a2(x)>a1(x) and less to opposite ones.
 
  • #12
Mute said:
To push the functional way of doing it a little bit further (although DCG might be happy with chiro's solution, which is less technically demanding than what I'm about to do), I think the way you would need to think about things is like this: suppose g is just a variable, not a functional. Then we could interpret a(x) as a function of both x and g, which is determined by solving the integral equation

$$g = \int_{\mu}^\infty dx~f(x)a(x|g).$$

Differentiating implicitly with respect to g gives

$$1 = \int_{\mu}^\infty dx~f(x)\frac{\partial a(x|g)}{\partial g}.$$
Notice that if we set g = 1 in the first equation we would have a similar equation to this second one, suggesting that we can state

$$a(x|1) = \frac{\partial a(x|g)}{\partial g},$$
where a(x|1) is the solution to the original integral equation with g = 1.

Now, we can also consider q to be a function of g. (q is no longer considered to be a functional of a because a is determined by solving the integral equation). So,

$$q(g) = \int_{\mu}^\infty dx~(1-F(x))a(x|g),$$
and
$$\frac{\partial q(g)}{\partial g} = \int_{\mu}^\infty dx~(1-F(x))a(x|1).$$

One could then presumably solve the integral equation for a(x|1), and could then insert the solution into the equation for q'(g). Of course, the problem is that I don't think you get a unique solution. Suppose I set ##a(x|1) = h(x)/f(x)##, assuming f(x) is never zero on ##(\mu,\infty)##. Then all I need to do is pick any function h(x) that's normalizable on ##(\mu,\infty)##.

I like this approach. Since the only thing that I want to prove is that if g increases then
q can only increase or stay the same, it suffices to prove that:

[itex]\frac{\partial q(g)}{\partial g} \geq 0[/itex]

Thank you all for the answers.This was really helpful. I think that I am in the right direction now, so I will try to work it out.
 
  • #13
DCG said:
Thank you for your answer but I do not understand what happened to f(x) in the integral of
(a2(x)-a1(x))f(x)dx >0
this does not imply that integral(a2(x)-a1(x))dx > 0
since f(x) could allocate more probability mass to intervals where a2(x)>a1(x) and less to opposite ones.

What does g2 - g >= 0 imply in terms of the integral?
 

1. What is the derivative of the integral of a function with respect to the function?

The derivative of the integral of a function with respect to the function is simply the original function itself. This is known as the Fundamental Theorem of Calculus.

2. How is the derivative of the integral of a function found?

The derivative of the integral can be found by using the Fundamental Theorem of Calculus. This theorem states that the derivative of the integral of a function with respect to its variable is equal to the original function.

3. Can the derivative of the integral of a function be used to find the area under a curve?

Yes, the derivative of the integral of a function can be used to find the area under a curve. This is because the derivative of the integral is equal to the original function, which represents the rate of change of the function at a given point. This rate of change can be used to find the area under the curve.

4. Is the derivative of the integral of a function always the same as the original function?

Yes, the derivative of the integral of a function is always the same as the original function. This is because of the Fundamental Theorem of Calculus, which states that the derivative of the integral of a function with respect to its variable is equal to the original function.

5. What is the relationship between the derivative and the integral of a function?

The derivative and the integral of a function are inversely related. The integral of a function represents the accumulation of its derivative, while the derivative of the integral is equal to the original function. This relationship is described by the Fundamental Theorem of Calculus.

Similar threads

Replies
1
Views
902
Replies
2
Views
1K
Replies
1
Views
907
Replies
4
Views
336
Replies
3
Views
1K
Replies
2
Views
1K
  • Calculus
Replies
9
Views
1K
  • Calculus
Replies
6
Views
1K
Replies
20
Views
2K
  • Calculus
Replies
11
Views
2K
Back
Top