$\newcommand{\psym}{\operatorname{P}_{\ge 0}}$ $\newcommand{\Sig }{\Sigma}$
Let $\psym$ denote the subset of symmetric positive semi-definite matrices.
Let $S:\psym \setminus \{0\} \to \psym \setminus \{0\}$,
where $S(A)=\sqrt{A}$ is the unique positive semi-definite square root of $A$.
$\psym \setminus \{0\}$ is a manifold with boundary. I am trying to prove $S$ is not differentiable at every point in $\{A \in \psym | \, \, \det(A)=0 \}$ (i.e, on the boundary).
Am I correct about this claim? and its proof?
Here is my attempt:
Assume it was differentiable at such an $A$. Since $S^{-1}(A)=A^2$ is differentiable everywhere, we would get:
$$ Id=d(S^{-1} \circ S)_A = dS^{-1}_\sqrt{A} \circ dS_A \Rightarrow dS^{-1}_\sqrt{A} \text{ is invertible}$$
But this is false since $dS^{-1}_A(X)=AX+XA$ is non-invertible. Let's see why.
First, note that $dS^{-1}_A:\operatorname{sym}_n \to \operatorname{sym}_n$ (where $\operatorname{sym}_n$ is the space of symmetric matrices).
We want to show there is a symmetric, non-zero $X$ such that $AX+XA=0$. Since $A$ is symmetric we can orthogonally diagonalize it: $A=V \Sig V^T, V \in O_n$
Then $AX+XA=V \Sig V^T X+XV \Sig V^T=0 \iff \Sig (V^TXV) + (V^TXV) \Sig =0$
Since $X$ is non-zero and symmetric $\iff$ $V^TXV$ is non-zero and symmetric,
it is enough to show this for non-zero diagonal matrices* $\Sig$ such that $\det(\Sig)=0$.
In this case, the equation becomes $X_{ij}(\sigma_i+\sigma_j)=0$. Assume without loss of generality $\sigma_1 = 0$ (since $\det(\Sig)=0$), and choose $X_{11}=1$ and all the other $X_{ij}$ to be zero.
Is this proof true? Is there an easier argument?
*There are other, perhaps easier ways to see it is enough to consider the diagonal case only. (For example, using the fact that taking squares commutes with conjugation, and orthogonal conjugation is a self-diffeomorphism)