The question is inspired by this answer.
Find all continuous and differentiable functions $\mathbb{R} \to \mathbb{R}$ such that $f(c+x)+f(c-x)=k$ for some constants $c,k$ in some interval $x \in (a,b)$.
For the case $c=0$ we have the following solution:
$$f(x)=\frac{k}{1+e^{g(x)}}$$
Where $g(x)$ is an odd function $g(-x)=-g(x)$. And $x \in (-\infty,\infty)$.
What is the general solution for this problem? Or at least any other solution?
Edit
@Kelenner's comment provided the general solution, but it [the solution] looks very boring. To make it look a little more interesting, there is a generalization of the above for $c=0$:
$$f(x)=\frac{k}{1+p(x)}$$
Where $p(x)$ is such that $p(x)p(-x)=1$. For example, it could be:
$$p(x)=\left( \frac{1-q(x)}{1+q(x)} \right)^n e^{g(x)}$$
With $q(x),g(x)$ - some odd functions, $n$ - some real number.
$$f(x)=k\frac{(1+q(x))^n}{(1+q(x))^n+(1-q(x))^ne^{g(x)}}$$