Trouble taking 2nd deriv of multi variable

  • Thread starter Thread starter mrcleanhands
  • Start date Start date
  • Tags Tags
    Variable
Click For Summary

Homework Help Overview

The discussion revolves around taking the second derivative of a multivariable function, specifically in the context of polar coordinates. The original poster attempts to differentiate the expression for \(\frac{\partial z}{\partial r}\) and is seeking clarification on the correct application of differentiation rules.

Discussion Character

  • Mixed

Approaches and Questions Raised

  • Participants explore the differentiation of \(\frac{\partial z}{\partial r}\) using both the product and chain rules, questioning the appropriate method for handling derivatives in polar coordinates.

Discussion Status

Some participants have suggested alternative approaches, including the use of Taylor expansions, while others emphasize the need to adhere to specific homework guidelines. There is ongoing exploration of how to express the second derivative in Cartesian coordinates, with various interpretations being discussed.

Contextual Notes

Participants note constraints such as homework rules against using Taylor expansions and the potential for losing marks if methods are not specified. There is also confusion regarding the application of the product rule versus the chain rule in this context.

mrcleanhands

Homework Statement


attachment.php?attachmentid=58257&stc=1&d=1367057492.jpg


Use * to show -->

Homework Equations


The Attempt at a Solution



So I've begun by trying to take the 2nd derivative of [itex]\frac{\partial z}{\partial r}=\cos\theta\frac{\partial z}{\partial x}+\sin\theta\frac{\partial z}{\partial y}[/itex]

Which gives me this: [itex]\frac{\partial^{2}z}{\partial r^{2}}=-\sin\theta\frac{\partial z}{\partial x}+\cos\theta\frac{\partial^{2}z}{\partial x^{2}}+\cos\theta\frac{\partial z}{\partial y}+\sin\theta\frac{\partial^{2}z}{\partial y^{2}}[/itex]

I've tried playing around a little but can't seem to get it in the form shown. I can see the form is something like (a+b)^2 but can't mimic this...

Have I done something wrong?
 

Attachments

  • showthatforreal.jpg
    showthatforreal.jpg
    12.2 KB · Views: 519
Physics news on Phys.org
hi mrcleanhands! :smile:
mrcleanhands said:
So I've begun by trying to take the 2nd derivative of [itex]\frac{\partial z}{\partial r}=\cos\theta\frac{\partial z}{\partial x}+\sin\theta\frac{\partial z}{\partial y}[/itex]

Which gives me this: [itex]\frac{\partial^{2}z}{\partial r^{2}}=-\sin\theta\frac{\partial z}{\partial x}+\cos\theta\frac{\partial^{2}z}{\partial x^{2}}+\cos\theta\frac{\partial z}{\partial y}+\sin\theta\frac{\partial^{2}z}{\partial y^{2}}[/itex]

?? :confused:

you seem to be using the product rule instead of the chain rule :redface:
 
mrcleanhands said:

Homework Statement


attachment.php?attachmentid=58257&stc=1&d=1367057492.jpg


Use * to show -->

Homework Equations





The Attempt at a Solution



So I've begun by trying to take the 2nd derivative of [itex]\frac{\partial z}{\partial r}=\cos\theta\frac{\partial z}{\partial x}+\sin\theta\frac{\partial z}{\partial y}[/itex]

Which gives me this: [itex]\frac{\partial^{2}z}{\partial r^{2}}=-\sin\theta\frac{\partial z}{\partial x}+\cos\theta\frac{\partial^{2}z}{\partial x^{2}}+\cos\theta\frac{\partial z}{\partial y}+\sin\theta\frac{\partial^{2}z}{\partial y^{2}}[/itex]

I've tried playing around a little but can't seem to get it in the form shown. I can see the form is something like (a+b)^2 but can't mimic this...

Have I done something wrong?

Sometimes the surest, most trouble-free (but *not shortest*) way is to do it directly: let
[tex]F(p,q) = z((r+p) \cos(\theta +q),(r+p) \sin(\theta + q)),[/tex]
where z(x,y) is assumed smooth enough. Now just find the Taylor expansion of F(p,q) to terms of up to second order in (p,q). The coefficient of p^2 will be ##(1/2) \partial^2 z/ \partial r^2##, etc.
 
