Show that a map in the vector space of positive-definite symmetric $n \times n$ matrices
$$f:S_n^+(\mathbb{R}) \rightarrow S_n^+(\mathbb{R})$$ $$f(s) = s^2$$ is a smooth diffeomorphism.
My thought is that if I can show that the derivative $f'(a)(b)$ is invertible for all $s \in S_n^+(\mathbb{R})$, then I will have shown that there is a positive definite square root that varies smoothly with $s$.
Since $s$ is a symmetric positive definite matrix, we know that it has $n$ eigenvectors with positive eigenvalues. Further, we know that $$f'(a)(b) = ab + ba$$
$$ ab + ba = 0 $$ $$ abb^T + bab^T = 0 $$
Suppose that $b$ has non-zero entries. We know that $a, bb^T$ are both positive definite matrices, and we know that diagonal entries of $bab^T$ are positive, since they are equal to $b_iab_i^T$, which is positive because $a$ is positive definite. How do I show that the product $abb^T$ has non-negative entries on the diagonal? I want to show that this results in a contradiction.
The last bit, that needs to be proven is: Let $A$ be symmetric and positive definite. Let $B$ be a matrix such that $AB + BA = 0$. Then it follows that $B=0$.
Since $A$ is symmetric and positive definite, there exists a matrix $Q$ with $QAQ^{-1} = D = {\rm diag} (d_1,\dotsc,d_n)$ with $d_i>0$ for all $i$. Putting $C = (c_{i,j})_{i,j}:= QBQ^{-1}$, we have \begin{align*} 0 &= QAQ^{-1} QBQ^{-1} + QBQ^{-1} QAQ^{-1} = DC + CD \end{align*} or equivalently, $DCD^{-1} = -C$. But now we have $-c_{i,j} = d_id_j^{-1} c_{ij}$ and hence $c_{i,j}=0$ because of $d_id_j^{-1}>0$. This shows $C=0$ and therefore $B=0$.