Fernando Garcia

Home     Research     Blog     Other     About me


PHYS405 - Electricity & Magnetism I

Spring 2024

Problem 1.65

Consider the vector function

A=yx^+xy^x2+y2

(a) Check Stokes' theorem for A using a circle of radius R in the xy plane. Diagnose the problem, and fix it by correcting the curl of A. Use Cartesian coordinates.

(b) Convert A to cylindrical coordinates, and repeat part (a), this time doing everything in terms of s,ϕ,z.

Let's recall The Fundamental Theorem for curls, also known as Stokes' theorem:

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

(a) Let's consider the circular path (of radius R, centered at the origin)

r(t)=(Rcos(t)Rsin(t))

Where t will go from 0 to 2π. The field A at some point on the curve given by t will be given by:

A=Rsin(t)R2cos2t+R2sin2tx^+Rcos(t)R2cos2t+R2sin2ty^=Rsin(t)R2x^+Rcos(t)R2y^=sin(t)Rx^+cos(t)Ry^

To compute the line integral, let's first compute the differential dr:

dr=(Rsin(t)Rcos(t))dt

We can now compute the line integral:

CAdr=t=02π(sin(t)/Rcos(t)/R)(Rsin(t)Rcos(t))dt=t=02πsin2t+cos2tdt=t=02π1dt=2π

Now, let's consider the surface integral of the curl. It is straightforward to see that the curl of A is

×A=0

So... the surface integral is 0! This contradicts Stokes' theorem (since the line integral yielded 2π, not 0).

To fix this, let's rewrite the curl using Dirac Deltas:

×A=2πδ(x)δ(y)z^

When doing so, we see that

Circle of radius R(×A)(dxdyz^)=Circle of radius R2πδ(x)δ(y)dxdy=2π

Which now agrees with Stokes' theorem.

(b) We start part b by writing the field in cylindrical coordinates. Let's recall the conversions:

x=scos(ϕ)y=ssin(ϕ)

Further, recall

x^=cosϕs^sinϕϕ^y^=sinϕs^+cosϕϕ^

So

A=ssin2ϕ+scos2ϕ(scosϕ)2+(ssinϕ)2ϕ^=1sϕ^

Which agrees with the intuition from the interactive plot above: The vector is always pointing tangentially from the circle.

The line integral will now take place using the path

r=Rs^+tϕ^

With t going from 0 to 2π. It is clear that the result will again be 2π. For the other side of Stokes' theorem (surface integral of the curl), it is easy to see that (using the cylindrical curl) ×A=0. To fix this, we again bring Dirac Deltas, now in the form:

×Aδ(s)sz^

And notice how this way:

Circle of radius R(×A)dA=ϕ=02π0Rδ(s)s(sdsdϕ)=02πdϕ=2π

Back to PHYS405 site