DERIVING THE GRADIENT IN SPHERICAL COORDINATES
Roy Salinas
Abilene Christian University
Abilene, Texas 79601
rxs15b@acu.edu
April 7, 2020
1 Introduction
You have wandered here because you are either:
• trying to derive the spherical gradient
• are bored
• find this cool
• all of the above
If any of those apply to you, hopefully this document will help you with alleviate your troubles! This is meant to be an
introductory level document with a bit of prior knowledge in calculus that describes how one can go to deriving the
spherical gradient starting out in Cartesian coordinates.
2 Vectors
This section is to familiarize yourself with vectors but if you are already comfortable with vectors, you can go ahead
and go to the next section. Otherwise, feel free to start here!
2.1 What is a Vector?
My first assumption will be that my audience is familiar are familiar with some math. A vector represents some amount
in a certain direction. A very simple vector is shown below
x = (some scalar)ˆx
where the scalar denotes the magnitude in the x direction. The direction towards the x axis is represented with the
"carrot top" or "hat" symbol, choose your favorite. That’s all a vector is! We can now create a three dimensional vector
in Cartesian coordinates using this simple example
r = xˆx + yˆy + zˆz (1)
x
y
z
r
That’s all there is to vectors!
2.2 Basis Vectors
Having established what vectors are, you might have wondered to yourself what are basis vectors and if they’re any
different from the vectors we have already established? They are similar to regular vectors with the caveat of basis
vectors being the constituents of a "regular" vector. Let’s say we have a set B that contains elements - basis vectors in
this case - of a vector space V. If we can write any element of this vector space in terms of the linearly independent set
B, our set B is said to be a basis for the vector space V. This is to say that the vector space V spans the set B. Let’s break
down what that means:
• set of elements B: Just a set that contains objects that are vectors. Think of it in terms of [u1u2u3] where in
this case u1 = ˆx, u2 = ˆy, u3 = ˆz
• Vector space V: A Euclidean space that can be represented by a collection of objects such as vectors.
• Spans the set of basis vectors B: the vector space V can be represented with a linear combination of the basis
vectors that are in set B. Any vector in the vector space V can be written in terms of elements in set B
2
3 Derivation of Gradient in Spherical Coordinates
3.1 Spherical Coodinates
We begin this endeavor with spherical coordinates : θ, r, and φ.
Figure 1: Differential element in spherical coordinates
We want to go from the gradient in Cartesian coordinates to the gradient in spherical coordinates.
= ˆx
∂
∂x
+ ˆy
∂
∂y
+ ˆz
∂
∂z
−→ = ˆr
∂
∂r
+ ˆθ
1
r
∂
∂θ
+ ˆφ
1
r sin θ
∂
∂φ
We begin our journey by expressing our Cartesian coordinates in terms of their spherical cousins. In the following set
of equations, A is a line that is orthogonal to the z axis and creates the arc in the φ direction. It can be viewed as an
intermediate variable.
cos θ =
z
r
−→ z = r cos θ
cos φ =
x
A
−→ x = A cos φ −→ x = r sin θ cos φ
sin φ =
y
A
−→ y = A sin φ −→ y = r sin θ sin φ
x
y
z
=
sin θ cos φ
sin θ sin φ
cos θ
r
We can also express our spherical coordinates in terms of our Cartesian coordinates
r = x2 + y2 + z2
φ = tan−1 y
x
θ = tan−1 x2 + y2
z
3
x
y
z
r
φ
θ
A
Figure 2: Spherical Coordinate system with A component represented in blue
3.2 Transforming partial derivatives
Now we are getting to the gritty part of this where we are transforming the partial derivatives using the relationships we
have established. Please, hold onto your hats and pencils! We begin by using the chain rule for each partial derivative in
Cartesian coordinates and expressing them in terms of our partials in spherical coordinates.
∂
∂x
=
∂r
∂x
∂
∂r
+
∂θ
∂x
∂
∂θ
+
∂φ
∂x
∂
∂φ
∂
∂y
=
∂r
∂y
∂
∂r
+
∂θ
∂y
∂
∂θ
+
∂φ
∂y
∂
∂φ
∂
∂z
=
∂r
∂z
∂
∂r
+
∂θ
∂z
∂
∂θ
+
∂φ
∂z
∂
∂φ
If you are wondering to yourself why was the chain rule invoked here and how does this help at all??? The following
explanation should help but if you are already comfortable with why it is used here, you can merry along.
3.2.1 Why use the chain rule?
The reason we utilize the chain rule here is due to having our coordinates x,y, and z in terms of r, φ, θ. Let’s take a
look at x for example:
x = r sin θ cos φ −→ x = f(r, θ, φ)
Here x is a function of r, φ, θ and to represent the partial derivative in terms of our spherical coordinates requires
including all of the components to find the partial in respect to x.
3.3 Calculating each partial derivative
I really hope you are still holding onto your pencil and hat. We now begin calculating each partial derivative that was
established in 3.2 with the relationships that we found in 3.1. The following will outline the important steps in each
partial derivative but won’t work out every detail. I do recommend working out the partial derivatives yourself to
familiarize yourself with the process. There will be a link towards the end of this document with the details of how this
was calculated so you can check your work!
4
3.3.1 ∂
∂x term
∂r
∂x
=
∂
∂x
x2 + y2 + z2 = (x2
+ y2
+ z2
)−1/2
x =
x
r
= cos φ sin θ
∂θ
∂x
=
∂
∂x
tan−1
(
x2 + y2
z
) −→
∂
∂x
tan−1
( ) =
1
1 + 2
∂
∂x
=
zx
r2(x2 + y2)1/2
=
cos θ cos φ
r
∂φ
∂x
=
∂
∂x
tan−1
(
y
x
) −→
∂
∂x
tan−1
(η) =
1
1 + η2
∂η
∂x
=
− sin φ
r sin θ
3.3.2 ∂
∂y term
∂r
∂y
=
∂
∂y
x2 + y2 + z2 = (x2
+ y2
+ z2
)−1/2
y =
y
r
= sin φ sin θ
∂θ
∂y
=
∂
∂y
tan−1
(
x2 + y2
z
) −→
∂
∂y
tan−1
( ) =
1
1 + 2
∂
∂y
=
zy
r2(x2 + y2)1/2
=
cos θ sin φ
r
∂φ
∂y
=
∂
∂y
tan−1
(
y
x
) −→
∂
∂y
tan−1
(η) =
1
1 + η2
∂η
∂y
=
cos φ
r sin θ
3.3.3 ∂
∂z term
∂r
∂z
=
∂
∂z
x2 + y2 + z2 = (x2
+ y2
+ z2
)−1/2
z =
z
r
= cos θ
∂θ
∂z
=
∂
∂z
tan−1
(
x2 + y2
z
) −→
∂
∂z
tan−1
( ) =
−z2
r sin θ
r2z2
=
− sin θ
r
∂φ
∂x
=
∂
∂z
tan−1
(
y
x
) = 0
3.4 Finishing up (almost)
We have now derived the partial for each Cartesian coordinate in terms of r,φ,θ. Before you move on, make sure you
understand why we have used the chain rule, the relationship between the Cartesian and spherical coordinates, and that
it is ok to find this grueling. Now we begin to plug into our Cartesian gradient.
ˆx
∂
∂x
= ˆx(cos φ sin θ
∂
∂r
+
cos θ cos φ
r
∂
∂θ
−
sin φ
r sin θ
∂
∂φ
)
ˆy
∂
∂y
= ˆy(sin φ sin θ
∂
∂r
+
cos θ sin φ
r
∂
∂θ
+
cos φ
r sin θ
∂
∂φ
)
ˆz
∂
∂z
= ˆz(cos θ
∂
∂r
−
sin θ
r
∂
∂θ
)
=



