Antiderivative of multivariable function?

Click For Summary

Discussion Overview

The discussion revolves around the possibility of recovering an unknown multivariable function \( f(x_1, \ldots, x_n) \) from its partial derivatives \( \frac{\partial f}{\partial x_i} \). Participants explore the differences between single-variable and multivariable cases, examining the conditions under which an antiderivative may exist.

Discussion Character

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

Main Points Raised

  • Some participants propose that recovering \( f \) from its partial derivatives is analogous to the single-variable case, suggesting that integration can yield \( f \) up to an arbitrary constant.
  • Others argue that the integration of partial derivatives must consider the dimensionality and may require bounded integrals over planes.
  • A participant mentions that the gradient of \( f \) can be treated as a vector field, and integrating along a path can recover \( f \), but this is subject to the choice of initial conditions.
  • Some participants highlight that not all sets of partial derivatives correspond to a single function, citing the need for mixed partial derivatives to be equal as a necessary condition for the existence of \( f \).
  • There is a discussion on the concept of irrotational fields and how it relates to the existence of an antiderivative in higher dimensions.
  • One participant raises a question about generalizing the curl operator to n-dimensions, referencing literature on geometric algebra.

Areas of Agreement / Disagreement

Participants express differing views on the conditions necessary for recovering a multivariable function from its partial derivatives. While some agree on the need for certain conditions (like equality of mixed partials), others present alternative perspectives on integration techniques and the implications of dimensionality. The discussion remains unresolved regarding the generalizability of these concepts.

Contextual Notes

Participants note that the existence of an antiderivative may not hold in all cases, particularly when mixed partial derivatives do not match. The discussion also touches on the limitations of applying single-variable integration techniques to multivariable functions.

mnb96
Messages
711
Reaction score
5
Hello,
if I have the following unknown function [tex]f(x_1,\ldots,x_n)[/tex]

Assuming I am given all its partial derivatives [tex]\frac{\partial f}{\partial x_i}[/tex]

is it possible to get the original function f ?

This is clearly possible for a one-variable function f(x). If we know df/dx we just need to compute the indefinite integral, but what about functions with two or more variables?
 
Physics news on Phys.org
mnb96 said:
Hello,
if I have the following unknown function [tex]f(x_1,\ldots,x_n)[/tex]

Assuming I am given all its partial derivatives [tex]\frac{\partial f}{\partial x_i}[/tex]

is it possible to get the original function f ?

This is clearly possible for a one-variable function f(x). If we know df/dx we just need to compute the indefinite integral, but what about functions with two or more variables?

I don't see why not. What do you do to find the original function for a single variable function?
 
I compute the indefinite integral:

[tex]\int\frac{df}{dx}dx[/tex]

which gives [itex]f[/itex] up to a constant.
But what am I supposed to do when I have a multivariable function then?
 
mnb96 said:
I compute the indefinite integral:

[tex]\int\frac{df}{dx}dx[/tex]

which gives [itex]f[/itex] up to a constant.
But what am I supposed to do when I have a multivariable function then?

[tex]\int\int\frac{df}{dx}\frac{df}{dy}dydx[/tex]

Keep in mind that we do not apply the same concept as we do indefinite integral, the integral has to be bounded by a plane (may it be 2,3, or more)
 
Last edited:
Thanks,
did you mean to write the partial derivatives inside that integral or you really meant the total derivatives? Did you want to write this:

[tex] \int\int\frac{\partial f}{\partial x}\frac{\partial f}{\partial y}dydx[/tex]

And also, when you said "...the integral has to be bounded by a plane (may it be 2,3, or more)...", it means that we can only do that as a definite integra, like this:

[tex] \int_{S\subset\mathbb{R}^2}\frac{\partial f}{\partial x}\frac{\partial f}{\partial y}dydx[/tex]
 
apekattenico said:
[tex]\int\int\frac{df}{dx}\frac{df}{dy}dydx[/tex]

Keep in mind that we do not apply the same concept as we do indefinite integral, the integral has to be bounded by a plane (may it be 2,3, or more)
That is simply not true

