I was studying undamped oscillator with harmonic driving force at the steady-state condition. It can be expressed in the form of differential equation as:$$m\dfrac{d^2 x}{dt^2}+kx=F_o\cos(\omega t).$$ Since its degree is two, the solution of this equation must have two arbitrary constants.
Now, in his book, Vibrations & waves, A.P.French deduces that $x = C\cos(\omega t)$ is the solution of the above equation as he describes as:
To obtain the steady-state solution of this equation, we set $$x = C\cos(\omega t).$$ We are assuming ,in other words, that the motion is harmonic, of the same frequency & phase as the driving force & that the natural oscillations of the system are not present. It must be kept in mind that the assumption of the solution is tentative & we must be prepared to reject it if we fail to find a value of the as-yet-undetermined constant $C$ such that The differential equation is satisfied for arbitrary values of $\omega$ & $t$. Differentiating the solution twice w.r.t., we get $$\dfrac{d^2 x}{dt^2} = -{\omega}^2 C\cos(\omega t).$$ Substituting in the differential, we thus have, $$-m{\omega}^2 C\cos(\omega t) + kC\cos(\omega t) = F_0 \cos(\omega t) \qquad \& \qquad \therefore \qquad C = \dfrac{F_0/m}{{\omega_0}^2-{\omega}^2}.$$ This satisfactorily defines $C$ in such a way that our differential equation is always satisfied. Thus, we can take it that the forced motion is indeed described by our assumed solution with $C$ depending on $\omega$ as defined above.
Here, the solution contains constant $C$ which can be readily specified by the values of $m,\omega_0,F_o,\omega$. Thus this equation contains no arbitrary constant. Then, how can $x = C\cos(\omega t)$ be the solution of the differential equation if it doesn't contain two arbitrary constants?