cos φ sin θ ∂
∂r
cos θ cos φ
r
∂
∂θ
− sin φ
r sin θ
∂
∂φ
sin φ sin θ ∂
∂r
cos θ sin φ
r
∂
∂θ
cos φ
r sin θ
∂
∂φ
cos θ ∂
∂r
− sin θ
r
∂
∂θ 0



T
ˆx
ˆy
ˆz
One can see how this can become a lengthy expression if it were to placed in one single line (thankfully we can use a
matrix).We won’t place it in a single line to save the electronic trees from getting cut down by the electronic corporations
5
who are responsible for electronic deforestation. Do keep in mind that these partials do get plugged into the following
gradient
= ˆx
∂
∂x
+ ˆy
∂
∂y
+ ˆz
∂
∂z
Now that we have the gradient almost to where we want it, we now need to find the correct unit vectors. Why do we
need the correct unit vectors you may ask yourself? Unit vectors are significant because they point you in the direction
that is increasing. Finding a unit vector is very similar to finding a regular vector except that you have to normalize it.
ˆeµ =
eµ
||eµ||
eµ = ˆµ
∂ρ
∂µ
Where µ is a dummy variable that takes the place of any other coordinate. If you find yourself wondering Why do we
have to take the partial in respect of the coordinate that is in question? Your answer is just a few words away! It can
be best explained by understanding that going in any particular direction requires one to know in which way is that
direction increasing. If I wanted to go North, I would go in the direction who’s change is positive (positively increasing
because that implies that is is North). We now do this for r,θ,φ.
ρ = xˆx + yˆy + zˆz −→ r cos φ sin θˆx + r sin φ sin θˆy + r cos θˆz
ˆer =
er
||er||
eθ =
eθ
||eθ||
eφ =
eφ
||eφ||
All we have to do is calculate the partial in respect to each coordinate and find the magnitude to arrive at our new basis
vectors!
er =
∂ρ
∂r
= cos φ sin θˆx + sin φ sin θˆy + cos θˆz
eθ =
∂ρ
∂θ
= cos φ cos θˆx + sin φ cos θˆy − sin θˆz
eφ =
∂ρ
∂φ
= − sin φˆx + cos φˆy
||er|| = ||eφ|| = ||eθ|| = 1
We now need to find what the Cartesian unit vectors are. We have two options in front of us: turn this into a system of
linear of equations and solve for ˆx,ˆy,ˆz OR use the orthogonality of the Cartesian coordinates to our advantage. I prefer
the latter as it will be much faster. To find each Cartesian coordinate, we need to find the projection of each Cartesian
coordinate unit vectors to our new spherical unit vectors.
3.4.1 Cartesian Unit Vectors
ˆx · ˆer = cos φ sin θ ˆy · ˆer = sin φ sin θ ˆz · ˆer = cos θ
ˆx · ˆeθ = cos φ cos θ ˆy · ˆeθ = sin φ cos θ ˆz · ˆeφ = cos φ
ˆx · ˆeφ = − sin θ ˆy · ˆeφ = cos φ ˆz · ˆeφ = 0
ˆx =
cos φ sin θ
cos θ cos φ
− sin φ
T


