hover
- 342
- 0
Homework Statement
Consider the scalar field
V = r^n , n ≠ 0
expressed in spherical coordinates. Find it's gradient \nabla V in
a.) cartesian coordinates
b.) spherical coordinates
Homework Equations
cartesian version:
\nabla V = \frac{\partial V}{\partial x}\hat{x} + \frac{\partial V}{\partial y}\hat{y} + \frac{\partial V}{\partial z}\hat{z}
spherical version:
\nabla V = \frac{\partial V}{\partial r}\hat{r} + \frac{1}{r}*\frac{\partial V}{\partial \phi}\hat{\phi} + \frac{1}{r*sin(\phi)}*\frac{\partial V}{\partial \theta}\hat{\theta}
conversion:
r = (x^2+y^2+z^2)^\frac{1}{2}
The Attempt at a Solution
a.) using the third equation...
V = r^n = (x^2+y^2+z^2)^\frac{n}{2}
using the first equation and skipping some steps involving the chain rule...
\nabla V = \frac{n(x\hat{x}+y\hat{y}+z\hat{z})}{(x^2+y^2+z^2)^\frac{n}{2}}
b.)Using the second equation
\nabla V = nr^m \hat{r}
m = n-1
Those are my two solutions to this problem. Are these right? Are they wrong? If so where did I go wrong?
Thanks!
hover