# Function in terms of its partial derivatives

1. Jan 16, 2012

### bhatiaharsh

Hi,

I remember having read in basic calculus that the following is true, but I dont know what this property is called and am having a hard time finding a reference to this.
$$d u(x,y) = \frac{\partial u}{\partial x} dx + \frac{\partial u}{\partial y} dy$$
Ques: Is this true ? Is this true for all functions? Or is there a condition that the function u should be separable ?

I also think that if this is true, then I should be able to reconstruct the function u by taking the anti-derivative of the above equation:
$$\int d u(x,y) = \int \frac{\partial u}{\partial x} dx + \int \frac{\partial u}{\partial y} dy$$
However, this fails when
$$u(x,y) = x^2y^2$$
Am I missing something here ? If the above holds only for separable functions, is there a way I can reconstruct a function from its partial derivatives ?

Any guidance is appreciated. Thanks.

2. Jan 16, 2012

### chiro

Hello bhatiaharsh and welcome to the forums.

The first expression you listed is known as the total differential. Take a look at this page:

http://en.wikipedia.org/wiki/Total_derivative

In terms of your integral expression, you need some sort of seperation of variables: i.e. the term in the integral has to be in an explicit form and not implicit.

This is not just a property for these kinds of problems, it is a general requirement for calculating integral expressions. If there is an implicit connection to the different variables then you need to transform it into an explicit expression in terms of the variables you are dealing with in terms of the actual integration.

One way of doing this is to find a correct parameterization of the system if that is possible. This can be very very ugly, but it can be a good way to attack this problem if the implicit form of the representation (function whether it describes a line/curve, surface, volume etc) is not easy to separate.

3. Jan 17, 2012

### bhatiaharsh

Thanks for the pointer chiro. I followed on the link you gave and reached exact differential equations. Hopefully learning about that should give me a more clear understanding. But I can already see how separability can be an issue.

4. Jan 19, 2012

### bhatiaharsh

So, if I know $\frac{\partial u}{\partial x},\frac{\partial u}{\partial y},\frac{\partial u}{\partial z}$ can someone help me how can I find $u$ ? Any pointers are appreciated.

5. Jan 19, 2012

### Char. Limit

If you have the partial derivatives of u, finding u is easy, assuming that all the partials lead to the same u. Take $\frac{\partial u}{\partial x}$ for example. Partial integration shows:

$$\int \frac{\partial u}{\partial x} \partial x = f(x,y,z) + C(y,z)$$

where C(y,z) is an arbitrary function that's constant with respect to x. Repeating this with $\frac{\partial u}{\partial y}$ and $\frac{\partial u}{\partial z}$ will give you three functions as shown:

$$f(x,y,z) + C_1(y,z)$$

$$g(x,y,z) + C_2(x,z)$$

$$h(x,y,z) + C_3(x,y)$$

And setting all three of those equal to each other will allow you to figure out what the three Constant functions are. All three of those are equal to u(x,y,z). A simple example with u_x = 2 x y^2 z^2, u_y = 2 x^2 y z^2, u_z = 2 x^2 y^2 z:

$$\int 2 x y^2 z^2 dx = x^2 y^2 z^2 + C_1(y,z)$$

$$\int 2 x^2 y z^2 dy = x^2 y^2 z^2 + C_2(x,z)$$

$$\int 2 x^2 y^2 z dz = x^2 y^2 z^2 + C_3(x,y)$$

Since all three of those are equal to each other, we get $C_1 = C_2 = C_3$ and it's relatively easy to prove that the only function that could fit that profile (it can't be a function of x, because of $C_1$, and symmetry arguments show it can't be a function of y and z either) is the constant function C. So we get that $u = x^2 y^2 z^2 + C$. With an initial value of u, we could get C as well.

Last edited: Jan 19, 2012
6. Jan 20, 2012

### bhatiaharsh

Well, isnt the no of unknowns greater than the no of equations ?
$$u = f_1 + c_1$$
$$u = g_1 + c_2$$
$$u = h_1 + c_3$$
There are 4 unknowns and 3 equations.

Last edited: Jan 20, 2012
7. Jan 21, 2012

### HallsofIvy

Staff Emeritus
No. f1, f2, and f3 are all related to u. They are not independent.

I would have done the problem Char. Limit posed a little differently.

From $u_x= 2xy^2z^2$ we get $u= x^2y^2z^2+ f(y,z)$
(since the partial derivative with respect to x treats y and z a constants, the "constant" of integration may be a function of y and z)

Now differentiate that with respect to y: $u_y= 2x^2yz^2+ f_y$.
Comparing that to the given $u_y= 2x^2yz^2$ we see that we must have f_y= 0. That means that f is not a function of y but a function of z only. But then differentiating $u= x^2y^2z^2+ f(z)$ with respect to z we get $u_z= 2x^2y^2z+ f_z$ and comparing that to the given equation, we have $f_x= 0$ so that f is, in fact, a constant.

The problem would be a little more interesting if it were $u_x= 2xy^2z^2$, $u_y= 2x^2yz^2+ 4y$, $u_z= 2x^2y^2z+ e^z$. Try solving those for u.

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook