Problem

Source: 2018HKTST2P3

Tags: algebra, functional equation, function



Find all functions $f:\mathbb R \rightarrow \mathbb R$ such that $$f(f(xy-x))+f(x+y)=yf(x)+f(y)$$ for all real numbers $x$ and $y$.