Problem

Source: Mexico National Olympiad Mock Exam 2017 P5

Tags: algebra, functional equation, function



Let $k$ be a positive real number. Determine all functions $f:[-k, k]\rightarrow[0, k]$ satisfying the equation $$f(x)^2+f(y)^2-2xy=k^2+f(x+y)^2$$for any $x, y\in[-k, k]$ such that $x+y\in[-k, k]$. Proposed by Maximiliano Sánchez