4. (14%) Evaluate the following integrals.
(b) $\int_{-\pi}^{\pi} (x^3 \sqrt{x^2+1} + |\cos x|) \, dx$.