Find all functions $f:[0, \infty) \to [0,\infty)$, such that for any positive integer $n$ and and for any non-negative real numbers $x_1,x_2,\dotsc,x_n$ \[f(x_1^2+\dotsc+x_n^2)=f(x_1)^2+\dots+f(x_n)^2.\]
Source: Baltic Way 2018, Problem 4
Tags: algebra, functional equation
Find all functions $f:[0, \infty) \to [0,\infty)$, such that for any positive integer $n$ and and for any non-negative real numbers $x_1,x_2,\dotsc,x_n$ \[f(x_1^2+\dotsc+x_n^2)=f(x_1)^2+\dots+f(x_n)^2.\]