I tried to prove that the only functions $f: \mathbb{N} \to \mathbb{N}$ satisfying
$$xf(y) + yf(x) = (x+y)f(x^2+y^2)$$
for all positive integers $(x, y)$ are constant functions.
I supposed that:
$$ \exists \; x \mbox{ such that } f(x) \neq f(1) \mbox{ and } \forall y \neq x, f(y) = f(1)$$
Then we have:
$$ xf(1) + yf(x) = (x+y)f(1) $$ $$ \implies yf(x) = yf(1) \implies f(x) = f(1)$$
I would like to know if this is correct, since I am not sure that the negation of my hypothesis implies that the function is constant.
Thank you!