Partial differentiation problem, multiple variables (chain rule?)

Click For Summary

Homework Help Overview

The problem involves finding the partial derivative of the function z = x² + 2y² with respect to θ, given the relationships x = r cos θ and y = r sin θ. The original poster expresses confusion regarding the differentiation process and the discrepancy between their result and the textbook solution.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the need to rewrite the equation in terms of θ and x before differentiating. There is mention of using the product rule and chain rule in differentiation. Some participants question the assumptions about the independence of variables and the implications of holding x constant during differentiation.

Discussion Status

Several participants have offered guidance on the differentiation process, including suggestions to express variables in terms of sines and cosines. There is ongoing exploration of different methods to reach the solution, with no explicit consensus on a single approach yet.

Contextual Notes

Participants note the complexity of the relationships between the variables and the potential for confusion stemming from the need to apply multiple differentiation rules. There is also a recognition of the importance of maintaining clarity about which variables are held constant during the differentiation process.

bawbag
Messages
13
Reaction score
1

Homework Statement



if z = x2 + 2y2 , x = r cos θ , y = r sin θ , find the partial derivative

\left(\frac{\partial z}{\partial \theta}\right)_{x}

Homework Equations



z = x2 + 2y2
x = r cos θ
y = r sin θ

The Attempt at a Solution



The textbook says that the equation should be re-written to include only the variables θ and x, and then differentiated with respect to θ.

Substituting y = r sin θ :

z = x2 + 2r2 sin2 θ

then \left(\frac{\partial z}{\partial \theta}\right)_{x} = 4r2sin θ cos θ

However the solutions in the book give

\left(\frac{\partial z}{\partial \theta}\right)_{x} = 4r2 tan θ

What am I missing here?

Thanks in advance.
 
Physics news on Phys.org
bawbag said:

Homework Statement



if z = x2 + 2y2 , x = r cos θ , y = r sin θ , find the partial derivative

\left(\frac{\partial z}{\partial \theta}\right)_{x}

Homework Equations



z = x2 + 2y2
x = r cos θ
y = r sin θ

The Attempt at a Solution



The textbook says that the equation should be re-written to include only the variables θ and x, and then differentiated with respect to θ.

Substituting y = r sin θ :

z = x2 + 2r2 sin2 θ

then \left(\frac{\partial z}{\partial \theta}\right)_{x} = 4r2sin θ cos θ

However the solutions in the book give

\left(\frac{\partial z}{\partial \theta}\right)_{x} = 4r2 tan θ

What am I missing here?

Thanks in advance.


You need to differentiate y^2 = r^2 \sin^2 \theta using the product rule: r is not independent of \theta, since <br /> r = \frac{x}{\cos \theta}
 
Last edited:
  • Like
Likes   Reactions: 1 person
Thanks! I used the product rule to differentiate, but I still think I'm missing something. My working is as follows:

z = x2 + 2r2 sin2 θ

\left(\frac{\partial z}{\partial \theta}\right)_{x} = \frac{\partial}{\partial \theta}2r^{2}sin^{2}\theta

= 4r\frac{\partial r}{\partial \theta}sin^{2}\theta + 2r^{2}2sin\theta cos\theta (chain rule for dr/dθ)

since r = \frac{x}{cos \theta}, \frac{\partial r}{\partial \theta} = \frac{-x sin \theta}{cos^{2} \theta}

giving -4r \frac{x sin \theta}{cos^{2} \theta} sin^{2} \theta + 4r^{2} sin \theta cos \theta

I can replace x with r / cos θ, but I don't see how it reduces to the given solution of 4r2 tan θ.

Thanks again
 
bawbag said:

Homework Statement



if z = x2 + 2y2 , x = r cos θ , y = r sin θ , find the partial derivative

\left(\frac{\partial z}{\partial \theta}\right)_{x}

Homework Equations



z = x2 + 2y2
x = r cos θ
y = r sin θ

The Attempt at a Solution



The textbook says that the equation should be re-written to include only the variables θ and x, and then differentiated with respect to θ.

Substituting y = r sin θ :

z = x2 + 2r2 sin2 θ

then \left(\frac{\partial z}{\partial \theta}\right)_{x} = 4r2sin θ cos θ

However the solutions in the book give

\left(\frac{\partial z}{\partial \theta}\right)_{x} = 4r2 tan θ

What am I missing here?

Thanks in advance.


