Problem

Source: Baltic Way 2022, Problem 5

Tags: algebra, Baltic Way, functional equation



Let $\mathbb{R}$ be the set of real numbers. Determine all functions $f: \mathbb{R} \rightarrow \mathbb{R}$ such that $f(0)+1=f(1)$ and for any real numbers $x$ and $y$, $$ f(xy-x)+f(x+f(y))=yf(x)+3 $$