Fernando Garcia

Home     Research     Blog     Other     About me


PHYS405 - Electricity & Magnetism I

Spring 2024

Problem 1.57

Compute the line integral of

v=(rcos2θ)r^(rcos(θ)sin(θ))θ^+3rϕ^

Around the path shown in Fig. 1.50 (the points are labeled by their Cartesian coordinates).

Do it either in cylindrical or in spherical coordinates.

Check your answer using Stokes' theorem.

Answer 3π/2

Here's a 3D render of Figure 1.50:

Let's first calculate the line integral

The line integral can be split into 4 separate parts:

From D to A, from A to B, from B to C, and from C to D. (As seen in the 3D render above).

The first 2 (from D to A and from A to B) can be computed trivially in spherical coordiantes.

The last 2 (from B to C and from C to D), although possible in spherical, are trivial if we consider the vector field v in cylindrical coordinates.

First line integral:

We have a path in the r^-direction, meaning that move at constant θ and ϕ, that is:

dθ=dϕ=0

Further, along this path this constant variables have the values

θ=π2|ϕ=0

The line integral is:

vdl=v(dr,rdθ,rsin(θ)dϕ)=r1r2vrdr=01rcos2(θ)dr=cos2(θ)01rdr=cos2(π/2)01rdr(Since cos(π/2)=0)=0

Second line integral:

We have a path in the ϕ^-direction, meaning that move at constant r and θ, that is:

dr=dθ=0

Further, along this path this constant variables have the values

r=1|θ=π2

The line integral is:

vdl=v(dr,rdθ,rsin(θ)dϕ)=ϕ1ϕ2vϕ(rsin(θ))dϕ=0π/23r2sinθdϕ=3(1)2sin(π/2)0π/2dϕ=3(π20)=32π

The v field in cylindrical coordinates:

Read Prologue to 1.57: A brief discussion on conversions between spherical and cylidrical coordinates if you want to learn more details about this derivation.

v=(rcos2θ)r^(rcos(θ)sin(θ))θ^+3rϕ^=s2+z2z2s2+z2r^s2+z2zs2+z21z2s2+z2θ^+3s2+z2ϕ^=z2s2+z2r^z1z2s2+z2θ^+3s2+z2ϕ^=zz^+3s2+z2ϕ^

This is extremely enlightening! This tells us that the v will never point radially out of the z-field. (This is an example of how changing coordinate systems might reveal geometric details about our vector field).

Third line integral:

We are not moving on the ϕ^-direction, only on the z-direction, so the integral is quite simple!

02zdz=2

Fourth line integral:

Once again, the integral is simple since we are not moving on the ϕ^-direction, but only on the z-direction.

20zdz=2

Line integral conclusions:

vdl=0+3π2+22=3π2

Now that we computed all 4 segments of the path, we see that

Confirm result using Stokes' theorem:

Recall Stokes' theorem:

(Eq. 1.57, page 33)S(×v)da=Pvdl

The curl of the field is (in spherical)

×v=3cotθr^6θ^+0ϕ^

We can immediately tell that the surface integral over the triangular surface (on the yz-plane) is 0, since we don't have curl in the ϕ-direction. For the surface integral on the xy-plane (the 1/4th of a circle) is given by:

(3cotθ60)da=r=01θ=0π/26rsin(θ)dθdr=6(120)(π20)=3π2

Agreeing with the line integral result.


Back to PHYS405 site