I wanted to solve the differential equation : $$\frac{d^2y}{dx^2} = \cos y$$
I know how to solve it if it was a first derivative ($y'=\cos y $), But I have no intuition on this one.
Either an explicit or an implicit relation is good for me, but I was more curious about the process than the answer, as I am generally stuck at second derivatives in differential equations.
$$\frac{d^2y}{dx^2}=\cos(y)$$ $$2\frac{d^2y}{dx^2}\frac{dy}{dx}=2\cos(y)\frac{dy}{dx}$$ $$\left(\frac{dy}{dx}\right)^2=2\sin(y)+c_1$$ $$\frac{dy}{dx}=\pm\sqrt{2\sin(y)+c_1}$$ $$x=\pm\int \frac{dy}{\sqrt{2\sin(y)+c_1}}+c_2$$ This integral cannot be expressed with a finite number of elementary functions. A closed form involves a special function, the elliptic integral of first kind : $$x=\pm\frac{2}{c_1+2}F\left(\frac{\pi-2y}{4}\:\Bigg|\:\frac{4}{c_1+2} \right)+c_2$$ http://mathworld.wolfram.com/EllipticIntegraloftheFirstKind.html
The inverse function is the Jacobi amplitude function : $$y(x)=\frac{\pi}{2}\pm 2\:\text{am}\left(\frac12\sqrt{c_1+2}(x-c_2)\:\Bigg|\:\frac{4}{c_1+2} \right)$$ http://mathworld.wolfram.com/JacobiAmplitude.html
Do not expect simpler formula with elementary functions, except for particular values of the arbitrary parameter $c_1$. This depends on the boundary conditions (Not specified in the wording of the question).
If you are not familiar with the use of the so called "special functions" in calculus, see https://en.wikipedia.org/wiki/Special_functions , or this paper for general public : https://fr.scribd.com/doc/14623310/Safari-on-the-country-of-the-Special-Functions-Safari-au-pays-des-fonctions-speciales