Consider a function $f(x,y) : \mathbb [0,1]^2 \to \mathbb R$, smooth in both variables (very strong assumption for the purposes). Define $f_{X}(x) = \max_{y \in [0,1]} f(x,y)$ and $f_Y{(y)} = \max_{x \in [0,1]} f(x,y)$ , which are well-defined. Oftentimes, in optimization, it is a useful statement to say that $f_X$ and $f_Y$ have unique maxima/minima. For this purpose, it is convenient to see if they are differentiable, and set the derivative to zero.
Under what sufficient conditions are $f_X$ and $f_Y$ differentiable (they are always continuous, as pointed out below)? Is the condition of "f smooth" acceptable?
How can I study the derivative of $f_X$ and $f_Y$, so that I can look at the maxima/minima of such functions?
EDIT : Since we have come up with a counterexample to non-differentiability, given by $(x,y) \to 1-xy$ on $[-1,1]^2$, I would like sufficient conditions under which this is true. One may use the language of sub-differentials etc. (from convex analysis) if required for this purpose.