Partial Derivatives and Polar Coordinates

Click For Summary
The discussion focuses on applying the chain rule for partial derivatives in polar coordinates for the function z = e^x + yx^2, where x and y are expressed in terms of r and theta. The participants clarify the correct expressions for x and y as x = rcos(theta) and y = rsin(theta), along with their respective partial derivatives. There is a consensus on the chain rule formulas for dz/dr and dz/dtheta, which involve the derivatives of g with respect to x and y. Participants address minor typos and confirm the correct application of the chain rule. Ultimately, the conversation emphasizes the importance of accurately expressing x and y in polar coordinates to derive the desired partial derivatives.
RJLiberator
Gold Member
Messages
1,094
Reaction score
63

Homework Statement


Write the chain rule for the following composition using a tree diagram:
z =g(x,y)
where x=x(r,theta) and y=y(r,theta). Write formulas for the partial derivatives dz/dr and dz/dtheta. Use them to answer: Find first partial derivatives of the function z=e^x+yx^2, in polar coordinates, that is find dz/dr and dz/dtheta as a function of polar coordinates (r, theta).

Homework Equations

The Attempt at a Solution


Tree diagram was relatively simple
g extends to x and y. x and y both extend to r and theta.

**all "d's" symbolize partial derivatives**
dz/dr = dg/dx*dx/dr+ dg/dy*dy/dr
dz/dtheta = dg/dx*dx/dtheta+dg/dy*dy/dtheta

Ok.
So
partial x = e^x+2yx
partial y = x^2

Now the problem I'm having trouble with is taking the partial derivative of the polar coordinate functions.
If I am right, then:
x=rcos(theta)
y=rsin(theta)
Taking the partial derivatives dx/dr and dy/dr the answers would be cos(theta) for x and sin(theta) for y, as we treat these as 'constants'.
From here it is merely a plug-n-chug.

Is this correct? Do you have any opinions? Thank you.
 
Last edited:
Physics news on Phys.org
RJLiberator said:
dz/dr = dg/dx*dx/dtheta+ dg/dy*dy/dr
dz/dtheta = dg/dx*dx/dtheta+dg/dy*dy/dtheta
Why is \frac{\partial g}{\partial x}\frac{\partial x}{\partial r} missing?
 
  • Like
Likes RJLiberator
Ah, typo, it should be dx/dr instead of dx/dtheta. My apologies.
 
OK. So we have \frac{\partial g}{\partial x}=\frac{\partial g}{\partial r}\frac{\partial r}{\partial x}+\frac{\partial g}{\partial \theta}\frac{\partial \theta}{\partial x} and \frac{\partial g}{\partial y}=\frac{\partial g}{\partial r}\frac{\partial r}{\partial y}+\frac{\partial g}{\partial \theta}\frac{\partial \theta}{\partial y}...
 
I'm not quite sure why you are using that.

I believe this would be correct, no?:
dz/dr = dg/dx*dx/dr+ dg/dy*dy/dr
dz/dtheta = dg/dx*dx/dtheta+dg/dy*dy/dtheta

So if x=x(r,theta) and y=y(r,theta) then x=rcos(theta) and y=rcos(theta) ??
 
RJLiberator said:
So if x=x(r,theta) and y=y(r,theta) then x=rcos(theta) and y=rcos(theta) ??
Not quite...
RJLiberator said:
I believe this would be correct, no?:
dz/dr = dg/dx*dx/dr+ dg/dy*dy/dr
dz/dtheta = dg/dx*dx/dtheta+dg/dy*dy/dtheta
OK.
 
  • Like
Likes RJLiberator
How could I make it correct? I feel like the x=rcos(theta) is a very important part of the problem. Why is it wrong?
 
RJLiberator said:
How could I make it correct? I feel like the x=rcos(theta) is a very important part of the problem. Why is it wrong?
It isn't wrong. Look at your entire statement.
 
  • Like
Likes RJLiberator
Ugh, another typo. Apologies. y=rsin(theta).
So, if these are right, then their respective derivatives are
cos(theta) with respects to dx/dr
sin(theta) dy/dr
and -rsin(theta) dx/dtheta
rcos(theta) dy/dtheta

And then it's just plugging into the chain rule equations with the partial derivatives of the g function.
 

Similar threads

Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
4
Views
1K
  • · Replies 28 ·
Replies
28
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 10 ·
Replies
10
Views
2K