Find gradient in spherical and cartesian coordinates

Click For Summary

Homework Help Overview

The problem involves finding the gradient of the function 3r² in both spherical and Cartesian coordinates. The discussion centers around the appropriate application of the gradient operator in different coordinate systems.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants explore the gradient in spherical coordinates and question the assumptions made regarding the angles theta and phi. There is discussion about the transformation from spherical to Cartesian coordinates and the implications of those transformations on the gradient.

Discussion Status

Some participants have provided guidance on expressing the gradient in Cartesian coordinates and have suggested alternative approaches to the problem. There is an acknowledgment of the potential confusion regarding the transformation process, and participants are actively engaging with the mathematical concepts involved.

Contextual Notes

There is uncertainty regarding the assumptions made about the angles in spherical coordinates, particularly whether theta can be set to zero. Additionally, participants note the need to clarify the relationship between spherical and Cartesian representations of the gradient.

naele
Messages
199
Reaction score
1

Homework Statement


Find the gradient of [itex]3r^2[/itex] in spherical coordinates, then do it in Cartesian coordinates

Homework Equations


[tex] \nabla f=\hat r \frac{\partial f}{\partial r} + \hat \theta \frac{1}{r} \frac{\partial f}{\partial \theta}+ \hat \phi \frac{1}{r\sin \theta}\frac{\partial f}{\partial \phi}[/tex]
[tex]z=r \cos \theta[/tex]

The Attempt at a Solution



Since there's no [itex]\theta, \phi[/itex] then the gradient is simply [itex]6r \hat r[/itex]. Transforming to cartesian coordinates gives [tex]\frac{z}{6}\hat z[/tex] because cos 0 = 1. Any of the other coordinate transforms involve [itex]\sin \theta[/itex] or [itex]\sin \phi[/itex] so z is the only non-zero coordinate.
 
Last edited:
Physics news on Phys.org
Are you given that theta=0? If so that's ok, except how did the 6 move from the numerator to the denominator?
 
It wasn't necessarily given, I just assumed it was since the [itex]3r^2[/itex] has no theta or phi term to just consider them as zero when I took the gradient. That second part with z/6 I suspect is completely wrong because I don't understand how to transform from spherical to cartesian.
 
naele said:
It wasn't necessarily given, I just assumed it was since the [itex]3r^2[/itex] has no theta or phi term to just consider them as zero when I took the gradient. That second part with z/6 I suspect is completely wrong because I don't understand how to transform from spherical to cartesian.

Then you can't put theta=0. [itex]6 r \hat r[/itex] is fine. What's r in cartesian coordinates? What's [itex]\hat r[/itex] in cartesian coordinates? You must know at least one of those. Look them up if you don't. Alternatively, express 3r^2 in cartesian coordinates and do it directly.
 
r is just the magnitude so in Cartesian that's [tex]\sqrt{x^2 + y^2 +z^2}[/tex]. I think that [tex]\hat r = \sin \theta \cos \phi \hat x + \sin \theta \sin \phi \hat y + \cos \theta \hat z[/tex]
 
That's ok. Then 3r^2=3*(x^2+y^2+z^2). Can you use that to find the gradient directly in cartesian coordinates? But why not write
[tex] \hat r = \sin \theta \cos \phi \hat x + \sin \theta \sin \phi \hat y + \cos \theta \hat z[/tex]
as
[tex] \hat r = (x \hat x + y \hat y + z \hat z)/r[/tex]
That's the same thing isn't it?
 
Yes, I see it now. Doing it both ways gives me the same result
[tex]6x \hat x + 6y \hat y + 6z \hat z[/tex]
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
3K
Replies
33
Views
5K
Replies
3
Views
2K
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K