Partial differentiation question. Would all three methods work?

3 replies · 2K views · last reply
s3a
Messages
828
Reaction score
8
I'm attaching the question and solution.

I'm talking about the first part since the second part is the same just with different variables and stuff. I get what the solution is saying but:

1) What if I computed a Jacobian, with
F = x^2 + xy + y^2 - z = 0
G = 2r + s - x = 0
H = r - 2s - y = 0
would it work? Whether it works or not, why does it work or not?

2) Why am I getting it wrong when I substitute x and y with the r and s equivalents and then attempt taking ∂z/∂r? Am I just making a mistake whenever I compute it or is this attempt just bound to fail for some theoretical reason?

I'm not necessarily concerned about the detailed algebra for (1) and (2) but rather just if the methods should work in theory and why or why they would or wouldn't work and if I was doing something wrong (sorry, the file which had my work was corrupted but I'm not concerned about the detailed algebra anyway apart from the part where you set things up prior to the tedious algebra/computation). Part of the reason why I am asking this is because, instinctively, I would have done method (2) and, for method (1), I'm just trying to see when Jacobians are better or worse to use. So, if Jacobians work for this problem, I'd be great if I can also be told how to recognize when Jacobians are the better or worse to use. Sorry, if I repeated myself a bit but I wanted to make my concerns very clear.

Any input would be greatly appreciated!
Thanks in advance!
 
Attachments
  • Handwritten-style solution to problem 16 finding partial derivatives of z = x^2 + xy + y^2 with respect to r and s, using the chain rule with partial derivatives of z, x and y, ending in dz/dr = 5x + 4y and dz/ds = -3y.
    P16.jpg
    9.7 KB · Views: 523
s3a said:
I'm attaching the question and solution.

I'm talking about the first part since the second part is the same just with different variables and stuff. I get what the solution is saying but:

1) What if I computed a Jacobian, with
F = x^2 + xy + y^2 - z = 0
G = 2r + s - x = 0
H = r - 2s - y = 0
would it work? Whether it works or not, why does it work or not?

2) Why am I getting it wrong when I substitute x and y with the r and s equivalents and then attempt taking ∂z/∂r? Am I just making a mistake whenever I compute it or is this attempt just bound to fail for some theoretical reason?

I'm not necessarily concerned about the detailed algebra for (1) and (2) but rather just if the methods should work in theory and why or why they would or wouldn't work and if I was doing something wrong (sorry, the file which had my work was corrupted but I'm not concerned about the detailed algebra anyway apart from the part where you set things up prior to the tedious algebra/computation). Part of the reason why I am asking this is because, instinctively, I would have done method (2) and, for method (1), I'm just trying to see when Jacobians are better or worse to use. So, if Jacobians work for this problem, I'd be great if I can also be told how to recognize when Jacobians are the better or worse to use. Sorry, if I repeated myself a bit but I wanted to make my concerns very clear.

Any input would be greatly appreciated!
Thanks in advance!
Worked solution to a partial derivative problem: z = x^2 + xy + y^2 with x = 2r + s and y = r - 2s, using the chain rule to find dz/dr and dz/ds, with the intermediate partials dz/dx = 2x + y, dz/dy = x + 2y, dx/dr = 2, dx/ds = 1, dy/dr = 1, dy/ds = -2, giving dz/dr = 5x + 4y and dz/ds = -3y.


For your Question #1:
How do you propose using that Jacobian to find ∂z/∂r and ∂z/∂s ?​

For your Question #2:
Yes, that should work. Without you showing your work, it's hard for us to tell what the problem is.​
 
For (2), I think the problem was that I was tired and sick ;). As for (1), is what I'm uploading now correct?
 
Attachments
  • Handwritten notes on graph paper: problem (1) gives dz/dr as a ratio of Jacobians with I = 0 = 0, and problem (2) works z = x^2 + xy + y^2 with x = 2r+s, y = r-2s to z = 7r^2 - 3rs, so dz/dr = 14r - 3s, checked at r = 1, s = 1 giving 11.
    MyWork.jpg
    72.9 KB · Views: 510
s3a said:
For (2), I think the problem was that I was tired and sick ;). As for (1), is what I'm uploading now correct?
I'll look over #1 when I get a chance. Hopefully that won't be a whole lot later or perhaps someone else will come along & look it over.

Handwritten notes on graph paper: part (1) gives dz/dr as a ratio of Jacobian-style determinants with I = 0 = 0; part (2) expands z = x^2 + xy + y^2 with x = 2r + s, y = r - 2s to get z = 7r^2 - 3rs, so dz/dr = 14r - 3s, checked at r = 1, s = 5 giving 11.


For #2, you can even show more generally that both methods give the same result.
You have that [itex]\displaystyle \frac{\partial z}{\partial r}=14r-3s\,.[/itex]

The attachment you had in your Original Post, has:

[itex]\displaystyle \frac{\partial z}{\partial r}=5x+4y[/itex]

Substituting for x & y gives:

[itex]\displaystyle \frac{\partial z}{\partial r}=5(2s+r)+4(r-2s)[/itex]
[itex]\displaystyle =14r-3s\,.[/itex]
​