Step 1: Use a trigonometric identity.
We use the identity \( 1 + \cos x = 2 \cos^2 \left( \frac{x}{2} \right) \) to simplify the integral.
Step 2: Conclusion.
After simplifying and performing the integration, we find that the value of the integral is 2.
Final Answer:
\[
\boxed{2}
\]