Derive grad T in spherical coordinates

Click For Summary
SUMMARY

The discussion focuses on deriving the gradient of temperature (T) in spherical coordinates using the chain rule and vector calculus. The transformation equations for spherical coordinates are provided, along with the necessary partial derivatives. The key conclusion is that the coefficients of the unit vectors in the gradient expression must be carefully evaluated, particularly the derivatives of the radius (r), polar angle (θ), and azimuthal angle (φ). An error in the calculation of these derivatives led to incorrect coefficients in the gradient expression.

PREREQUISITES
  • Understanding of spherical coordinate transformations
  • Familiarity with vector calculus and gradient operations
  • Knowledge of partial derivatives and the chain rule
  • Basic proficiency in mathematical notation and expressions
NEXT STEPS
  • Study the derivation of the gradient in different coordinate systems, focusing on spherical coordinates
  • Learn about the implications of the chain rule in multivariable calculus
  • Explore applications of the gradient in physics, particularly in thermodynamics
  • Review common mistakes in calculating partial derivatives in spherical coordinates
USEFUL FOR

Students and professionals in mathematics, physics, and engineering who are working with vector calculus and need to understand the application of gradients in spherical coordinates.

Happiness
Messages
686
Reaction score
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
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   Reactions: Happiness

Similar threads

  • · Replies 14 ·
Replies
14
Views
3K
Replies
2
Views
2K
Replies
33
Views
5K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
10
Views
3K
Replies
3
Views
2K