First one, $\displaystyle \int x^4(x^5+2)^7dx$. Is that as straight forward as it seems? Expand that out $\displaystyle x^{39}+14x^{34}+84x^{29}+...$ and then integrate as normal? Or should I substitute, setting $\displaystyle u=x^5+2$ and $\displaystyle \frac{du}{5}=x^4dx$?

Second one, $\displaystyle \int \frac{\cos(\sqrt{\theta})}{\sqrt{\theta}\sin^2(\sq rt{\theta})} d\theta$. No idea where to start.