Question on derivative of multi variable.

In summary: ThanksIn summary, the conversation discusses the difficulty of taking the derivative of u with respect to A, where u=A+B and A and B are both functions of x and y. The conversation also includes incorrect calculations using the chain rule and a clarification of the relationship between u, A, and B. It is ultimately concluded that A and B are not independent of each other, even though they both depend on the same variables x and y.
  • #1
yungman
5,755
293
I have a hard time taking the derivative [tex] \frac{\partial u}{\partial A} [/tex]

Where [tex] u=A+B[/tex] and [tex]A = x+2y,B = x-2y [/tex]

This is because A and B are both function of x and y. I don't think I can treat A and B as totally indenpend to each other where

[tex] \frac{\partial B}{\partial A}=0, \frac{\partial A}{\partial B}=0 [/tex] .

This is what I did and please tell me what did I do wrong.

[tex]A = x+2y,B = x-2y \Rightarrow x=\frac{A +B}{2}, y=\frac{A - B}{4} [/tex]

[tex]\Rightarrow \frac{\partial A}{\partial x}= 1 , \frac{\partial A}{\partial y}= 2 , \frac{\partial B}{\partial x}= 1 , \frac{\partial B}{\partial y}= -2[/tex]


[tex]x=\frac{A +B}{2}\Rightarrow \frac{\partial x}{\partial A}=\frac{1}{2} [\frac{\partial A}{\partial A}+\frac{\partial B}{\partial x}\frac{\partial x}{\partial A}] = \frac{1}{2} [1 + \frac{\partial B}{\partial x}\frac{\partial x}{\partial A}] = \frac{1}{2} + \frac{1}{2}\frac{\partial x}{\partial A}\Rightarrow \frac{\partial x}{\partial A} = 1[/tex]

[tex]y=\frac{A - B}{4} \Rightarrow \frac{\partial y}{\partial A}=\frac{1}{4} [\frac{\partial A}{\partial A}- \frac{\partial B}{\partial y}\frac{\partial y}{\partial A}] = \frac{1}{4} [1 + 2\frac{\partial y}{\partial A}] = \frac{1}{4} + \frac{1}{2}\frac{\partial y}{\partial A}\Rightarrow \frac{\partial y}{\partial A} = \frac{1}{2}[/tex]

[tex]\frac{\partial y}{\partial B}=\frac{1}{4} [\frac{\partial A}{\partial y}\frac{\partial y}{\partial B} - \frac{\partial B}{\partial B}] = \frac{1}{4} [ 2\frac{\partial y}{\partial B} - 1] = \frac{1}{2}\frac{\partial y}{\partial B} -\frac{1}{4} \Rightarrow \frac{\partial y}{\partial B} = -\frac{1}{2}[/tex]

[tex]\frac{\partial u}{\partial A} = \frac{\partial A}{\partial A}+ \frac{\partial B}{\partial x}\frac{\partial x}{\partial A} + \frac{\partial B}{\partial y}\frac{\partial y}{\partial A} = 1 +\frac{\partial B}{\partial x} + \frac{1}{2}\frac{\partial B}{\partial y} = 0[/tex]

Obviously I did it wrong, can anyone tell me what I did wrong. This is not homework. Question is how to treat A and B when they both are function of x & y.

Thanks
 
Last edited:
Physics news on Phys.org
  • #2
yungman said:
I have a hard time taking the derivative [tex] \frac{\partial u}{\partial A} [/tex]

Where [tex] u=A+B[/tex] and [tex]A = x+2y,B = x-2y [/tex]
So u= (x+2y)+ (x- 2y)= 2x?
[tex]\frac{\partial u}{\partial x}= 2[/tex]
[tex]\frac{\partial u}{\partial y}= 0[/tex]

Or the chain rule:
[tex]\frac{\partial u}{\partial x}= \frac{\partial u}{\partial A}\frac{\partial A}{\partial x}+ \frac{\partial u}{\partial B}\frac{\partial B}{\partial x}[/tex]
[tex]= 1(1)+ 1(1)= 2[/tex]

[tex]\frac{\partial u}{\partial y}= \frac{\partial u}{\partial A}\frac{\partial A}{\partial y}+ \frac{\partial u}{\partial B}\frac{\partial B}{\partial y}[/tex]
[tex]= 1(2)+ 1(-2)= 0[/tex]

This is because A and B are both function of x and y. I don't think I can treat A and B as totally indenpend to each other where

[tex] \frac{\partial B}{\partial A}=0, \frac{\partial A}{\partial B}=0 [/tex] .
That doesn't matter.

This is what I did and please tell me what did I do wrong.

[tex]A = x+2y,B = x-2y \Rightarrow x=\frac{A +B}{2}, y=\frac{A - B}{4} [/tex]

[tex]\Rightarrow \frac{\partial A}{\partial x}= 1 , \frac{\partial A}{\partial y}= 2 , \frac{\partial B}{\partial x}= 1 , \frac{\partial B}{\partial y}= -2[/tex]


