Derive grad T in spherical coordinates

In summary: Similarly, ##\frac{\partial T}{\partial r}## should be ##\frac{\partial T}{\partial x}\frac{\partial x}{\partial r}##, not ##\frac{\partial T}{\partial r} \frac{1}{\sin\theta\cos\phi}##. In summary, the chain rule is used to find the partial derivatives of a function with respect to different variables, and the gradient of a function can be written as a linear combination of its partial derivatives with respect to the coordinate variables. Care must be taken to correctly evaluate the partial derivatives using the chain rule.
  • #1
Happiness
679
30

Homework Statement



##x=r\sin\theta\cos\phi,\,\,\,\,\,y=r\sin\theta\sin\phi,\,\,\,\,\,z=r\cos\theta##

##\hat{x}=\sin\theta\cos\phi\,\hat{r}+\cos\theta\cos\phi\,\hat{\theta}-\sin\phi\,\hat{\phi}##
##\hat{y}=\sin\theta\sin\phi\,\hat{r}+\cos\theta\sin\phi\,\hat{\theta}+\cos\phi\,\hat{\phi}##
##\hat{z}=\cos\theta\,\hat{r}-\sin\theta\,\hat{\theta}##

Homework Equations


By chain rule,

##\frac{\partial T}{\partial x}=\frac{\partial T}{\partial r}\frac{\partial r}{\partial x}+\frac{\partial T}{\partial\theta}\frac{\partial\theta}{\partial x}+\frac{\partial T}{\partial\phi}\frac{\partial\phi}{\partial x}##
##\frac{\partial T}{\partial y}=\frac{\partial T}{\partial r}\frac{\partial r}{\partial y}+\frac{\partial T}{\partial\theta}\frac{\partial\theta}{\partial y}+\frac{\partial T}{\partial\phi}\frac{\partial\phi}{\partial y}##
##\frac{\partial T}{\partial z}=\frac{\partial T}{\partial r}\frac{\partial r}{\partial z}+\frac{\partial T}{\partial\theta}\frac{\partial\theta}{\partial z}+\frac{\partial T}{\partial\phi}\frac{\partial\phi}{\partial z}##

##\nabla T=\frac{\partial T}{\partial x}\hat{x}+\frac{\partial T}{\partial y}\hat{y}+\frac{\partial T}{\partial z}\hat{z}##

The Attempt at a Solution



##\nabla T=(\frac{\partial T}{\partial r}\frac{1}{\sin\theta\cos\phi}+\frac{\partial T}{\partial\theta}\frac{1}{r\cos\theta\cos\phi}+\frac{\partial T}{\partial\phi}\frac{-1}{r\sin\theta\sin\phi})\hat{x}+(\frac{\partial T}{\partial r}\frac{1}{\sin\theta\sin\phi}+\frac{\partial T}{\partial\theta}\frac{1}{r\cos\theta\cos\phi}+\frac{\partial T}{\partial\phi}\frac{1}{r\sin\theta\sin\phi})\hat{y}##
##+(\frac{\partial T}{\partial r}\frac{1}{\cos\theta}+\frac{\partial T}{\partial\theta}\frac{-1}{r\sin\theta}+\frac{\partial T}{\partial\phi}0)\hat{z}##

Just by looking at the coefficient of ##\hat{r}##, we get

##\frac{\partial T}{\partial r}+\frac{\partial T}{\partial\theta}\frac{\tan\theta}{r}-\frac{\partial T}{\partial\phi}\frac{1}{r\tan\theta}+\frac{\partial T}{\partial r}+\frac{\partial T}{\partial\theta}\frac{\tan\theta}{r}+\frac{\partial T}{\partial\phi}\frac{\tan\theta}{r}+\frac{\partial T}{\partial r}-\frac{\partial T}{\partial\theta}\frac{1}{r\tan\theta}##,

which is clearly not correct, since

##\nabla T=\frac{\partial T}{\partial r}\hat{r}+\frac{1}{r}\frac{\partial T}{\partial\theta}\hat{\theta}+\frac{1}{r\sin\theta}\frac{\partial T}{\partial\phi}\hat{\phi}##,

the coefficient of ##\hat{r}## should be just ##\frac{\partial T}{\partial r}##.
 
Last edited:
Physics news on Phys.org
  • #2
You should rethink some of those derivatives. For example, you have ##r = \sqrt{x^2+y^2+z^2}##, so
$$\frac{\partial r}{\partial x} = \frac{x}{\sqrt{x^2+y^2+z^2}} = \frac{r \sin\theta \cos\phi}{r} = \sin\theta\cos\phi.$$ You somehow got the reciprocal.
 
  • Like
Likes Happiness

Related to Derive grad T in spherical coordinates

1. What is the formula for deriving grad T in spherical coordinates?

The formula for deriving grad T in spherical coordinates is:
grad T = (1/r)(∂T/∂r)er + (1/(rsinθ))(∂T/∂θ)eθ + (1/(rsinθ))(∂T/∂φ)eφ,
where r is the radial distance, θ is the polar angle, φ is the azimuthal angle, and er, eθ, and eφ are the unit vectors in the respective directions.

2. How do you calculate the radial, polar, and azimuthal components of grad T in spherical coordinates?

To calculate the radial component, ∂T/∂r, you simply take the partial derivative of the temperature function with respect to r.
To calculate the polar component, ∂T/∂θ, you take the partial derivative of the temperature function with respect to θ and divide by the radial distance multiplied by sinθ.
To calculate the azimuthal component, ∂T/∂φ, you take the partial derivative of the temperature function with respect to φ and divide by the radial distance multiplied by sinθ.

3. What is the significance of deriving grad T in spherical coordinates?

Deriving grad T in spherical coordinates allows us to understand the temperature gradient in a three-dimensional space, taking into account the radial, polar, and azimuthal components. This is particularly useful in fields such as thermodynamics, fluid dynamics, and heat transfer.

4. How is deriving grad T in spherical coordinates different from deriving it in Cartesian coordinates?

In spherical coordinates, the temperature gradient is expressed in terms of the radial, polar, and azimuthal components, whereas in Cartesian coordinates, it is expressed in terms of the x, y, and z components. Additionally, the formulas for deriving grad T in these two coordinate systems are different.

5. Can the formula for deriving grad T in spherical coordinates be applied to any temperature function?

Yes, the formula for deriving grad T in spherical coordinates can be applied to any temperature function, as long as it is defined in spherical coordinates. However, if the temperature function is not explicitly defined in spherical coordinates, a coordinate transformation may be necessary before applying the formula.

Similar threads

  • Calculus and Beyond Homework Help
Replies
2
Views
679
  • Calculus and Beyond Homework Help
Replies
3
Views
2K
Replies
33
Views
3K
  • Calculus and Beyond Homework Help
Replies
3
Views
384
  • Calculus and Beyond Homework Help
Replies
3
Views
917
  • Calculus and Beyond Homework Help
Replies
8
Views
909
  • Calculus and Beyond Homework Help
Replies
3
Views
605
  • Calculus and Beyond Homework Help
Replies
10
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
Back
Top