ˆr
ˆθ
ˆφ

ˆy =
sin φ sin θ
cos θ sin φ
cos φ
T


ˆr
ˆθ
ˆφ

ˆz =
cos θ
− sin θ
0
T


ˆr
ˆθ
ˆφ


6
3.5 We have now arrived
We have specified our basis vectors, derived the partial derivatives of our Cartesian coordinates, and have held onto our
hats (and pencils). The last thing we have to do is plug in! If we take at what the gradient is, we can begin looking at
each individual part.
=
ˆx
ˆy
ˆz



cos φ sin θ ∂
∂r
cos θ cos φ
r
∂
∂θ
− sin φ
r sin θ
∂
∂φ
sin φ sin θ ∂
∂r
cos θ sin φ
r
∂
∂θ
cos φ
r sin θ
∂
∂φ
cos θ ∂
∂r
− sin θ
r
∂
∂θ 0



T
ˆx cos φ sin θ ∂
∂r
cos θ cos φ
r
∂
∂θ
− sin φ
r sin θ
∂
∂φ
T
= cos φ sin θˆr cos θ cos φˆθ − sin φˆφ


cos φ sin θ ∂
∂r
cos θ cos φ
r
∂
∂θ
− sin φ
r sin θ
∂
∂φ


ˆy sin φ sin θ ∂
∂r
cos θ sin φ
r
∂
∂θ
cos φ
r sin θ
∂
∂φ
T
= sin φ sin θˆr cos θ sin φˆθ cos φˆφ


sin φ sin θ ∂
∂r
cos θ sin φ
r
∂
∂θ
cos φ
r sin θ
∂
∂φ


ˆz cos θ ∂
∂r
− sin θ
r
∂
∂θ 0
T
= cos θˆr − sin θˆθ 0


cos θ ∂
∂r
− sin θ
r
∂
∂θ
0


You perform the matrix operations for each Cartesian coordinate, collect like terms - which a lot of the like terms will
go to one due to trigonometric identities - and then "organize" it in terms of the spherical unit vectors. Carrying each
calculation is tedious and that is ok. However, it is important for it to be carried out due it allowing you to see what is
actually happening. I recommend doing them ONLY when you have 15 minutes to spare. Once that is all completed,
you arrive at the spherical gradient!
= ˆr
∂
∂r
+ ˆθ
1
r
∂
∂θ
+ ˆφ
1
r sin θ
∂
∂φ
If you are curious to see the actual white board work, you can find it here.
7

