How to Calculate the Partial Derivative of a Vector in Spherical Coordinates?

Click For Summary

Discussion Overview

The discussion revolves around calculating the partial derivative of a vector in spherical coordinates, specifically focusing on the relationship between Cartesian coordinates (x, y, z) and their implications for differentiation. Participants explore the definitions and dependencies of the variables involved, as well as the context of ray tracing problems.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant presents equations relating Cartesian coordinates to spherical coordinates and seeks guidance on calculating the partial derivative of the vector with respect to z.
  • Another participant asserts that x, y, and z are independent variables, suggesting that both the vector and its magnitude can be treated as functions of these independent variables.
  • A different participant counters that x, y, and z are not independent due to the constraint x² + y² + z² = 1, indicating that this relationship complicates the differentiation process.
  • Some participants emphasize the need to clarify which other variable is held constant when calculating the partial derivative with respect to z, providing examples of how to express the vector in terms of independent variables.
  • There is a mention of a ray tracing problem, which adds context to the discussion but does not clarify the mathematical issue at hand.

Areas of Agreement / Disagreement

Participants express disagreement regarding the independence of the variables x, y, and z, with some asserting they are independent while others argue they are not. The discussion remains unresolved as to the correct approach for calculating the partial derivative.

Contextual Notes

Participants highlight the importance of specifying the other variable when calculating partial derivatives, indicating a need for clarity in the mathematical formulation. The discussion also reflects the complexity introduced by the constraint of the spherical coordinate system.

ytht100
Messages
20
Reaction score
0
I have the following equations:
\left\{ \begin{array}{l}<br /> x = \sin \theta \cos \varphi \\<br /> y = \sin \theta \cos \varphi \\<br /> z = \cos \theta<br /> \end{array} \right.

Assume \vec r = (x,y,z), which is a 1*3 vector. Obviously, x, y, and z are related to each other. Now I want to calculate \frac{{\partial \vec r}}{{\partial z}}, could you please tell me if you have any hint?

I have Googled the questions a lot with different terms but can't find an answer that I am sure of. Many thanks for your attention!

Attempt 1: The problem seems related to coordinate transformation between spherical and cartesian coordinates.

Attempt 2: The problem seems related to "The Cartesian partial derivatives in spherical coordinates" shown here: http://mathworld.wolfram.com/SphericalCoordinates.html.
 
Last edited:
Physics news on Phys.org
ytht100 said:
r = (x,y,z), which is a 1*3 vector. Obviously, x, y, and z are related to each other. Now I want to calculate \frac{{\partial r}}{{\partial z}}

First, you have:

##\vec{r} = (x, y, z)##

And

##r = \sqrt{x^2 + y^2 + z^2}##

##x, y, z## are independent variables, so are unrelated to each other. But, both ##\vec{r}## and ##r## can be treated as functions of ##x, y, z## and differentiated.
 
PeroK said:
First, you have:

##\vec{r} = (x, y, z)##

And

##r = \sqrt{x^2 + y^2 + z^2}##

##x, y, z## are independent variables, so are unrelated to each other. But, both ##\vec{r}## and ##r## can be treated as functions of ##x, y, z## and differentiated.

1, Thank you for reminding me to write {\vec r} as vector, I have made revisions above.
However, x, y, and z are NOT independent variables, for example {x^2} + {y^2} + {z^2} = 1. If they are independent, the problem is very easy because \frac{{d{\vec r}}}{{dz}} = \frac{{d(x,y,z)}}{{dz}} = (0,0,1)
2, the physical problem at my hand tells me they are NOT independent.
 
Last edited:
which problem do you really solve? I am afraid the current statement merely does not make sense
 
  • Like
Likes   Reactions: vanhees71
zwierz said:
which problem do you really solve? I am afraid the current statement merely does not make sense

I am trying to solve a ray tracing problem. That is all I can say. Other information may not appropriate on this forum. Could you please tell me which part doesn't make sense? Thank you very much!
 
the partial derivative by its definition uses some coordinate of a coordinate system. Coordinate system consists of independent coordinates
 
ytht100 said:
I am trying to solve a ray tracing problem. That is all I can say. Other information may not appropriate on this forum. Could you please tell me which part doesn't make sense? Thank you very much!

You effectively have a function of two independent variables, with ##r=1##. But, to get a partial derivative wrt ##z## you must be explicit about what the other variable is. For example, you could have:

##\vec{r} = (x, \sqrt{1-x^2-z^2}, z)## or ##\vec{r} = (\sqrt{1-y^2-z^2}, y, z)## or ##\vec{r} = (\sin \theta \cos \phi, \sin \theta \sin \phi, \cos \theta)## where ##z = \cos{\theta}##
 
  • Like
Likes   Reactions: vanhees71
PeroK said:
You effectively have a function of two independent variables, with ##r=1##. But, to get a partial derivative wrt ##z## you must be explicit about what the other variable is. For example, you could have:

##\vec{r} = (x, \sqrt{1-x^2-z^2}, z)## or ##\vec{r} = (\sqrt{1-y^2-z^2}, y, z)## or ##\vec{r} = (\sin \theta \cos \phi, \sin \theta \sin \phi, \cos \theta)## where ##z = \cos{\theta}##

Thanks indeed! You clear up my mind!
 

Similar threads

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