You are missing the fact that ##x## is held constant. One way to do it is:
dz = 2 x\, dx + 4 y \,dy\\<br /> dx = \cos(\theta) \, dr - r \sin(\theta)\, d \theta\\<br /> dy = \sin(\theta)\, dr + r \cos(\theta)\, d \theta
But ##dx = 0 \Longrightarrow dr = r \tan(\theta) \, d \theta##, so
dy = r \sin(\theta)\tan(\theta)\, d \theta + r \cos(\theta) \,d \theta<br /> = r \left( \frac{\sin^2(\theta)}{\cos(\theta)} + \cos(\theta)\right)\, d \theta<br /> = \frac{r}{\cos(\theta)}\, d \theta
Thus
dz = 4 y dy = 4 r \sin(\theta) (r/\cos(\theta)) \,d \theta = 4 r^2 \tan(\theta) \, d \theta
The partial ##(\partial z/\partial \theta)_{x} ## is the coefficient of ##d \theta## in the above.
 
  • Like
Likes   Reactions: 1 person
bawbag said:
Thanks! I used the product rule to differentiate, but I still think I'm missing something. My working is as follows:

z = x2 + 2r2 sin2 θ

\left(\frac{\partial z}{\partial \theta}\right)_{x} = \frac{\partial}{\partial \theta}2r^{2}sin^{2}\theta

= 4r\frac{\partial r}{\partial \theta}sin^{2}\theta + 2r^{2}2sin\theta cos\theta (chain rule for dr/dθ)

since r = \frac{x}{cos \theta}, \frac{\partial r}{\partial \theta} = \frac{-x sin \theta}{cos^{2} \theta}


The derivative of u^{-1} with respect to u is -u^{-2}. The derivative of \cos \theta with respect to \theta is -\sin \theta. The two minus signs cancel.

I can replace x with r / cos θ

You can't, but you can replace x with r \cos \theta and do some trigonometric simplifications; the first step is to express everything in terms of sines and cosines.
 
  • Like
Likes   Reactions: 1 person
bawbag said:
Thanks! I used the product rule to differentiate, but I still think I'm missing something. My working is as follows:

z = x2 + 2r2 sin2 θ

\left(\frac{\partial z}{\partial \theta}\right)_{x} = \frac{\partial}{\partial \theta}2r^{2}sin^{2}\theta

= 4r\frac{\partial r}{\partial \theta}sin^{2}\theta + 2r^{2}2sin\theta cos\theta (chain rule for dr/dθ)

since r = \frac{x}{cos \theta}, \frac{\partial r}{\partial \theta} = \frac{-x sin \theta}{cos^{2} \theta}

giving -4r \frac{x sin \theta}{cos^{2} \theta} sin^{2} \theta + 4r^{2} sin \theta cos \theta

I can replace x with r / cos θ, but I don't see how it reduces to the given solution of 4r2 tan θ.

Thanks again


Try saying z = x2 + 2\frac{x^2}{cos^2θ}sin2θ = x2(1 + 2tan2θ)

Now with this for z you can perform \left(\frac{\partial z}{\partial \theta}\right)_{x} quite easily.

Hint* Remember, that after you perform the derivation to look for anywhere you can make a substitution to remove 'x'.
 
  • Like
Likes   Reactions: 1 person
pasmith said:
The derivative of u^{-1} with respect to u is -u^{-2}. The derivative of \cos \theta with respect to \theta is -\sin \theta. The two minus signs cancel.



You can't, but you can replace x with r \cos \theta and do some trigonometric simplifications; the first step is to express everything in terms of sines and cosines.

That was a typo, my bad. So after sorting the minus sign, I'm left with essentially what I had before, but I can't see anyway of reducing 4r^{2} tan \theta sin^{2} \theta + 4r^{2} sin \theta cos \theta to 4r^{2} tan \theta without ending up with a huge mess.

Sorry for being dense :P
 
Figured it out. Thanks guys. Turns out I laid it out the way jaytech said, but didn't use the product rule properly so I abandoned that method and tried it another way, which lead to that whole mess. Whoops!

Thanks to everyone who helped!
 
You should try the steps I previously mentioned. Then reflect on why it works..
 
  • #10
bawbag said:
That was a typo, my bad. So after sorting the minus sign, I'm left with essentially what I had before, but I can't see anyway of reducing 4r^{2} tan \theta sin^{2} \theta + 4r^{2} sin \theta cos \theta to 4r^{2} tan \theta without ending up with a huge mess.

Sorry for being dense :P

\sin \theta \cos \theta = \tan\theta \cos^2 \theta
 
  • Like
Likes   Reactions: 1 person
  • #11
I did use the steps you suggested, jaytech. As for why it works, I imagine that I should be able to reach the solution from any starting point, with proper application of the chain rule/product rule, but arranging it as you suggested means I can skip over a lengthy simplification process after the operation. Any other insight you care to offer? :)
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
5
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
3
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
3
Views
2K