Section 15.8: Exercise 22:

f: 9 - r^2*sin(t)^2;

integrate(integrate(integrate(f*r^2*sin(t),r,0,3),s,0,2*%pi),t,0,%pi/2);

Exercise 24

f: exp(r);

integrate(integrate(integrate(f*r^2*sin(t),r,0,3),s,0,%pi/2),t,0,%pi/2);