Alright, I'm new here, so hopefully I can get the problem and my work across well.
Textbook Problem: A vector field D = aR(cos2(Phi))/R3 exists in the region between two spherical shells defined by R=1 and R=2. Find Integral D.ds and Intregral Gradient.Ddv. Note the vector (aR = R).
** Integral D.ds **
dsR = RR2sin(Theta)d(Theta)d(Phi) **From textbook
D.dsR = (cos2(Phi)/R3) R2 sin(Theta) d(Theta) d(Phi)
Intregral (from 0 to 2pi) Integral (from 0 to pi) (1/R) cos2(Phi) sin(Theta) d(Theta) d(Phi) **Double integral for surface area
Intregral (from 0 to 2pi) (1/R) cos2(Phi) (-cos(Theta) | (from 0 to pi)) d(Phi)
** -cos(pi) = 1; -cos(0) = -1; 1 - (-1) = 2
Intregral (from 0 to 2pi) (2/R)cos2(Phi) d(Phi)
(2/R) ((sin(Phi)cos(Phi)/2 + Phi/2) | (from 0 to 2pi))
** sin(2pi) = 0; sin(0) = 0; 2pi/2 = pi; 0/2 = 0; pi - 0 = pi
2pi/R
** Evaluate for R = 1 to R = 2
pi - 2pi = -pi
** Intregral Gradient.Ddv **
Gradient = R partial/partial® + Theta (1/R) partial/partial(Theta) + Phi (1/(Rsin(Theta)) partial/partial(Theta)
Gradient.D = partial/partial® (cos2(Phi))/R3
Gradient.D = -3cos2(Phi)/R4
Integral (from 1 to 2) Integral (from 0 to 2pi) Integral (from 0 to pi) [-3cos2(Phi)/R4]R2sin(Theta)d(Theta)d(Phi)dR
Integral (from 1 to 2) Integral (from 0 to 2pi) Integral (from 0 to pi) -3/R2 cos2(Phi) sin(Theta) d(Theta) d(Phi) dR ** Triple integral for volume
Integral (from 1 to 2) Integral (from 0 to 2pi) -3/R2 cos2(Phi) (-cos(Theta) | (from 0 to pi)) d(Phi) dR
Integral (from 1 to 2) Integral (from 0 to 2pi) -6/R2 cos2(Phi) d(Phi) dR **Used evaluation of (-cos(Theta)) = 2 from above
Integral (from 1 to 2) -6/R2 ((sin(Phi)cos(Phi)/2 + Phi/2) | (from 0 to 2pi)) dR
Integral (from 1 to 2) -6pi/R2 dR **Used evaluation of ((sin(Phi)cos(Phi)/2 + Phi/2) | (from 0 to 2pi)) = pi from above
6pi/R | (from 1 to 2)
6pi/2 = 3pi; 6pi/1 = 6pi; 3pi - 6pi = -3pi
I can't find any error I have made in the above problem, but by divergence theorem, these two should be equal. Sorry for the lack of symbols. I couldn't figure out how to add them. Thanks in advance for any help.