My aim is to get a "cosine looking" curve rotated 45° counterclockwise.
When I graph : g(x)= x + cos(x) , I get a curve that has lost the nice and regular wavering of the ordinary f(x)= cos(x) curve.
Adding a coefficient does not work, but rather aggravates the change of form.
Is there a possible equation that would produce the curve I am aiming at?
Thanks for your help.


Unfortunately, you can't with an explicit equation $y=f(x)$.
You need to resort to a parametric form such as
$$\begin{cases}x=t+\cos t,\\y=t-\cos t\end{cases},$$ obtained by rotation.
It is not possible to invert $x=t+\cos t$ analytically.
It is also possible to approximate this effect by assembling replicas and symmetries of the graph of a function like
$$y=\sqrt[n]{1-x^n}$$ computed in the interval $[0,1]$.