Define the following function $f:\mathbb{R}^n\rightarrow \mathbb{R}^n$ to be the projection function onto a convex and a closed set C
$f(x)=\arg\min_{y\in C} ||x-y||_2^2 $
Denote $f_i(x)$ $i=1,...,n$ the components of $f$.
Is it true to claim that the $f_i(x)$ $i=1,...,n$ are convex functions?
Thanks
No.
For example take n=1, C = [0,1].
Then f(x) = 0 if x<0; f(x) = x for x in [0,1] and f(x) = 1 for x>1. And this function is not convex.