27.3. CYLINDRICAL AND SPHERICAL COORDINATES 545

Therefore, the total force is∫H(xi+ yj+(z− z0)k)

1(x2 + y2 +(z− z0)

2)3/2 Gα dV.

By the symmetry of the sphere, the i and j components will cancel out when the integralis taken. This is because there is the same amount of stuff for negative x and y as there isfor positive x and y. Hence what remains is

αGk∫

H

(z− z0)[x2 + y2 +(z− z0)

2]3/2 dV

as claimed. Now for the interesting part, the integral is evaluated. In spherical coordinatesthis integral is. ∫ 2π

0

∫ b

a

∫π

0

(ρ cosφ − z0)ρ2 sinφ(ρ2 + z2

0 −2ρz0 cosφ)3/2 dφ dρ dθ . (27.1)

Rewrite the inside integral and use integration by parts to obtain this inside integral equals

12z0

∫π

0

2 cosφ −ρz0) (2z0ρ sinφ)(

ρ2 + z20 −2ρz0 cosφ

)3/2 dφ =

12z0

−2−ρ2 −ρz0√(

ρ2 + z20 +2ρz0

) +2ρ2 −ρz0√(

ρ2 + z20 −2ρz0

)−∫

π

02ρ

2 sinφ√(ρ2 + z2

0 −2ρz0 cosφ) dφ

 . (27.2)

There are some cases to consider here.First suppose z0 < a so the point is on the inside of the hollow sphere and it is always

the case that ρ > z0. Then in this case, the two first terms reduce to

2ρ (ρ + z0)√(ρ + z0)

2+

2ρ (ρ − z0)√(ρ − z0)

2=

2ρ (ρ + z0)

(ρ + z0)+

2ρ (ρ − z0)

ρ − z0= 4ρ

and so the expression in 27.2 equals

12z0

4ρ −∫

π

02ρ

2 sinφ√(ρ2 + z2

0 −2ρz0 cosφ) dφ



=1

2z0

4ρ − 1z0

∫π

2ρz0 sinφ√(ρ2 + z2

0 −2ρz0 cosφ) dφ

=

12z0

(4ρ − 2ρ

z0

2 + z20 −2ρz0 cosφ

)1/2 |π0)

27.3. CYLINDRICAL AND SPHERICAL COORDINATES 545Therefore, the total force is15GadVv.[ Gi+v9+@—2)k) 7(2 +y2+(z-29)By the symmetry of the sphere, the ¢ and 7 components will cancel out when the integralis taken. This is because there is the same amount of stuff for negative x and y as there isfor positive x and y. Hence what remains is(z—Zo)Fe +y?+(z— 20)"|aGkHdV3/2as claimed. Now for the interesting part, the integral is evaluated. In spherical coordinatesthis integral is.2a pb pt _ 2a[ If (pcos ~ 20) P sme dg dp dd. (27.1)0 Ya JO (p? +25 —2pzocos¢)Rewrite the inside integral and use integration by parts to obtain this inside integral equals1 7 2 ia [ (0?c0s@ — pz») — Caen) ag =<0 JO (p? +23 —2pzocos@)—_92 — 2If, pep P= Pz220 | /(p? +3 +2020) (0? + -220)singu- [ 2p? do |. (27.2)0 V (pThere are some cases to consider here.First suppose zo < a so the point is on the inside of the hollow sphere and it is alwaysthe case that p > zo. Then in this case, the two first terms reduce to242) —2pzcos@)2p(p+z0) , 2p(P =z) _ 2p (P+) | 2p (P 2) ~ 4pVe +29)" V(e-20)° (p +20) Pp — 20and so the expression in 27.2 equals1 singu5 (40 - [26° do2<0 0 V(e? +24 — 2pzocos @)11 4p—— | 2Pzo sing do2z0 Z00 V(e? + 25 — 2pzocos @)1 2 1/2x (40-22 (p+ 2pznc0s9) / 8)