Concept:
A stationary wave is formed by superposition of two waves of equal amplitude and frequency travelling in opposite directions.
Given wave:
\[
y_1=a\cos(kx-\omega t).
\]
The second wave must be of the form
\[
y_2=A\cos(kx+\omega t).
\]
Step 1: Use the node condition at \(x=0\).
For option (D),
\[
y_2=-a\cos(kx+\omega t).
\]
Thus
\[
y=y_1+y_2
\]
\[
=a\cos(kx-\omega t)-a\cos(kx+\omega t).
\]
Using
\[
\cos A-\cos B
=
-2\sin\frac{A+B}{2}
\sin\frac{A-B}{2},
\]
\[
y
=
2a\sin kx \sin\omega t.
\]
Step 2: Check the displacement at \(x=0\).
\[
y(0,t)
=
2a\sin0\sin\omega t
=
0.
\]
Hence \(x=0\) is always a node.
\[\begin{aligned}
\boxed{y=-a\cos(kx+\omega t)}
\end{aligned}\]
Hence, option \(\mathbf{(D)}\) is correct.