Partial Differentiation -- If w=x+y and s=(x^3)+xy+(y^3), find 𝝏w/𝝏s

Click For Summary
SUMMARY

The discussion centers on calculating the partial derivative 𝝏w/𝝏s given the equations w = x + y and s = x^3 + xy + y^3. Participants explore implicit differentiation and the implications of holding variables constant during differentiation. The confusion arises from the relationship between the variables and the need to clarify which parameters are held constant when differentiating. Ultimately, the conversation emphasizes the importance of understanding the chain rule and the conditions under which partial derivatives are calculated.

PREREQUISITES
  • Understanding of partial derivatives and their notation
  • Familiarity with implicit differentiation techniques
  • Knowledge of the chain rule in calculus
  • Basic concepts of multivariable functions
NEXT STEPS
  • Study the application of the chain rule in multivariable calculus
  • Learn about implicit differentiation and its applications
  • Explore examples of partial derivatives in polar coordinates
  • Review Jacobian matrices and their role in changing variables
USEFUL FOR

Students and professionals in mathematics, physics, and engineering who are dealing with multivariable calculus and need to understand the intricacies of partial differentiation and implicit functions.

  • #31
haruspex said:
In principle, you can differentiate both the expression for t and the expression for s partially wrt s to get two equations involving 𝝏x/𝝏s and 𝝏y/𝝏s, and hence solve for those. But it will get very messy.
I did it this way to verify the answer of post 28, and it's not too difficult if you use Kramer's rule type solution to the two linear equations.
 
  • Like
Likes   Reactions: Delta2
Physics news on Phys.org
  • #32
So here in this problem when we take the partial derivatives ##\frac{\partial x}{\partial s},\frac{\partial y}{\partial s}## we assume that we keep t constant?
And when calculating ##\frac{\partial x}{\partial t},\frac{\partial y}{\partial t}## we assume that we keep s constant?
 
  • Like
Likes   Reactions: Charles Link
  • #33
Delta2 said:
So here in this problem when we take the partial derivatives ##\frac{\partial x}{\partial s},\frac{\partial y}{\partial s}## we assume that we keep t constant?
And when calculating ##\frac{\partial x}{\partial t},\frac{\partial y}{\partial t}## we assume that we keep s constant?
Yes. As I wrote, this could have been made clearer, but it is fairly standard that the reader is expected to figure out how the different sets of variables relate, and hence what is being kept constant in each partial derivative.
 
  • Like
Likes   Reactions: Charles Link and Delta2
  • #34
haruspex said:
Yes. As I wrote, this could have been made clearer, but it is fairly standard that the reader is expected to figure out how the different sets of variables relate, and hence what is being kept constant in each partial derivative.
Ok fine but something doesn't look quite right to me. The chain rule is
$$1=\frac{\partial s}{\partial s}=\frac{\partial s}{\partial x}\frac{\partial x}{\partial s}+\frac{\partial s}{\partial y}\frac{\partial y}{\partial s}$$.
In the above when we calculate for example ##\frac{\partial s}{\partial x}## we keep constant y, but when we calculate ##\frac{\partial x}{\partial s}## we keep constant t. Isn't that contradicting or it's that how the chain rule is supposed to work?
 
  • #35
Delta2 said:
Ok fine but something doesn't look quite right to me. The chain rule is
$$1=\frac{\partial s}{\partial s}=\frac{\partial s}{\partial x}\frac{\partial x}{\partial s}+\frac{\partial s}{\partial y}\frac{\partial y}{\partial s}$$.
In the above when we calculate for example ##\frac{\partial s}{\partial x}## we keep constant y, but when we calculate ##\frac{\partial x}{\partial s}## we keep constant t. Isn't that contradicting or it's that how the chain rule is supposed to work?
If you take x and y there as Cartesian coordinates and s as the r of polar coordinates your equation gives ##1=\cos^2(\theta)+\sin^2(\theta)##.
How about that?
 
  • #36
Something just doesn't look quite right to me, I guess because we change on the fly what is supposed to be kept constant, but anyway I guess that's how the chain rule is supposed to work.
 
  • #37
Thanks, all, for the help. Using Kramer's rule to solve for the answer made it nice and easy.
 
  • Like
Likes   Reactions: Charles Link and Delta2
  • #38
I think the polar coordinates example demonstrating you can flip the partial derivatives is misleading because small moves in r and theta are orthogonal to each other, or maybe was just a lucky choice of coordinates.

Let t=x, s=x+y. Then ##\partial s / \partial x = 1##, but when you flip the coordinates you get x=t,y=s-t, and ##\partial x / \partial s= 0##.

The proper thing to do is to write down the Jacobian matrix, and then when you flip the coordinates you can just invert the Jacobian.
 
  • #39
Delta2 said:
Ok fine but something doesn't look quite right to me. The chain rule is
$$1=\frac{\partial s}{\partial s}=\frac{\partial s}{\partial x}\frac{\partial x}{\partial s}+\frac{\partial s}{\partial y}\frac{\partial y}{\partial s}$$.
In the above when we calculate for example ##\frac{\partial s}{\partial x}## we keep constant y, but when we calculate ##\frac{\partial x}{\partial s}## we keep constant t. Isn't that contradicting or it's that how the chain rule is supposed to work?
In this problem, it is something of the form ## s=u_a v_a+u_b v_b ##. In this case ## \frac{\partial{s}}{\partial{s}}=u_a (\frac{\partial{v_a}}{\partial{s}})+v_a (\frac{ \partial{u_a}}{\partial{s}}) + (similarly \, for \, b)##. The partials on ## u ## and ## v ## are done with the chain rule. (We also have ## s=s(u_a, v_a, u_b,v_b) ##, and we apply the chain rule in taking the partial w.r.t. ##s ##, e.g. first taking the partial w.r.t. ## u_a ##, and treating the others as constants, etc., and then taking partial w.r.t. ## v_a ##, etc.).
 