You have the gradient of f, which is a vector field:

[tex]\vec{F}=\vec{\nabla}f[/tex]

To obtain f back, the technique is to integrate the vector field along a path going from some arbitrary point [tex]\vec{x}_{0}[/tex] to a general point where the function will be evaluate:
[tex]\vec{x}[/tex]

Since you know the gradient of a scalar field is a conservative field, you are free to choose your path, in this case, the most simple path is a line, so:

[tex]f=\int_{\gamma}\vec{F}.\vec{dx}=\sum_{i}\int^{x_{i}}_{x_{i,0}}F_{i}(\vec{x})dx_{i}[/tex]

Actually, this is not plainly true, since by differentiation you loose constant data, so this solution is true up to an additive constant, or it's true if you select an initial point so that
[tex]f(\vec{x}_{0})=0[/tex]
 
mnb96 said:
Hello,
if I have the following unknown function [tex]f(x_1,\ldots,x_n)[/tex]

Assuming I am given all its partial derivatives [tex]\frac{\partial f}{\partial x_i}[/tex]

is it possible to get the original function f ?

This is clearly possible for a one-variable function f(x). If we know df/dx we just need to compute the indefinite integral, but what about functions with two or more variables?

Sure.

Given, say, f(x,y,z), and you have f_x, then, the anti-derivative of f_x will equal f+G(y,z)

Similarly with the other partial derivatives.

Having all three will put sufficient constraints in order to find f uniquely, up to an arbitrary constant.
 
For elibj123
Ok...I don't know if I understand all your explanation, but in any case, that seems to me definitely a non-trivial result.
Could you please point out some sources where I can study this problem more deeply?
Is it a theorem?

Also, I don't understand your notation for the boundaries of the last integral: [tex]x_{i,0}[/tex] and [tex]x_i[/tex]

Thanks!

For arildno:
is your explanation equivalent to the one elibj123 gave?
 
mnb96 said:
For elibj123
Ok...I don't know if I understand all your explanation, but in any case, that seems to me definitely a non-trivial result.
Could you please point out some sources where I can study this problem more deeply?
Is it a theorem?

Also, I don't understand your notation for the boundaries of the last integral: [tex]x_{i,0}[/tex] and [tex]x_i[/tex]

Thanks!

For arildno:
is your explanation equivalent to the one elibj123 gave?

Yes it is equivalent, and his explanation is more practical for three/two dimensions, while mine is general.

The notation of [tex]x_{i,0}[/tex] is the i-th coordinate of the initial point
And [tex]x_{i}[/tex] the point at which the function is evaluated.

I would suggest reading about vector calculus, there is another thread here with recommendations for book about the subject.
 
  • #10
Hmm, I'd rather say that my version is not equivalent yo elibj's; mine is a special case of elibj's.

They are both, of course, valid.
 
  • #11
arildno said:
Hmm, I'd rather say that my version is not equivalent yo elibj's; mine is a special case of elibj's.

They are both, of course, valid.

Note that, with more than one variable, there may NOT be an antiderivative. For example if we are asked to find a function, f(x,y), such that
[tex]\frac{\partial f}{\partial x}= 2xy[/tex]
and
[tex]\frac{\partial f}{\partial y}= 3xy[/tex]
We can tell immediately that is not possible because the mixed derivatives
[tex]\frac{\partial^2 f}{\partial x\partial y}= \frac{\partial 3xy}{\partial x}= 3y[/tex]
and
[tex]\frac{\partial^2 f}{\partial y\partial x}= \frac{\partial 2xy}{\partial y}= 2x[/tex]
are not the same.

In order that there be a function f(x,y) such that
[tex]\frac{\partial f}{\partial x}= g(x,y)[/tex]
and
[tex]\frac{\partial f}{\partial y}= h(x,y)[/tex]
we must have
[tex]\frac{\partial g}{\partial y}= \frac{\partial h}{\partial x}[/tex]
 
  • #12
thanks a lot to you all.
You provided extremely useful advice and explanations.

hallsofivy:
very interesting observation!
I will try to figure out how to generalize that condition in the n-variables case.
 
