Find all $f(x)$ satisfying $f(f(x)) = x^2 - 2$.
Presumably $f(x)$ is supposed to be a function from $\mathbb R$ to $\mathbb R$ with no further restrictions (we don't assume continuity, etc), but the text of the problem does not specify further.
Possibly Helpful Links: Information on similar problems can be found here and here.
Source: This question. It is about to be closed for containing too many problems in one question. I'm posting each problem separately.
The following observation comes from a comment by Sergei Ivanov in this MathOverflow post. It discusses the existence of $f : \mathbb{C} \to \mathbb{C}$ such that $f(f(z)) = g(z)$ where $g(z) = z^2 - 2$. I am aware that this is not precisely what the question asks for, but it may be helpful.
(Note: I have paraphrased the above text; the original comment can be found here.)
Now note that if $g(z) = z^2 - 2$, then $g(z) - z = z^2 - z - 2 = (z - 2)(z + 1)$, so the above observation applies to $z^2 - 2$.
Here are some details about the second paragraph.
Why are there four solutions to $g(g(z)) = z$?
$g(z)$ is a quadratic, so $g(g(z))$ is a quartic, as is $g(g(z)) - z$. By the fundamental theorem of algebra, there are four roots of the equation $g(g(z)) - z = 0$, though some may be repeated.
Why are the zeroes of $g(z) - z$ solutions to $g(g(z)) = z$?
As $g(z) - z$ has distinct zeroes, call them $w_1, w_2$. As $g(w_1) - w_1 = 0$, $g(w_1) = w_1$. Therefore $g(g(w_1)) = g(w_1) = w_1$. Likewise, $g(w_2) = w_2$ and $g(g(w_2)) = w_2$.
Why must the other two roots of $g(g(z)) = z$ be $a, b$ such that $g(a) = b$ and $g(b) = a$?
Let $a$ be a zero of $g(g(z)) = z$ other than $w_1$ and $w_2$. Now let $b = g(a)$. Then $a = g(g(a)) = g(b)$ and $g(g(b)) = g(a) = b$, so $b$ is the final zero.
Why must $f(a)$ be another solution to $g(g(z)) = z$?
Note that $f(f(a)) = g(a) = b$ and $f(f(b)) = g(b) = a$ so
$$g(g(f(a))) = g(f(f(f(a)))) = g(f(g(a))) = g(f(b)) = f(f(f(b))) = f(g(b)) = f(a).$$
To see that this is a new solution, note that $f(a) \neq w_1$ otherwise
$$b = g(a) = f(f(a)) = f(w_1),$$
then
$$f(b) = f(f(w_1)) = g(w_1) = w_1.$$ Therefore
\begin{align*} f(a) &= f(b)\\ f(f(a)) &= f(f(b))\\ g(a) &= g(b)\\ b &= a, \end{align*}
which is a contradiction. Likewise, $f(a) \neq w_2$.
If $f(a) = a$ then
$$f(a) = a = g(g(a)) = g(f(f(a))) = g(f(a)) = g(a) = b,$$ which is a contradiction.
Finally, if $f(a) = b$ then
$$b = g(a) = f(f(a)) = f(b)$$
which leads to a similar contradiction as in the $f(a) = a$ case.