fairy._.queen
- 47
- 0
Hi all!
I must compute a derivative with respect to the components of a unit vector \hat{p}^{i}. In spherical coordinates,
\hat{p}^{1}=\hat{p}^{1}(\theta,\phi)=\cos\theta \sin\phi
I want to express the derivative \frac{\partial}{\partial\hat{p}^1} as a combination of \frac{\partial}{\partial\theta} and \frac{\partial}{\partial\phi}.
What I did is:
\frac{\partial f}{\partial\hat{p}^1}=\frac{\partial f}{\partial\theta}\frac{\partial\theta}{\partial \hat{p}^1}+\frac{\partial f}{\partial\phi}\frac{\partial\phi}{\partial\hat{p}^1}
Since \frac{\partial\hat{p}^1}{\partial\theta}=-\sin\theta\sin\phi and \frac{\partial\hat{p}^i}{\partial\phi}=\cos\theta \cos\phi I thought
\frac{\partial\theta}{\partial\hat{p}^1}=-\frac{1}{\sin\theta\sin\phi} and \frac{\partial\phi}{\partial\hat{p}^1}=\frac{1}{ \cos\theta\cos\phi}
so that the final derivative is
\frac{\partial f}{\partial\hat{p}^1}=-\frac{1}{\sin\theta\sin\phi}\frac{\partial f}{\partial\theta}+\frac{1}{\cos\theta\cos\phi} \frac{\partial f}{\partial\phi}
I would like to know if all this is correct. Thanks in advance!
I must compute a derivative with respect to the components of a unit vector \hat{p}^{i}. In spherical coordinates,
\hat{p}^{1}=\hat{p}^{1}(\theta,\phi)=\cos\theta \sin\phi
I want to express the derivative \frac{\partial}{\partial\hat{p}^1} as a combination of \frac{\partial}{\partial\theta} and \frac{\partial}{\partial\phi}.
What I did is:
\frac{\partial f}{\partial\hat{p}^1}=\frac{\partial f}{\partial\theta}\frac{\partial\theta}{\partial \hat{p}^1}+\frac{\partial f}{\partial\phi}\frac{\partial\phi}{\partial\hat{p}^1}
Since \frac{\partial\hat{p}^1}{\partial\theta}=-\sin\theta\sin\phi and \frac{\partial\hat{p}^i}{\partial\phi}=\cos\theta \cos\phi I thought
\frac{\partial\theta}{\partial\hat{p}^1}=-\frac{1}{\sin\theta\sin\phi} and \frac{\partial\phi}{\partial\hat{p}^1}=\frac{1}{ \cos\theta\cos\phi}
so that the final derivative is
\frac{\partial f}{\partial\hat{p}^1}=-\frac{1}{\sin\theta\sin\phi}\frac{\partial f}{\partial\theta}+\frac{1}{\cos\theta\cos\phi} \frac{\partial f}{\partial\phi}
I would like to know if all this is correct. Thanks in advance!