PlanetPhysics/Laplacian in Spherical Coordinates

From testwiki
Jump to navigation Jump to search

The [[../LaplaceOperator/|Laplacian]] [[../QuantumSpinNetworkFunctor2/|operator]] in spherical coordinates is

sph2=1r2r(r2r)+1r2sinθθ(sinθθ)+1r2sin2θ2ϕ2

The derivation is fairly straight forward and begins with locating a [[../Vectors/|vector]] {\mathbf r} in spherical coordinates as shown in the figure.

\begin{figure} \includegraphics[scale=.698]{SphericalCoordinates.eps} \caption{Spherical Coordinates} \end{figure}

The z component of the [[../PureState/|unit vector]] in direction of {\mathbf r} is given from the simple right triangle

cosθ=z|r^|

Since a unit vector has a length of 1, the z component is

z=cosθ

To get the x component, we need to get the r^ projected onto the xy-plane

cos(90θ)=|r^xy||r^|

using the trig [[../Cod/|identity]] cos(90θ)=sinθ

the projected unit vector is

|r^xy|=sinθ

Finally, the x component is reached through the right triangle

cosϕ=x|r^xy|

giving

x=cosϕsinθ

the y component follows the x component through

sinϕ=y|r^xy|

which yields

y=sinϕsinθ

The vector in spherical coordinates is then

𝐫=rr^=r[sinθcosϕi^+sinθsinϕj^+cosθk^]

Now describing the unit vectors of a moving [[../Particle/|particle]] r^,θ^,ϕ^ shown in the spherical coordinates figure is a little more tricky. If a particle moves in the r^ direction, it only moves in or out along r so

𝐫r=kr^

For θ^ and ϕ^, think of uniform circular [[../CosmologicalConstant2/|motion]] like a record, so they can be calculated from

θ^=𝐫θ|𝐫θ|

θ^=𝐫ϕ|𝐫ϕ|

Next, take the partial derivatives of (2) and then calculate their [[../AbsoluteMagnitude/|magnitudes]] to get the above unit vectors.

𝐫θ=r[cosθcosϕi^+cosθsinϕj^sinθk^]

𝐫ϕ=r[sinθsinϕi^+sinθcosϕj^]

|𝐫θ|=𝐱𝐱=r2[cos2θcos2ϕ+cos2θsin2ϕ+sin2θ]

|𝐫θ|=rcos2θ(cos2ϕ+sin2ϕ)+sin2θ]

Using the basic trig identity

|𝐫θ|=r

|𝐫ϕ|=rsin2θ(sin2ϕ+cos2ϕ)]

|𝐫ϕ|=rsinθ

Then plug in these values to get

ϕ^=sinϕi^+cosϕj^ θ^=cosθcosϕi^+cosθsinϕj^sinθk^

and from before we had

r^=sinθcosϕi^+sinθsinϕj^+cosθk^

The generalized differential for curvilinear coordinates is

d𝐫=𝐫u1du1+𝐫u2du2+𝐫u3du3

For spherical coordinates we have

u1=r u2=θ u3=ϕ

and from earlier we learned

|𝐫r|r^=𝐫r

|𝐫θ|θ^=𝐫θ

|𝐫ϕ|θ^=𝐫ϕ

Plugging these values into the generalized differential yields

d𝐫=drr^+rdθθ^+rsinθdϕϕ^

The next major step is to see how the [[../Gradient/|gradient]] fits into the definition of the differential for a [[../Bijective/|function]] f

df=frdr+fθdθ+fϕdϕ df=fd𝐫

So we see that the following must be equal and we need to solve for the gradient's components.

frdr=rfdr fθdθ=θfdθ fϕdϕ=ϕfdϕ

Therfore our scale factors are

r=1 θ=1r ϕ=1rsinθ

which finally gives us the gradient in spherical coordinates

sph=rr^+θθ^r+ϕϕ^rsinθ

The last tedious calculation is then the Laplacian, which is our goal

