Step 1: Understand the question:
We need \( \int\sin^2 x\,dx \). A square of a trigonometric function cannot be integrated directly, so first lower the power using a double-angle identity.
Step 2: Key formula:
\( \cos 2x = 1 - 2\sin^2 x \), which gives \( \sin^2 x = \frac{1-\cos 2x}{2} \).
Step 3: Integrate term by term:
\[ \int\sin^2 x\,dx = \frac{1}{2}\int(1-\cos 2x)\,dx = \frac{1}{2}\left[x - \frac{\sin 2x}{2}\right] + C = \frac{x}{2} - \frac{\sin 2x}{4} + C. \] This matches option (1).
Step 4: Check option (2):
\( \frac{x}{2} + \frac{\sin 2x}{4} \) is the integral of \( \cos^2 x \), not \( \sin^2 x \). So option (2) is wrong.
Step 5: Check option (3):
Differentiating \( \frac{x}{2} - \frac{\cos 2x}{4} \) gives \( \frac{1}{2} + \frac{\sin 2x}{2} \), which is not \( \sin^2 x \). So option (3) is wrong.
Step 6: Check option (4):
Differentiating \( \frac{x}{2} + \frac{\cos 2x}{4} \) gives \( \frac{1}{2} - \frac{\sin 2x}{2} \), which is not \( \sin^2 x \). So option (4) is wrong.
Final Answer:
Option (1) is correct. \[ \boxed{\int\sin^2 x\,dx = \frac{x}{2} - \frac{\sin 2x}{4} + C} \]