Problem

Source: Kosovo Mathematical Olympiad 2022, Grade 11, Problem 2

Tags: function, functional equation



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