2==(rr^+θθ^r+ϕϕ^rsinθ)(rr^+θθ^r+ϕϕ^rsinθ)

Let us break it up by components to make it easy to view, so carrying out only part of the [[../DotProduct/|dot product]] our 1st term is

r^(r^rr+r^2r2+θ^r1rθ+θ^r1rθ+θ^r2rθ+ϕ^r1rsinθϕ+ϕ^r(1rsinθ)ϕ+ϕ^rsinθ2rϕ)

While this looks a little scary, all but the 2nd term is zero. The first term is zero because there is no r in r^

r^=sinθcosϕi^+sinθsinϕj^+cosθk^

so taking the derivative with respect to r yeilds zero. Similarly, the 3rd and 6th term are zero when taking the partial derivatives. The 4th,5th,7th and 8th terms are zero because the dot product of two orthogonal vectors (90o) is zero so

r^θ^=0 r^ϕ^=0

This leaves only the second term

r^r^2r2=2r2

Now onto the θ^ term

θ^r(r^θr+r^2θr+θ^θ1rθ+θ^θ1rθ+θ^r2θ2+ϕ^θ1rsinθϕ+ϕ^θ(1rsinθ)ϕ+ϕ^rsinθ2θϕ)

The dot product gets rid of the 2nd, 3rd, 7th and 8th terms, while the 4th and 6th terms are zero when taking the derivatives

θ1r=0 ϕ^θ=0

Two terms remain, for the first term we need to calculate

r^θ=cosθcosϕi^+cosθsinϕj^sinθk^=θ^

This yields

θ^rθ^r=1rr

The 5th term is just the dot product

θ^rθ^r2θ2=1r22θ2

Finally, the ϕ^ part of the dot product is

ϕ^rsinθ(r^ϕr+r^2ϕr+θ^ϕ1rθ+θ^ϕ1rθ+θ^r2ϕθ+ϕ^ϕ1rsinθϕ+ϕ^ϕ(1rsinθ)ϕ+ϕ^rsinθ2ϕ2)

Once again the dot product makes the 2nd, 4th and 5th terms zero. The first term derivative

r^ϕ=sinθsinϕi^+sinθcosϕj^=sinθϕ^r

this leads to

ϕ^rsinθsinθϕ^r=1rr

The 3rd term derivative is

θ^ϕ=cosθsinϕi^+cosθcosϕj^=cosθϕ^

this leads to

ϕ^rsinθcosθϕ^1rθ=cosθr2sinθθ

The 6th term can be seen to be zero because the derivative of ϕ^ with respect to ϕ is a vector perpendicular to ϕ^ (feel free to carry out this calculation), so the dot product will be zero.

The 7th term derivative is zero

ϕ(1rsinθ)=0

Then we keep the 8th term

ϕ^rsinθϕ^rsinθ2ϕ2=1r2sin2θ2ϕ2

Putting the results from (3),(4),(5),(6),(7) and (8) we get

sph2=2r2+1rr+1r22θ2+1rr+cosθr2sinθθ+1r2sin2θ2ϕ2

Certainly, we could finish here, but let us combine some terms and notice the following relationships (check these for yourself)

[2r2+2rr]=1r2r(r2r)

[1r22θ2+cosθr2sinθθ]=1r2sinθθ(sinθθ)

This gives us the equation given in (1), the Laplacian in spherical coordinates

sph2=1r2r(r2r)+1r2sinθθ(sinθθ)+1r2sin2θ2ϕ2

{\mathbf References}

[1] Marsden, J., Tromba, A. "Vector Calculus" Fourth Edition. W.H. Freeman Company, 1996.

[2] Ellis, R., Gulick, D. "Calculus" Harcourt Brace Jovanovich, Inc., Orlando, FL, 1991.

[3] Benbrook, J. "Intermediate Electromagnetic Theory", lecture notes, University of Houston, Fall 2002.

Template:CourseCat