Were not supposed to do it using a Taylor expansion. Last time I used polar co-ordinates to find a limit where no method was specified and lost marks. Besides, I forgot Taylor expansions.

Hey Tim. So I can't apply product rule to find second derivatives of that? If that was an equation without differentials in it I would be using product rule to take second derivatives. I don't see how I would use chain rule here. I thought maybe I could substitute what I found for [itex]\frac {\partial z}{\partial x}[/itex] and [itex]\frac {\partial z}{\partial y}[/itex] but I keep going around in circles and not getting anywhere :(
 
hi mrcleanhands! :smile:

(just got up :zzz:)
mrcleanhands said:
I don't see how I would use chain rule here.

never mind ∂z/∂x and ∂z/∂y

what is ∂/∂r in terms of ∂/∂x and ∂/∂y ?
 
Ok, I see what I did. I was trying to take a derivative of a constant...

[itex]\frac{\partial z}{\partial r}(\frac{\partial z}{\partial r})=(\cos\theta\frac{\partial z}{\partial x}+\sin\theta\frac{\partial z}{\partial y})(\cos\theta\frac{\partial z}{\partial x}+\sin\theta\frac{\partial z}{\partial y})[/itex]and I just got it :D On my way to finishing this question.

Thanks again...
 
Last edited by a moderator:
mrcleanhands said:
[itex]\frac{\partial z}{\partial r}(\frac{\partial z}{\partial r})=(\cos\theta\frac{\partial z}{\partial x}+\sin\theta\frac{\partial z}{\partial y})(\cos\theta\frac{\partial z}{\partial x}+\sin\theta\frac{\partial z}{\partial y})[/itex]
I did this and it's wrong. I've just taken the product, not the 2nd derivative (which I still haven't figured out) but for some reason my answer was correct.
 
I'm confusing myself more now.
with z=f(x,y), x=rcosθ and y=rsinθ

[itex]\frac{\partial z}{\partial r}=\frac{\partial z}{\partial x}\frac{\partial x}{\partial r}+\frac{\partial z}{\partial y}\frac{\partial y}{\partial r}[/itex] means [itex]\frac{\partial z}{\partial r}=\frac{\partial z}{\partial r}+\frac{\partial z}{\partial r}=2\frac{\partial z}{\partial r}[/itex]
which doesn't make any sense
 
mrcleanhands said:
I'm confusing myself more now.
with z=f(x,y), x=rcosθ and y=rsinθ

[itex]\frac{\partial z}{\partial r}=\frac{\partial z}{\partial x}\frac{\partial x}{\partial r}+\frac{\partial z}{\partial y}\frac{\partial y}{\partial r}[/itex]
Stop here - you're done with this partial.
mrcleanhands said:
means [itex]\frac{\partial z}{\partial r}=\frac{\partial z}{\partial r}+\frac{\partial z}{\partial r}=2\frac{\partial z}{\partial r}[/itex]
No, it doesn't mean that. You can't cancel as you did, since these aren't fractions.
mrcleanhands said:
which doesn't make any sense
 
  • #10
mrcleanhands said:
[itex]\frac{\partial z}{\partial r}(\frac{\partial z}{\partial r})=(\cos\theta\frac{\partial z}{\partial x}+\sin\theta\frac{\partial z}{\partial y})(\cos\theta\frac{\partial z}{\partial x}+\sin\theta\frac{\partial z}{\partial y})[/itex]

nooo, it's [itex]\frac{\partial}{\partial r}(\frac{\partial z}{\partial r})=(\cos\theta\frac{\partial}{\partial x}+\sin\theta\frac{\partial}{\partial y})(\cos\theta\frac{\partial z}{\partial x}+\sin\theta\frac{\partial z}{\partial y})[/itex]

(what you wrote is correct, but it's just a product

what i've written is a derivative :wink:)​

anyway, show us how you expand this :smile:
 
  • #11
No, it doesn't mean that. You can't cancel as you did, since these aren't fractions.
:cry:

I will look this up again.

I just stumbled on that answer by chance because I was actually doing a product for some reason.


Now I get this:
[itex]\frac{\partial^{2}z}{\partial r^{2}}=\frac{\partial}{\partial r}(\cos\theta\frac{\partial z}{\partial x})+\frac{\partial}{\partial r}(\sin\theta\frac{\partial z}{\partial y})[/itex]

θ is independent from r so the change in cosθ for a change in r is 0...

but I don't know what happens when it's [itex]\frac{\partial}{\partial r}(\cos\theta\frac{\partial z}{\partial x})[/itex]
Or even [itex]\frac{\partial}{\partial r}(\frac{\partial z}{\partial x})[/itex]

This is a change in r for a change in z with respect to x.
 
  • #12
i'll say it again …

it's [itex](\cos\theta\frac{\partial}{\partial x}+\sin\theta\frac{\partial}{\partial y})(\cos\theta\frac{\partial z}{\partial x}+\sin\theta\frac{\partial z}{\partial y})[/itex]

expand this
 
  • #13
I know that when expanded that becomes [itex]\frac{\partial^{2}z}{\partial r^{2}}=\cos^{2}\theta\frac{\partial^{2}z}{\partial x^{2}}+2\sin\theta\cos\theta\frac{\partial^{2}z}{\partial x\partial y}+\sin^{2}\theta\frac{\partial^{2}z}{\partial y^{2}}[/itex] (the answer) but I don't get how we go from [itex]\frac{\partial^{2}z}{\partial r^{2}}=\frac{\partial}{\partial r}(\cos\theta\frac{\partial z}{\partial x})+\frac{\partial}{\partial r}(\sin\theta\frac{\partial z}{\partial y})[/itex] to that.

When I originally "got" that and thought I proved i,t I actually just multiplied the derivative by itself.
 
  • #14
mrcleanhands said:
[/itex] (the answer) but I don't get how we go from [itex]\frac{\partial^{2}z}{\partial r^{2}}=\frac{\partial}{\partial r}(\cos\theta\frac{\partial z}{\partial x})+\frac{\partial}{\partial r}(\sin\theta\frac{\partial z}{\partial y})[/itex] to that.

When I originally "got" that and thought I proved i,t I actually just multiplied the derivative by itself.

You should think of ∂/∂r[] as an "operator": something that operates (acts on) a function. When you stick the function f(r,θ) (or f(x,y) equivalently) into this operator (i.e. into the square brackets), the operator differentiates that function w.r.t. r. So, in this problem, what you're being told is that the operator ∂/∂r[] can be expressed in Cartesian coordinates as:$$\frac{\partial}{\partial r}\left[~\right] \equiv \cos\theta \frac{\partial}{\partial x}\left[~\right] + \sin\theta \frac{\partial}{\partial y}\left[~\right]$$

So, in the equation quoted above, everywhere we see ∂/∂r, we can replace it with the equivalent differential operator expressed in Cartesian coords:$$\frac{\partial^{2}z}{\partial r^{2}}=\frac{\partial}{\partial r}\left[\cos\theta\frac{\partial z}{\partial x}\right]+\frac{\partial}{\partial r}\left[\sin\theta\frac{\partial z}{\partial y}\right] $$ $$= \cos\theta \frac{\partial}{\partial x}\left[\cos\theta\frac{\partial z}{\partial x}\right] + \sin\theta \frac{\partial}{\partial y}\left[\cos\theta\frac{\partial z}{\partial x}\right]+ \cos\theta \frac{\partial}{\partial x}\left[\sin\theta\frac{\partial z}{\partial y}\right] + \sin\theta \frac{\partial}{\partial y}\left[\sin\theta\frac{\partial z}{\partial y}\right]$$

Can you take it from here?
 
  • #15
cepheid said:
You should think of ∂/∂r[] as an "operator": something that operates (acts on) a function. When you stick the function f(r,θ) (or f(x,y) equivalently) into this operator (i.e. into the square brackets), the operator differentiates that function w.r.t. r. So, in this problem, what you're being told is that the operator ∂/∂r[] can be expressed in Cartesian coordinates as:$$\frac{\partial}{\partial r}\left[~\right] \equiv \cos\theta \frac{\partial}{\partial x}\left[~\right] + \sin\theta \frac{\partial}{\partial y}\left[~\right]$$

But this was actually derived when finding dz/dr (z w.r.t to r)... How else would you come up with this operator? How then do I know I can remove the z and plug anything else in?

So, in the equation quoted above, everywhere we see ∂/∂r, we can replace it with the equivalent differential operator expressed in Cartesian coords:$$\frac{\partial^{2}z}{\partial r^{2}}=\frac{\partial}{\partial r}\left[\cos\theta\frac{\partial z}{\partial x}\right]+\frac{\partial}{\partial r}\left[\sin\theta\frac{\partial z}{\partial y}\right] $$ $$= \cos\theta \frac{\partial}{\partial x}\left[\cos\theta\frac{\partial z}{\partial x}\right] + \sin\theta \frac{\partial}{\partial y}\left[\cos\theta\frac{\partial z}{\partial x}\right]+ \cos\theta \frac{\partial}{\partial x}\left[\sin\theta\frac{\partial z}{\partial y}\right] + \sin\theta \frac{\partial}{\partial y}\left[\sin\theta\frac{\partial z}{\partial y}\right]$$

Can you take it from here?

I have the same problem with [itex]\cos\theta\frac{\partial}{\partial r}\left[\frac{\partial z}{\partial x}\right].[/itex]How do I interpret/do [itex]\frac{\partial}{\partial r}\left[\frac{\partial z}{\partial x}\right][/itex]
 
  • #16
Ok, I got it. I found some material on this online. I just didn't have enough prereq knowledge to understand.
 
  • #17
Now I'm getting this

For [itex]\frac{\partial}{\partial r}(\frac{\partial z}{\partial x})[/itex]:

[itex]\frac{\partial}{\partial r}(\frac{\partial z}{\partial x})=\cos\theta\frac{\partial}{\partial x}(\frac{\partial z}{\partial x})+\sin\theta\frac{\partial}{\partial y}(\frac{\partial z}{\partial x})[/itex]
[itex]\frac{\partial}{\partial r}(\frac{\partial z}{\partial x})=\cos\theta\frac{\partial^{2}z}{\partial x^{2}}+\sin\theta(\frac{\partial^{2}z}{\partial xy})[/itex]


For [itex]\frac{\partial}{\partial r}(\frac{\partial z}{\partial y})[/itex]
[itex]\frac{\partial}{\partial r}(\frac{\partial z}{\partial y})=\cos\theta\frac{\partial^{2}z}{\partial xy}+\sin\theta\frac{\partial^{2}z}{\partial y^{2}}[/itex]

Now substitute these into the original mess of [itex]\frac{\partial^{2}z}{\partial r^{2}}[/itex] :


[itex]\frac{\partial^{2}z}{\partial r^{2}}=-\sin\theta\frac{\partial z}{\partial x}+\cos\theta\frac{\partial}{\partial r}(\frac{\partial z}{\partial x})+\cos\theta\frac{\partial z}{\partial y}+\sin\theta\frac{\partial}{\partial r}(\frac{\partial z}{\partial y})[/itex]
[itex]\frac{\partial^{2}z}{\partial r^{2}}=-\sin\theta\frac{\partial z}{\partial x}+\cos\theta(\cos\theta\frac{\partial^{2}z}{\partial x^{2}}+\sin\theta(\frac{\partial^{2}z}{\partial xy}))+\cos\theta\frac{\partial z}{\partial y}+\sin\theta(\cos\theta\frac{\partial^{2}z}{\partial xy}+\sin\theta\frac{\partial^{2}z}{\partial y^{2}})[/itex]...
[itex]\frac{\partial^{2}z}{\partial r^{2}}=-\sin\theta\frac{\partial z}{\partial x}+\cos^{2}\theta\frac{\partial^{2}z}{\partial x^{2}}+2\sin\theta\cos\theta(\frac{\partial^{2}z}{\partial xy}))+\cos\theta\frac{\partial z}{\partial y}+\sin^{2}\theta\frac{\partial^{2}z}{\partial y^{2}}[/itex]

which is wrong :mad:
 
  • #18
i don't understand why you're doing all this :confused:

2z/∂r2

= ∂/∂r(∂z/∂r)

= [itex](\cos\theta\frac{\partial}{\partial x}+\sin\theta\frac{\partial}{\partial y})\left((\cos\theta\frac{\partial}{\partial x}+\sin\theta\frac{\partial}{\partial y})(z)\right)[/itex]
 
  • #19
I know what I did wrong and I finally understand the question. I was taking the second derivative of dz/dr and used the product rule but r is independent of [itex]\theta[/itex] so when I treat [itex]\theta[/itex] as a constant I get the same answer as you.

Thanks again for helping me out guys! much appreciated.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K