Problem

Source: Macedonian Mathematical Olympiad 2024 P3

Tags: algebra, functional equation, function



Determine all functions $f:\mathbb{R} \rightarrow \mathbb{R}$ which satisfy the equation $$f(f(x+y))=f(x+y)+f(x)f(y)-xy,$$for any two real numbers $x$ and $y$.