Show that no $n \times n$ real matrix $A$ can be of the form $A^2=\begin{bmatrix} -a_1 \\ &\ddots \\ & & -a_n\end{bmatrix}$, where each $a_i$ is positive, real and distinct.
Suppose the contrary.
I see that in the case $n$ is odd, we have $0 <\det A < \prod_{i=1}^n (-a_i)= - \prod_{i=1}^n (a_i) $, which is a contradiction.
Now suppose $n$ is even.
Let $\rho(x) =\prod_{i=0}^n (-a_i-x)= \prod_{i=0}^n (a_i+x)$. Then $\rho(A^2)=0$. So $A$ is a zero of $\rho(x^2)$. So the minimal polynomial divides $\rho(x^2)$.
From here I'm not sure how to proceed.
Any help will be appreciated.
Let's suppose that $$A^2=\begin{pmatrix} -a_1 \\ &\ddots \\ & & -a_n\end{pmatrix}$$
Then the characteristic polynomial of $A^2$ is $P(X)= (-1)^n\prod_{k=1}^n (X+a_k)$, so by Cayley-Hamilton, the polynomial $Q(X)= \prod_{k=1}^n (X^2 + a_k ) $ is a vanishing polynomial for $A$. But $$Q(X) = \prod_{k=1}^n (X + i \sqrt{a_k})(X- i \sqrt{a_k})$$
So the eigenvalues of $A$ are among the $\pm i \sqrt{a_k}$. But since $A$ has real entries, if $i\sqrt{a_k}$ is eigenvalue of $A$, then $-i\sqrt{a_k}$ should also be an eigenvalue of $A$. This contradicts the fact that, since the $a_k$'s are distinct, $-a_k$ has multiplicity $1$ as an eigenvalue of $A^2$.