Find all functions $f:\mathbb{R}\rightarrow\mathbb{R}$ such that $$f(xf(y)+x)=xy+f(x), \; \forall x,y \in \mathbb{R}.$$
I read a solution in finding this function. It states that setting $x=1$ gives $$f\big(f(y)+1\big)=y+f(1)\,,$$ which means $f$ is bijective.
Why does $f\big(f(y)+1\big)=y+f(1)$ imply that $f$ is bijective?
Assume $f(y_1)=f(y_2)$. Then $y_1+f(1)=f(f(y_1)+1)=f(f(y_2)+1)=y_2+f(1)$ and hence $y_1=y_2$. Hence $f$ is injective.
Given $a\in \mathbb R$, let $y=a-f(1)$. Then $f(f(y)+1)=a$. Hence $f$ is surjective.