Let $g: \mathbb R \to \mathbb R$ be continuous and $g(0)=0$, $\forall x \gt 0$, $g(x)g(-x) \gt 0$. Find all solutions $f: \mathbb R \to \mathbb R$ to the functional equation
$$g(f(x+y))=g(f(x)) +g(f(y)) \quad x,y \in \mathbb R$$
I concluded that $f(x)=0$ $\forall x$ is the only solution. My argument goes as the following:
$g(x)=0 \implies x=0$.
Substituting $y=0$ we get that $g(f(0))=0$. Next, substitute $y=-x$ to get
$g(f(0))=g(f(x))+g(f(-x))$, and so $g(f(x))=-g(f(-x))$ $\forall x \in \mathbb R$.
Then, suppose $\exists x \in \mathbb R$ such that $f(x) \neq 0$. Take $g(x)=x^2$ (it is continuous and satisfies the conditions) we get that $f(x)^2=-f(-x)^2$ which is a contradiction, since the left hand side is strictly positive, and the right hand side is non-positive.
Is this correct? Thank you very much!
Supposing $g o f = ax, a \neq 0$, then $0 = g o f(x+-x) = g o f(x) - g o f(-x)$. Hence $g(ax)= -g(-ax)$ but they are both positive (or both negative) thus must both be zero.
– fGDu94 Nov 23 '19 at 21:51