Fernando Garcia

Home     Research     Blog     Other     About me


PHYS405 - Electricity & Magnetism I

Spring 2024

Problem 1.49

Evaluate the integral

J=Ver(r^r2)dτ

Where V is a sphere of radius R, centered at the origin by two different methods (see Example 1.16)

As suggested by example 1.16 (page 49), there are two ways to solve this problem.

1. Short way: Using the Dirac Delta

Let's start by recalling

(Eq. 1.99, page 48)(r^r2)=4πδ3(r)

Let's use this formula on the integrand:

J=Ver(r^r2)dτ=Ver(4πδ3(r))dτ

To evaluate this, we recall:

(Eq. 1.98, page 48)f(r)δ3(ra)dτ=f(a)

So

J=Ver(4πδ3(r))dτ=4πVerδ3(r)dτ=4πer|r=0=4π

2. Long way: Integration by parts

Let's start by recalling

(Eq. 1.59, page 36)Vf(A)dτ=VAfdτ+SfAda

That is, we will transfer from the vector function r^/r2 to the scalar function er. This will avoid the use of the Dirac Delta, but it picks up a new term (a surface integral)!

In our current problem:

f=erA=r^r2

To compute the integral, let's remind ourselves the required integration elements:

(As seen on the cover of your book)dτ=r2sin(θ)drdθdϕ(At constant radius)da=R2sin(θ)dθdϕr^

Important remark: The vector area element won't always be that one. See page 39 for more information.

To calculate the volume integral we will need the gradient of f=er. We recall that in spherical coordinates:

(As seen on the cover of your book)f=frr^+1rfθθ^+1rsinθfϕϕ^

It is clear that the last 2 terms vanish, and we are left with

f=err^

We are now ready to evaluate the integral J:

J=Ver(r^r2)dτ=V(r^r2)(err^)dτ+Ser(r^r2)da=ϕ=02πθ=0πr=0Rerr2(r2sin(θ))drdθdϕ+ϕ=02πθ=0πeRR2R2sin(θ)dθdϕ=ϕ=02πθ=0πr=0Rersin(θ)drdθdϕ+eRϕ=02πθ=0πsin(θ)dθdϕ=ϕ=02πθ=0π(1eR)sin(θ)dθdϕ+eRϕ=02πθ=0πsin(θ)dθdϕ=ϕ=02πθ=0πsin(θ)dθdϕeRϕ=02πθ=0πsin(θ)dθdϕ+eRϕ=02πθ=0πsin(θ)dθdϕ=ϕ=02πθ=0πsin(θ)dθdϕ=ϕ=02π2dϕ=4π We get (as expected) the same answer as with method 1. Still, method 2 took considerably more steps than the first.

Back to PHYS405 site