I would like to understand the rationale behind the solutions I found for the problem below.
Show that every function $f: \mathbb{R}^* \rightarrow \mathbb{R}$, satisfying the condition $f(xy)=f(x)+f(y)$, is even.
The solutions I've seen go in the following direction:
$\forall x \in \text{D}(f)$, $f([(-x)(-x)]) = f(-x) + f(-x) \Rightarrow 2f(-x) = f(x^2) = f(x*x) = f(x) + f(x)$
$2f(-x) = 2f(x) \Rightarrow f(-x) = f(x)$
I understand that the condition for the function to be even is $f(-x) = f(x)$. But I didn't understand why I can assume that the values of x and y are equal to $−x$ in the beggining of the sulotion.
The condition $$f(xy)=f(x)+f(y)$$ is satisfied for all $x,y\in \mathbb{R}^*$.
In particular, if we fix $x\in\mathbb{R}^*$, we also have $-x\in\mathbb{R}^*$, and we may take $y=-x$ in the condition, from where we deduce $f$ must be even.