Problem

Source: 2019 Pan-African Shortlist - A3

Tags: algebra, functional equation, function



Find all functions $f: \mathbb{R} \to \mathbb{R}$ such that $$ f\left(x^2\right) - yf(y) = f(x + y) (f(x) - y) $$for all real numbers $x$ and $y$.