Question on derivative of multi variable.

  • Context: Graduate 
  • Thread starter Thread starter yungman
  • Start date Start date
  • Tags Tags
    Derivative Variable
Click For Summary

Discussion Overview

The discussion revolves around the differentiation of multivariable functions, specifically focusing on the derivative \(\frac{\partial u}{\partial A}\) where \(u = A + B\) and both \(A\) and \(B\) are functions of \(x\) and \(y\). Participants explore the implications of treating \(A\) and \(B\) as dependent or independent variables in the context of partial derivatives.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • Some participants express confusion about taking the derivative \(\frac{\partial u}{\partial A}\) due to the interdependence of \(A\) and \(B\) as functions of \(x\) and \(y\).
  • One participant suggests that treating \(A\) and \(B\) as independent leads to incorrect conclusions, specifically regarding \(\frac{\partial B}{\partial A}\) and \(\frac{\partial A}{\partial B}\).
  • Another participant proposes a different example where \(B = \cos(x) + \sin(y)\) to illustrate the complexity of the relationships between the variables.
  • There is a discussion about the validity of \(\frac{\partial A}{\partial u}\) and whether \(A\) can be considered a function of \(u\), with some participants asserting it cannot be.
  • Clarifications are made regarding the dependencies of \(u\), \(A\), and \(B\) on \(x\) and \(y\), suggesting that all three variables are interconnected.

Areas of Agreement / Disagreement

Participants do not reach a consensus on how to treat the relationships between \(A\), \(B\), and \(u\). There are competing views on the validity of certain derivatives and the implications of variable interdependence.

Contextual Notes

Participants note the importance of understanding the relationships between variables when applying the chain rule and taking partial derivatives, but there is no resolution on the correct approach to these relationships.

yungman
Messages
5,741
Reaction score
291
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
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.
 
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:
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)
 
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.
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K