Say we have some symmetric positive definite $n\times n$ matrix $M$ with $n$ distinct eigenvalues $\{\lambda_1,...,\lambda_n\}$. Is there a general formula for the maximum angle $\theta$ for which $M$ can rotate some vector, in terms of matrix invariants?

I worked out the $2\times 2$ case and the answer is 
$$\theta=\text{arccos}\Big(2\sqrt{\frac{\text{det}M}{(\text{tr}M)^2}}\Big)$$

In general, the answer is
$$\theta=\text{arccos}\Bigg(\min_{v\neq0}\frac{v^TMv}{||v||\cdot||Mv||}\Bigg)$$

However I would like to find an answer analogous to the $2\times 2$ case for the general $n\times n$ case. 

In trying to work out the $3\times 3$ case, the minimization procedure became extremely complicated. The best I could do was the case where two of the eigenvalues are equal $\lambda_1,\lambda_2,\lambda_2$. In that case, the angle turns out to be the same angle you would calculate for a $2\times 2$ matrix with the same eigenvalues $\lambda_1,\lambda_2$.

In fact, upon further analysis it should be true that for an $n\times n$ matrix with $k$ distinct eigenvalues, the formula for $\theta$ is equal to that which you would get from a $k\times k$ matrix with the corresponding eigenvalues.

**Edit:** Using the above fact, my guess for the $3\times 3$ case with $3$ distinct eigenvalues is
$$\theta=\text{arccos}\Bigg(2\sqrt{\frac{6\text{det}M}{(\text{tr}M)^3-\text{tr}M^3}}\Bigg)$$

And my guess for the $4\times4$ case is
$$\theta=\text{arccos}\Bigg(2\sqrt{\frac{48\text{det}M}{(\text{tr}M)^4-3(\text{tr}M^2)^2-4\text{tr}M\text{tr}M^3+6\text{tr}M^4}}\Bigg)$$

Technically there are $6$ possible solutions to the $3\times3$ case, however this is the only solution with rational coefficients on the traces. The $4\times4$ solution shown is also the only solution whose coefficients are rational. 

In general, for an $n\times n$ matrix there are at most $\prod_{k=3}^{n}2\times p(k)$ possible solutions based on the statement just above the edit. Where $p(k)$ is the partition function.