Antiderivative of multivariable function?

In summary, we discussed the possibility of obtaining the original function f(x_1,...,x_n) when given all its partial derivatives \frac{\partial f}{\partial x_i}. It is possible to do so for one-variable functions by computing the indefinite integral, but the method is not as straightforward for functions with two or more variables. Both elibj123 and arildno provided explanations on how to find f by integrating the gradient of f along a path, with elibj123's explanation being more practical for three/two dimensions. It should be noted, however, that there may not always be an antiderivative for multivariable functions, as seen in the example where the mixed partial derivatives do not match.
  • #1
mnb96
715
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
  • #2
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?
 
  • #3
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?
 
  • #4
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:
  • #5
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]
 
  • #6
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]
 
  • #7
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.
 
  • #8
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?
 
  • #9
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]
where, because partial differentiation with respect to x treats y like a constant, the "constant of integration" may be a function of y.

Differentiating that with respect to y,
[tex]\frac{\partial F}{\partial y}= x+ g'(y)= x+ e^y[/tex]
Notice that the "x" terms cancel leaving [itex]g'(y)= e^y[/itex]. That had 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.

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.
 

1. What is an antiderivative of a multivariable function?

An antiderivative of a multivariable function is a function that, when differentiated, gives the original function as its result. It is the inverse operation of differentiation.

2. How do you find the antiderivative of a multivariable function?

To find the antiderivative of a multivariable function, you need to integrate the function with respect to each variable separately. This means treating all other variables as constants and integrating each term separately.

3. Can a multivariable function have multiple antiderivatives?

Yes, a multivariable function can have multiple antiderivatives because the constant of integration may vary for each variable when integrating separately.

4. What is the relationship between antiderivatives and indefinite integrals?

Antiderivatives and indefinite integrals are essentially the same concept. An indefinite integral is the set of all possible antiderivatives of a given function.

5. Are there any limitations to finding the antiderivative of a multivariable function?

Yes, there are limitations to finding the antiderivative of a multivariable function. The function must be continuous and well-behaved, and the variables must be independent of each other. Additionally, there may be cases where the antiderivative cannot be expressed in terms of elementary functions and requires more advanced techniques such as numerical integration.

Similar threads

Replies
3
Views
1K
Replies
2
Views
1K
Replies
5
Views
351
  • Calculus
Replies
14
Views
1K
Replies
1
Views
899
Replies
3
Views
1K
  • Calculus
Replies
4
Views
896
Replies
24
Views
2K
Replies
20
Views
2K
Back
Top