I caught the mistake where the limits of integration for theta are 0 to pi, not 2pi. But that doesn't eliminate the integer value of cosine, giving zero.
This may be a little above my level, which is why I am so frustrated. I think the book just wanted me to "take their word for it." I...