Step 1: Plan.
Write $\cos^2 x$ in terms of $\cos 2x$, integrate, and then test the four options by differentiating them.
Step 2: Reduce the power.
From $\cos 2x = 2\cos^2 x - 1$ we get $\cos^2 x = \dfrac{1 + \cos 2x}{2}$. So
\[ \int \cos^2 x\, dx = \int \frac{1}{2}\, dx + \int \frac{\cos 2x}{2}\, dx. \]
Step 3: Integrate.
The first integral is $\dfrac{x}{2}$. For the second, $\int \cos 2x\, dx = \dfrac{\sin 2x}{2}$, so it equals $\dfrac{\sin 2x}{4}$. Hence
\[ \int \cos^2 x\, dx = \frac{x}{2} + \frac{\sin 2x}{4} + c. \]
Step 4: Compare with the options.
Option (i) is exactly $\frac{1}{4}\sin 2x + \frac{x}{2} + c$, so it matches.
Options (ii) and (iv) carry a negative sine term, so their derivatives start with $-\cos 2x$ or $-\frac{1}{2}\cos 2x$, which cannot equal $\frac{1 + \cos 2x}{2}$.
Option (iii) equals $\cos 2x + c$, whose derivative is $-2\sin 2x$, not $\cos^2 x$.
Step 5: Verify option (i) by differentiating.
$\dfrac{d}{dx}\left(\dfrac{x}{2} + \dfrac{\sin 2x}{4}\right) = \dfrac{1}{2} + \dfrac{2\cos 2x}{4} = \dfrac{1 + \cos 2x}{2} = \cos^2 x$. The derivative returns the integrand, so the antiderivative is right. A quick numeric test agrees: at $x = 0$ the integrand is $1$, and the derivative of option (i) is $\frac{1}{2} + \frac{1}{2} = 1$, while options (ii) and (iv) give $-\frac{3}{4}$ and $-\frac{1}{4}$.
Final Answer:
Option (i) is correct.
\[ \boxed{\frac{x}{2} + \frac{1}{4}\sin 2x + c} \]