Let $f:\mathbb{R}^n\to\mathbb{R}$ be twice continuously differentiable, i.e. $f\in\mathcal{C}^2\left(\mathbb{R}^n\right)$. Define $\lambda_f:\mathbb{R}^n\to\mathbb{R}$ as the function which associates $\vec x$ with the greatest eigenvalue of the Hessian matrix of $f$ in $\vec x$. Then what can we say about the regularity of $\lambda_f$? Is it continuous/differentiable?
The question came to my mind at todays analysis exam. I have absolutely no idea how one may argue; the definition of $\lambda_f$ doesn't seem to be easily useable.
Edit:
Or even more generally: is the function $\Lambda_f:\mathbb{R}^n\to\mathbb{R}^n$ which assignes to $\vec x$ the ordered $n$-tuple (with multiplicities) of the Hessian of $f$ at $\vec x$ (i.e. $\Lambda_f\left(\vec x\right)=\left(\lambda_1,...,\lambda_n\right)$ where $\lambda_1≥...≥\lambda_n$ are the eigenvalues of $H_f\left(\vec x\right)$) continuous/differntiable? If so, can we calculate the Jacobian matrix?
Both $\lambda_f$ and $\Lambda_f$ are continuous functions, but not necessarily differentiable.
First, a very silly example: $f(x)=x^2|x|$ is twice continuously differentiable ($f'(x)=2x|x|$ and $f''(x)=6|x|$). But the Hessian of $f$ is $H_f(x)=[6|x|]$. So $\lambda_f(x)=\Lambda_f(x)=6|x|$ (continuous but not differentiable).
[For a single variable we have the rather trivial observation that you have continuity exactly when the second derivative is continuous and differentiabilty exactly when the function has a third derivative.]
So how about a less trivial example? Consider $f(x,y)=\dfrac{1}{6}x^3-\dfrac{1}{2}xy^2$.
So $f_x(x,y)=\dfrac{1}{2}x^2-\dfrac{1}{2}y^2$, $f_y(x,y)=-xy$ and thus $f_{xx}(x,y)=x$, $f_{xy}(x,y)=f_{yx}(x,y)=-y$, and $f_{yy}(x,y)=-x$. This means that $$H_f(x,y) = \begin{bmatrix} x & -y \\ -y & -x \end{bmatrix}$$
To compute the eigenvalues: $\det(\lambda I-H_f)=(\lambda-x)(\lambda+x)-y^2=\lambda^2-(x^2+y^2)=0$ so the eigenvalues are $\pm\sqrt{x^2+y^2}$.
This means that $\Lambda_f(x,y)=(\sqrt{x^2+y^2},-\sqrt{x^2+y^2})$ and $\lambda_f(x,y)=\sqrt{x^2+y^2}$.
And we're done...these are continuous, but not differentiable functions (they've got serious problems at the origin).
Given that we found a counterexample when $f(x,y)$ is a polynomial, I am not hopeful that we could find enough hypotheses to force differentiablity for a large class of functions.
But on the bright side, these functions are continuous. There is a paper by Alexander Shapiro ("On differentiability of symmetric matrix valued functions") which I believe has a proof of this result (Hessian matrices are symmetric so they fall out as a special case of his discussion).