Let $x\geqslant-1$ be a real number, and $x_n$ be a sequence defined recursively as:
$$x_{n+1}= \begin{cases} x_n\sqrt{\dfrac{1+x_n/x_{n-1}}2}, &\text{ if } x_n\neq 0 \\ 0, &\text{ if } x_n = 0 \end{cases}$$ for $n\in\Bbb N$ with starting values $(x_0,x_1) := (1, x)$. The sequence depends on $x$ and thus the limit (if it exists) defines a function $$\begin{align} f: [-1,\infty) &\to \Bbb R \\ x &\mapsto \lim_{n\to\infty} x_n \end{align}$$
The question is then to find a representation for $f(x)$.
I have no idea even where to start. It's easy to show that $f(1) = 1$ and $f(-1) = f(0) = 0$, but apart from these trivial cases I only have that $f(x) \geqslant 0$ if $x>0$, and that $f(x) \leqslant 0$ if $-1<x<0$ (under the assumption the limit exists).
It's easy to show that $x_n/x_{n-1}\to 1$ provided all $x_n\neq0$, but that doesn't lead anywhere.
There are two values given: $$f(1/2) = \frac{3\sqrt3}{4\pi}$$ and $$f(2) = \frac{2\sqrt3}{\ln(2+\sqrt3)}$$ but they only serve to verify the solution.
Edit: There is also a hint that $\cos 2x = 2\cos^2x-1$ which appears to be somehow related to the recursion, but I have no idea how to apply it.