Last edited:
  • #40
Charles Link said:
In this problem, it is something of the form ## s=u_a v_a+u_b v_b ##. In this case ## \frac{\partial{s}}{\partial{s}}=u_a (\frac{\partial{v_a}}{\partial{s}})+v_a (\frac{ \partial{u_a}}{\partial{s}}) + (similarly \, for \, b)##. The partials on ## u ## and ## v ## are done with the chain rule. (We also have ## s=s(u_a, v_a, u_b,v_b) ##, and we apply the chain rule in taking the partial w.r.t. ##s ##, e.g. first taking the partial w.r.t. ## u_a ##, and treating the others as constants, etc., and then taking partial w.r.t. ## v_a ##, etc.).
Hm, sorry I just can't understand what are the ##u_a,v_a,u_b,v_b##. Don't we just take ##s=x^3+xy+y^3## and apply the chain rule as in post #34 to get 1 equation and then also do similar $$0=\frac{\partial t}{\partial s}=\frac{\partial t}{\partial x}\frac{\partial x}{\partial s}+\frac{\partial t}{\partial y}\frac{\partial y}{\partial s}$$ to get the other equation with ##t=x^2y+xy^2##
 
  • #41
I think it is something we have all done so often that we do it almost automatically. The partials are difficult to write out in Latex, so let me do implicit differentials as the first step: ##dt=3x^2 \, dx+x\, dy+y \, dx+3y^2 \, dy ##. You then make each differential a partial w.r.t. ## s ##.
 
  • Like
Likes   Reactions: Delta2
  • #42
Office_Shredder said:
I think the polar coordinates example demonstrating you can flip the partial derivatives is misleading
Which post are you referring to?
 
  • #43
haruspex said:
Which post are you referring to?
#17, though I now realize #18 is observing that it didn't work, so I guess my example was not helpful.
 
  • #44
Charles Link said:
I did it this way to verify the answer of post 28, and it's not too difficult if you use Kramer's rule type solution to the two linear equations.
Do you mean Cramer's rule?
 
  • Like
Likes   Reactions: Charles Link
  • #45
haruspex said:
Do you mean Cramer's rule?
Did I misspell it? I remember it from my second course in high school algebra, which was about 50 years ago. I googled it now, and yes, I misspelled it.
 
  • #46
Charles Link said:
Did I misspell it? I remember it from my second course in high school algebra, which was about 50 years ago. I googled it now, and yes, I misspelled it.
Ok. A case of Kramer v. Cramer.

I solved it this way:
s looks a bit like ( x+y)3, so try
##s=x^3+xy+y^3=w^3-3x^2y-3xy^2+xy##
##=w^3-3t+xy##
##t=xy(x+y)=xyw##
##xy=\frac tw##
##s=w^3-3t+\frac tw##
Now diff wrt s.
 
  • Like
Likes   Reactions: Delta2 and Charles Link
  • #47
haruspex said:
Ok. A case of Kramer v. Cramer.
In the Dustin Hoffman movie, "Kramer vs. Kramer", it is spelled with a "K". LOL :)
 
  • #48
Charles Link said:
In the Dustin Hoffman movie, "Kramer vs. Kramer", it is spelled with a "K". LOL :)
But what I hadn't noticed is that the movie title misspells versus as "vs.". That's the plural form; it should just be "v."
 
  • Like
Likes   Reactions: Charles Link
  • #49
haruspex said:
Ok. A case of Kramer v. Cramer.

I solved it this way:
s looks a bit like ( x+y)3, so try
##s=x^3+xy+y^3=w^3-3x^2y-3xy^2+xy##
##=w^3-3t+xy##
##t=xy(x+y)=xyw##
##xy=\frac tw##
##s=w^3-3t+\frac tw##
Now diff wrt s.
Nice work indeed. With a little bit of algebra you get one equation for s that can give us both partials of w when differentiating with respect to s or t. Very clever shortcut, well done!.
 
  • Like
Likes   Reactions: Charles Link
  • #50
Thnks to @harupsex #46
s=w^3-3t+\frac{t}{w}
Differentiating it
ds-(3w^2-\frac{t}{w^2})dw+(3-\frac{1}{w})dt=0
So we get
\frac{\partial w}{\partial s}|_t=\frac{1}{3w^2-\frac{t}{w^2}}
\frac{\partial w}{\partial t}|_s=\frac{3-\frac{1}{w}}{3w^2-\frac{t}{w^2}}
 

Similar threads

  • Ā· Replies 18 Ā·
Replies
18
Views
3K
  • Ā· Replies 6 Ā·
Replies
6
Views
2K
  • Ā· Replies 2 Ā·
Replies
2
Views
2K
  • Ā· Replies 2 Ā·
Replies
2
Views
1K
  • Ā· Replies 6 Ā·
Replies
6
Views
2K
  • Ā· Replies 2 Ā·
Replies
2
Views
1K
  • Ā· Replies 25 Ā·
Replies
25
Views
2K
  • Ā· Replies 10 Ā·
Replies
10
Views
2K
  • Ā· Replies 7 Ā·
Replies
7
Views
2K
  • Ā· Replies 3 Ā·
Replies
3
Views
987