Step 1: Use a trigonometric identity.
We use the identity \( \cos^2x = \frac{1 + \cos 2x}{2} \) to rewrite the integrand.
Step 2: Integrate the expression.
After integrating, the result is \( \frac{1}{12} \sin 3x + \frac{1}{4} \sin x + c \).
Step 3: Conclusion.
Thus, the correct answer is (B).