Step 1: Simplify the integrand.
We begin by recognizing the symmetry in the integral. By simplifying the expression using trigonometric identities, we can find that the integral evaluates to \( \frac{\pi}{4} \).
Step 2: Conclusion.
Thus, the value of the integral is \( \frac{\pi}{4} \), corresponding to option (B).