Let ${\bf A}$ be a symmetric matrix, and I would like to find $\sqrt{\bf A}$ of a $3\times 3$ matrix. I am interested in finding the $\sqrt{\rm A}$ which is equivalent to the "sqrtm" built-in function in python (which is based on the Schur method: LINK).
I found this formulation, $$ \sqrt{\bf A} = \frac{{\bf A} + \sqrt{\operatorname{det}{\bf A}}\ {\tt I}} {\sqrt{\,{\operatorname{tr}\left(\bf A\right) + 2 \sqrt{\,{\operatorname{det}\left(\bf A\right)}\,}}}} $$ in one of the previous posts LINK. This formulation gives the exact results as the sqrtm in python. However, it is valid for ONLY a $2\times2$ matrix.
My question: is there a similar formulation that can be valid for a $3\times3$ matrix?
Many thanks in advance!
I'm not sure about a formulation for all $3\times 3$ matrices, but we can pretty easily find the square root of diagonalizable matrices. Suppose $$A = \begin{bmatrix} \\ v_1 & v_2 & v_3 \\ \\\end{bmatrix} \begin{bmatrix} \lambda_1 & 0 & 0\\ 0 & \lambda_2 & 0\\ 0 & 0 & \lambda_3 \end{bmatrix} \begin{bmatrix} \\ v_1 & v_2 & v_3 \\ \\\end{bmatrix}^{-1}$$ For eigenvalues $\lambda_i$ and eigenvectors $v_i$. Then $$\sqrt{A}= \begin{bmatrix} \\ v_1 & v_2 & v_3 \\ \\\end{bmatrix} \begin{bmatrix} \sqrt{\lambda_1} & 0 & 0\\ 0 & \sqrt{\lambda_2} & 0\\ 0 & 0 & \sqrt{\lambda_3} \end{bmatrix} \begin{bmatrix} \\ v_1 & v_2 & v_3 \\ \\\end{bmatrix}^{-1}$$ since $$\sqrt{A}^2 = \begin{bmatrix} \\ v_1 & v_2 & v_3 \\ \\\end{bmatrix} \begin{bmatrix} \sqrt{\lambda_1} & 0 & 0\\ 0 & \sqrt{\lambda_2} & 0\\ 0 & 0 & \sqrt{\lambda_3} \end{bmatrix} \begin{bmatrix} \sqrt{\lambda_1} & 0 & 0\\ 0 & \sqrt{\lambda_2} & 0\\ 0 & 0 & \sqrt{\lambda_3} \end{bmatrix} \begin{bmatrix} \\ v_1 & v_2 & v_3 \\ \\\end{bmatrix}^{-1} = A.$$