Respuesta :
Provided that y ≠ 0, both solutions
[tex]y = e^{C-\cos(x)}[/tex]
and
[tex]y = Ce^{-\cos(x)}[/tex]
are correct. The other solution you provided,
[tex]y = C - e^{\cos(x)}[/tex]
is not.
The only difference between the "valid" solutions lies in the particular value of the arbitrary constant C.
Suppose y(0) = Y ≠ 0 is given as an initial condition. Then in the first solution,
[tex]Y = e^{C - \cos(0)} \implies \ln|Y| = C - 1 \implies C = \ln|Y| + 1[/tex]
In the second solution,
[tex]Y = C e^{-\cos(0)} \implies Y = Ce^{-1} \implies C = eY[/tex]
But both solutions are the same, since
[tex]y = e^{\ln|Y| + 1 - \cos(x)} = e^{\ln|Y|} e^1 e^{-\cos(x)} = eY e^{-\cos(x)}[/tex]