Last edited:
  • #13
HallsofIvy said:
Note that, with more than one variable, there may NOT be an antiderivative. For example if we are asked to find a function, f(x,y), such that
[tex]\frac{\partial f}{\partial x}= 2xy[/tex]
and
[tex]\frac{\partial f}{\partial y}= 3xy[/tex]
We can tell immediately that is not possible because the mixed derivatives
[tex]\frac{\partial^2 f}{\partial x\partial y}= \frac{\partial 3xy}{\partial x}= 3y[/tex]
and
[tex]\frac{\partial^2 f}{\partial y\partial x}= \frac{\partial 2xy}{\partial y}= 2x[/tex]
are not the same.

In order that there be a function f(x,y) such that
[tex]\frac{\partial f}{\partial x}= g(x,y)[/tex]
and
[tex]\frac{\partial f}{\partial y}= h(x,y)[/tex]
we must have
[tex]\frac{\partial g}{\partial y}= \frac{\partial h}{\partial x}[/tex]

Since I read the question to concern GRADIENT fields, I neglected to mention that the method I gave would fail otherwise.

Thanks for pointing that out.
 
  • #14
When I was skimming by book on vector calculus, I spotted a solved problem similar to the example I gave, but in 3 dimensions.

The author of the book wrote that given a gradient [tex]\nabla f[/tex], if one wants to recover [tex]f[/tex], then the vector field must be irrotational, that is [tex]\nabla \times f=0[/tex].
I assume that this requirement is equivalent (or contains) the one pointed out by Hallsofivy.

Now, as far as I know the curl operator is specifically 3D.
Is it possible to generalize the requirement [tex]\nabla \times f=0[/tex] to n-dimension?
I have seen a generalization of curl in a paper of Hestenes about Geometric Algebra and Geometric Calculus, but my knowledge in that area is close to zero.
 
  • #15
Yes, and basically the same idea is addressed in the chapter on path integrals of "exact differentials" where the integral from point p to point q is independent of the path.

For example, to find
[tex]\int (2x+y)dx+ (x+ e^y}dy[/tex]
from (1, 0) to (0, 1), we would note that there exist F(x,y) such that
[tex]dF= \frac{\partial F}{\partial x} dx+ \frac{\partial F}{\partial y}dy[/tex]
because
[tex]\frac{\partial^2 F}{\partial x\partial y}= \frac{\partial 2x+y}{\partial y}= 1[/tex]
and
[tex]\frac{\partial^2 F}{\partial y\partial x}= \frac{\partial x+ e^y}{\partial x}= 1[/tex].

That is, given that
[tex]\frac{\partial F}{\partial x}= 2x+y[/tex]
and
[tex]\frac{\partial F}{\partial y}= x+ e^y[/tex]
we can find F (up to an additive constant).

From
[tex]\frac{\partial F}{\partial x}= 2x+y[/tex]
by "integrating with respect to x" we get
[tex]F(x,y)= x^2+ xy+ g(y)[/math]<br /> where, because <a href="https://www.physicsforums.com/insights/partial-differentiation-without-tears/" class="link link--internal">partial differentiation</a> with respect to x treats y like a constant, the "constant of integration" may be a function of y.<br /> <br /> Differentiating that with respect to y,<br /> [tex]\frac{\partial F}{\partial y}= x+ g'(y)= x+ e^y[/tex]<br /> Notice that the "x" terms cancel leaving [itex]g'(y)= e^y[/itex]. That <b>had</b> to happen, since g is a function of x only, and is a consequence of the "mixed partials" being the same. Of course, from [itex]g'(y)= e^y[/itex] we get [itex]g(y)= e^y+ C[/itex] where C now really is a constant.<br /> <br /> That is, [itex]F(x,y)= x^2+ xy+ g(y)= x^2+ xy+ e^y+ C[/itex] is a function having the required partial derivatives and the integral from (1,0) to (0,1) is just F(1,0)- F(0,1)= (1+ 0+ 1+ C)- (0+ 0+ e+ C)= 1- e.[/tex]
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K