Gradient derivation

  • 1.
    DERIVING THE GRADIENTIN SPHERICAL COORDINATES Roy Salinas Abilene Christian University Abilene, Texas 79601 rxs15b@acu.edu April 7, 2020 1 Introduction You have wandered here because you are either: • trying to derive the spherical gradient • are bored • find this cool • all of the above If any of those apply to you, hopefully this document will help you with alleviate your troubles! This is meant to be an introductory level document with a bit of prior knowledge in calculus that describes how one can go to deriving the spherical gradient starting out in Cartesian coordinates.
  • 2.
    2 Vectors This sectionis to familiarize yourself with vectors but if you are already comfortable with vectors, you can go ahead and go to the next section. Otherwise, feel free to start here! 2.1 What is a Vector? My first assumption will be that my audience is familiar are familiar with some math. A vector represents some amount in a certain direction. A very simple vector is shown below x = (some scalar)ˆx where the scalar denotes the magnitude in the x direction. The direction towards the x axis is represented with the "carrot top" or "hat" symbol, choose your favorite. That’s all a vector is! We can now create a three dimensional vector in Cartesian coordinates using this simple example r = xˆx + yˆy + zˆz (1) x y z r That’s all there is to vectors! 2.2 Basis Vectors Having established what vectors are, you might have wondered to yourself what are basis vectors and if they’re any different from the vectors we have already established? They are similar to regular vectors with the caveat of basis vectors being the constituents of a "regular" vector. Let’s say we have a set B that contains elements - basis vectors in this case - of a vector space V. If we can write any element of this vector space in terms of the linearly independent set B, our set B is said to be a basis for the vector space V. This is to say that the vector space V spans the set B. Let’s break down what that means: • set of elements B: Just a set that contains objects that are vectors. Think of it in terms of [u1u2u3] where in this case u1 = ˆx, u2 = ˆy, u3 = ˆz • Vector space V: A Euclidean space that can be represented by a collection of objects such as vectors. • Spans the set of basis vectors B: the vector space V can be represented with a linear combination of the basis vectors that are in set B. Any vector in the vector space V can be written in terms of elements in set B 2
  • 3.
    3 Derivation ofGradient in Spherical Coordinates 3.1 Spherical Coodinates We begin this endeavor with spherical coordinates : θ, r, and φ. Figure 1: Differential element in spherical coordinates We want to go from the gradient in Cartesian coordinates to the gradient in spherical coordinates. = ˆx ∂ ∂x + ˆy ∂ ∂y + ˆz ∂ ∂z −→ = ˆr ∂ ∂r + ˆθ 1 r ∂ ∂θ + ˆφ 1 r sin θ ∂ ∂φ We begin our journey by expressing our Cartesian coordinates in terms of their spherical cousins. In the following set of equations, A is a line that is orthogonal to the z axis and creates the arc in the φ direction. It can be viewed as an intermediate variable. cos θ = z r −→ z = r cos θ cos φ = x A −→ x = A cos φ −→ x = r sin θ cos φ sin φ = y A −→ y = A sin φ −→ y = r sin θ sin φ x y z = sin θ cos φ sin θ sin φ cos θ r We can also express our spherical coordinates in terms of our Cartesian coordinates r = x2 + y2 + z2 φ = tan−1 y x θ = tan−1 x2 + y2 z 3
  • 4.
    x y z r φ θ A Figure 2: SphericalCoordinate system with A component represented in blue 3.2 Transforming partial derivatives Now we are getting to the gritty part of this where we are transforming the partial derivatives using the relationships we have established. Please, hold onto your hats and pencils! We begin by using the chain rule for each partial derivative in Cartesian coordinates and expressing them in terms of our partials in spherical coordinates. ∂ ∂x = ∂r ∂x ∂ ∂r + ∂θ ∂x ∂ ∂θ + ∂φ ∂x ∂ ∂φ ∂ ∂y = ∂r ∂y ∂ ∂r + ∂θ ∂y ∂ ∂θ + ∂φ ∂y ∂ ∂φ ∂ ∂z = ∂r ∂z ∂ ∂r + ∂θ ∂z ∂ ∂θ + ∂φ ∂z ∂ ∂φ If you are wondering to yourself why was the chain rule invoked here and how does this help at all??? The following explanation should help but if you are already comfortable with why it is used here, you can merry along. 3.2.1 Why use the chain rule? The reason we utilize the chain rule here is due to having our coordinates x,y, and z in terms of r, φ, θ. Let’s take a look at x for example: x = r sin θ cos φ −→ x = f(r, θ, φ) Here x is a function of r, φ, θ and to represent the partial derivative in terms of our spherical coordinates requires including all of the components to find the partial in respect to x. 3.3 Calculating each partial derivative I really hope you are still holding onto your pencil and hat. We now begin calculating each partial derivative that was established in 3.2 with the relationships that we found in 3.1. The following will outline the important steps in each partial derivative but won’t work out every detail. I do recommend working out the partial derivatives yourself to familiarize yourself with the process. There will be a link towards the end of this document with the details of how this was calculated so you can check your work! 4
  • 5.
    3.3.1 ∂ ∂x term ∂r ∂x = ∂ ∂x x2+ y2 + z2 = (x2 + y2 + z2 )−1/2 x = x r = cos φ sin θ ∂θ ∂x = ∂ ∂x tan−1 ( x2 + y2 z ) −→ ∂ ∂x tan−1 ( ) = 1 1 + 2 ∂ ∂x = zx r2(x2 + y2)1/2 = cos θ cos φ r ∂φ ∂x = ∂ ∂x tan−1 ( y x ) −→ ∂ ∂x tan−1 (η) = 1 1 + η2 ∂η ∂x = − sin φ r sin θ 3.3.2 ∂ ∂y term ∂r ∂y = ∂ ∂y x2 + y2 + z2 = (x2 + y2 + z2 )−1/2 y = y r = sin φ sin θ ∂θ ∂y = ∂ ∂y tan−1 ( x2 + y2 z ) −→ ∂ ∂y tan−1 ( ) = 1 1 + 2 ∂ ∂y = zy r2(x2 + y2)1/2 = cos θ sin φ r ∂φ ∂y = ∂ ∂y tan−1 ( y x ) −→ ∂ ∂y tan−1 (η) = 1 1 + η2 ∂η ∂y = cos φ r sin θ 3.3.3 ∂ ∂z term ∂r ∂z = ∂ ∂z x2 + y2 + z2 = (x2 + y2 + z2 )−1/2 z = z r = cos θ ∂θ ∂z = ∂ ∂z tan−1 ( x2 + y2 z ) −→ ∂ ∂z tan−1 ( ) = −z2 r sin θ r2z2 = − sin θ r ∂φ ∂x = ∂ ∂z tan−1 ( y x ) = 0 3.4 Finishing up (almost) We have now derived the partial for each Cartesian coordinate in terms of r,φ,θ. Before you move on, make sure you understand why we have used the chain rule, the relationship between the Cartesian and spherical coordinates, and that it is ok to find this grueling. Now we begin to plug into our Cartesian gradient. ˆx ∂ ∂x = ˆx(cos φ sin θ ∂ ∂r + cos θ cos φ r ∂ ∂θ − sin φ r sin θ ∂ ∂φ ) ˆy ∂ ∂y = ˆy(sin φ sin θ ∂ ∂r + cos θ sin φ r ∂ ∂θ + cos φ r sin θ ∂ ∂φ ) ˆz ∂ ∂z = ˆz(cos θ ∂ ∂r − sin θ r ∂ ∂θ ) =    cos φ sin θ ∂ ∂r cos θ cos φ r ∂ ∂θ − sin φ r sin θ ∂ ∂φ sin φ sin θ ∂ ∂r cos θ sin φ r ∂ ∂θ cos φ r sin θ ∂ ∂φ cos θ ∂ ∂r − sin θ r ∂ ∂θ 0    T ˆx ˆy ˆz One can see how this can become a lengthy expression if it were to placed in one single line (thankfully we can use a matrix).We won’t place it in a single line to save the electronic trees from getting cut down by the electronic corporations 5
  • 6.
    who are responsiblefor electronic deforestation. Do keep in mind that these partials do get plugged into the following gradient = ˆx ∂ ∂x + ˆy ∂ ∂y + ˆz ∂ ∂z Now that we have the gradient almost to where we want it, we now need to find the correct unit vectors. Why do we need the correct unit vectors you may ask yourself? Unit vectors are significant because they point you in the direction that is increasing. Finding a unit vector is very similar to finding a regular vector except that you have to normalize it. ˆeµ = eµ ||eµ|| eµ = ˆµ ∂ρ ∂µ Where µ is a dummy variable that takes the place of any other coordinate. If you find yourself wondering Why do we have to take the partial in respect of the coordinate that is in question? Your answer is just a few words away! It can be best explained by understanding that going in any particular direction requires one to know in which way is that direction increasing. If I wanted to go North, I would go in the direction who’s change is positive (positively increasing because that implies that is is North). We now do this for r,θ,φ. ρ = xˆx + yˆy + zˆz −→ r cos φ sin θˆx + r sin φ sin θˆy + r cos θˆz ˆer = er ||er|| eθ = eθ ||eθ|| eφ = eφ ||eφ|| All we have to do is calculate the partial in respect to each coordinate and find the magnitude to arrive at our new basis vectors! er = ∂ρ ∂r = cos φ sin θˆx + sin φ sin θˆy + cos θˆz eθ = ∂ρ ∂θ = cos φ cos θˆx + sin φ cos θˆy − sin θˆz eφ = ∂ρ ∂φ = − sin φˆx + cos φˆy ||er|| = ||eφ|| = ||eθ|| = 1 We now need to find what the Cartesian unit vectors are. We have two options in front of us: turn this into a system of linear of equations and solve for ˆx,ˆy,ˆz OR use the orthogonality of the Cartesian coordinates to our advantage. I prefer the latter as it will be much faster. To find each Cartesian coordinate, we need to find the projection of each Cartesian coordinate unit vectors to our new spherical unit vectors. 3.4.1 Cartesian Unit Vectors ˆx · ˆer = cos φ sin θ ˆy · ˆer = sin φ sin θ ˆz · ˆer = cos θ ˆx · ˆeθ = cos φ cos θ ˆy · ˆeθ = sin φ cos θ ˆz · ˆeφ = cos φ ˆx · ˆeφ = − sin θ ˆy · ˆeφ = cos φ ˆz · ˆeφ = 0 ˆx = cos φ sin θ cos θ cos φ − sin φ T   ˆr ˆθ ˆφ  ˆy = sin φ sin θ cos θ sin φ cos φ T   ˆr ˆθ ˆφ  ˆz = cos θ − sin θ 0 T   ˆr ˆθ ˆφ   6
  • 7.
    3.5 We havenow arrived We have specified our basis vectors, derived the partial derivatives of our Cartesian coordinates, and have held onto our hats (and pencils). The last thing we have to do is plug in! If we take at what the gradient is, we can begin looking at each individual part. = ˆx ˆy ˆz    cos φ sin θ ∂ ∂r cos θ cos φ r ∂ ∂θ − sin φ r sin θ ∂ ∂φ sin φ sin θ ∂ ∂r cos θ sin φ r ∂ ∂θ cos φ r sin θ ∂ ∂φ cos θ ∂ ∂r − sin θ r ∂ ∂θ 0    T ˆx cos φ sin θ ∂ ∂r cos θ cos φ r ∂ ∂θ − sin φ r sin θ ∂ ∂φ T = cos φ sin θˆr cos θ cos φˆθ − sin φˆφ   cos φ sin θ ∂ ∂r cos θ cos φ r ∂ ∂θ − sin φ r sin θ ∂ ∂φ   ˆy sin φ sin θ ∂ ∂r cos θ sin φ r ∂ ∂θ cos φ r sin θ ∂ ∂φ T = sin φ sin θˆr cos θ sin φˆθ cos φˆφ   sin φ sin θ ∂ ∂r cos θ sin φ r ∂ ∂θ cos φ r sin θ ∂ ∂φ   ˆz cos θ ∂ ∂r − sin θ r ∂ ∂θ 0 T = cos θˆr − sin θˆθ 0   cos θ ∂ ∂r − sin θ r ∂ ∂θ 0   You perform the matrix operations for each Cartesian coordinate, collect like terms - which a lot of the like terms will go to one due to trigonometric identities - and then "organize" it in terms of the spherical unit vectors. Carrying each calculation is tedious and that is ok. However, it is important for it to be carried out due it allowing you to see what is actually happening. I recommend doing them ONLY when you have 15 minutes to spare. Once that is all completed, you arrive at the spherical gradient! = ˆr ∂ ∂r + ˆθ 1 r ∂ ∂θ + ˆφ 1 r sin θ ∂ ∂φ If you are curious to see the actual white board work, you can find it here. 7