[tex]x=\frac{A +B}{2}\Rightarrow \frac{\partial x}{\partial A}=\frac{1}{2} [\frac{\partial A}{\partial A}+\frac{\partial B}{\partial x}\frac{\partial x}{\partial A}] = \frac{1}{2} [1 + \frac{\partial B}{\partial x}\frac{\partial x}{\partial A}] = \frac{1}{2} + \frac{1}{2}\frac{\partial x}{\partial A}\Rightarrow \frac{\partial x}{\partial A} = 1[/tex]

[tex]y=\frac{A - B}{4} \Rightarrow \frac{\partial y}{\partial A}=\frac{1}{4} [\frac{\partial A}{\partial A}- \frac{\partial B}{\partial y}\frac{\partial y}{\partial A}] = \frac{1}{4} [1 + 2\frac{\partial y}{\partial A}] = \frac{1}{4} + \frac{1}{2}\frac{\partial y}{\partial A}\Rightarrow \frac{\partial y}{\partial A} = \frac{1}{2}[/tex]

[tex]\frac{\partial y}{\partial B}=\frac{1}{4} [\frac{\partial A}{\partial y}\frac{\partial y}{\partial B} - \frac{\partial B}{\partial B}] = \frac{1}{4} [ 2\frac{\partial y}{\partial B} - 1] = \frac{1}{2}\frac{\partial y}{\partial B} -\frac{1}{4} \Rightarrow \frac{\partial y}{\partial B} = -\frac{1}{2}[/tex]

[tex]\frac{\partial u}{\partial A} = \frac{\partial A}{\partial A}+ \frac{\partial B}{\partial x}\frac{\partial x}{\partial A} + \frac{\partial B}{\partial y}\frac{\partial y}{\partial A} = 1 +\frac{\partial B}{\partial x} + \frac{1}{2}\frac{\partial B}{\partial y} = 0[/tex]

Obviously I did it wrong, can anyone tell me what I did wrong. This is not homework. Question is how to treat A and B when they both are function of x & y.

Thanks
I don't know that there is any thing wrong with what you did, but I don't know why you would do it. Neither the derivative of x with respect A nor the derivative of y with respect to B is relevant to your original question.
 
  • #3
Thanks for your reply.

I gave a bad example that it simplify into 2x. I since read the Chain Rule again. I just want to double check with you:

Assumming [tex] A=x+2y, B=cos(x)+sin(y)[/tex] so it cannot be simplify like the other one. Please tell me the two points I make below is correct:



1) My understanding now is in order for [tex]\frac{\partial u}{\partial A}[/tex] to be valid, A has to be a function of u. [tex]\frac{\partial A}{\partial u}[/tex] is invalid because u is not a function of A and therefore [tex]\frac{\partial A}{\partial u} = 0[/tex].

2) THis also true that A is not a function of B or the other way around EVEN both contain the same two variable x and y. Therefore
[tex]\frac{\partial A}{\partial B} = 0,\frac{\partial B}{\partial A} = 0 [/tex].

THanks
 
Last edited:
  • #4
yungman said:
[tex]\frac{\partial A}{\partial u}[/tex] is invalid because u is not a function of A and therefore [tex]\frac{\partial A}{\partial u} = 0[/tex].
You probably meant to say "because A is not a function of u". But if u=A+B, then A=u-B. So A does depend on u. (u,A, and B all depend on each other, namely because they all depend on x and y and those are the actual variables)
 
  • #5
Landau said:
You probably meant to say "because A is not a function of u". But if u=A+B, then A=u-B. So A does depend on u. (u,A, and B all depend on each other, namely because they all depend on x and y and those are the actual variables)

Can you tell me how should I look at it? I am still pretty confused.
 

FAQ: Question on derivative of multi variable.

What is a derivative of a multi-variable function?

A derivative of a multi-variable function is a mathematical concept that measures the rate of change of the function with respect to its input variables. It represents the slope of the function at a particular point and can be used to find the direction of steepest ascent or descent of the function.

How is the derivative of a multi-variable function calculated?

The derivative of a multi-variable function can be calculated using partial derivatives. This involves taking the derivative of the function with respect to each input variable while holding the other variables constant. The resulting values are then combined to form a gradient vector, which represents the direction and magnitude of the function's slope at a given point.

What is the significance of the derivative of a multi-variable function in science?

In science, the derivative of a multi-variable function is used to model and analyze various physical phenomena, such as motion, rates of change, and optimization problems. It is also an essential tool in fields such as physics, economics, and engineering for understanding the behavior of complex systems.

Can the derivative of a multi-variable function be negative?

Yes, the derivative of a multi-variable function can be negative. This indicates that the function is decreasing in a particular direction, and the slope is downward. Similarly, a positive derivative indicates an increasing function with an upward slope, and a derivative of zero represents a constant function with no change in slope.

Are there any real-life applications of the derivative of a multi-variable function?

Yes, there are numerous real-life applications of the derivative of a multi-variable function, such as in physics for calculating acceleration and velocity, in economics for optimizing production and cost functions, and in machine learning for gradient descent algorithms. It is also used in everyday tasks, such as determining the optimal route for a road trip or finding the maximum profit for a business.

Similar threads

Replies
3
Views
2K
Replies
1
Views
2K
Replies
6
Views
2K
Replies
17
Views
2K
Replies
5
Views
1K
Replies
5
Views
1K
Replies
4
Views
2K
Back
Top