Is My Gradient Solution for a Scalar Field Correct?

hover
Messages
342
Reaction score
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
 
Physics news on Phys.org
How did the power n/2 wind up in the denominator?? You should be able to check that the solutions are the same pretty easily. What's \hat r in cartesian coordinates?
 
Dick said:
How did the power n/2 wind up in the denominator?? You should be able to check that the solutions are the same pretty easily. What's \hat r in cartesian coordinates?

Small mistake there... the denominator should be (n-2)/2 from the chain rule. I think that \hat r in Cartesian coordinates is

\hat r = sin(\phi)*cos(θ)\hat{x}+sin(\phi)*sin(θ)\hat{y}+cos(\phi)\hat{z}

Is that right or am I completely off the mark?
 
hover said:
Small mistake there... the denominator should be (n-2)/2 from the chain rule. I think that \hat r in Cartesian coordinates is

\hat r = sin(\phi)*cos(θ)\hat{x}+sin(\phi)*sin(θ)\hat{y}+cos(\phi)\hat{z}

Is that right or am I completely off the mark?

The power of r should be (n-2)/2=n/2-1 but it should be in the numerator. \hat r=\frac{x \hat x + y \hat y + z \hat z}{r} is probably a more useful expression.
 
Dick said:
The power of r should be (n-2)/2=n/2-1 but it should be in the numerator. \hat r=\frac{x \hat x + y \hat y + z \hat z}{r} is probably a more useful expression.

I plugged \hat r *r={x \hat x + y \hat y + z \hat z} into my first equation(with r on top and to the power of n/2-1) and I got the value from part b so I guess that these answers are correct. I just have one question. Where exactly did your version of \hat r=\frac{x \hat x + y \hat y + z \hat z}{r} come from? I know this is probably simple but I want to understand where you got that equation from or how you derived it.
 
hover said:
I plugged \hat r *r={x \hat x + y \hat y + z \hat z} into my first equation(with r on top and to the power of n/2-1) and I got the value from part b so I guess that these answers are correct. I just have one question. Where exactly did your version of \hat r=\frac{x \hat x + y \hat y + z \hat z}{r} come from? I know this is probably simple but I want to understand where you got that equation from or how you derived it.

\hat r is a unit vector that points away from the origin. I took the point x \hat x + y \hat y + z \hat z and subtracted 0 \hat x + 0 \hat y + 0 \hat z to get a vector pointing away from the origin and divided by its length, r=\sqrt(x^2+y^2+z^2).
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top