Problem statement:
Let $|A|$ be defined as $|A| \equiv X |\Lambda|X^{-1}$, where $|\Lambda|$ holds the absolute values of the eigenvalues of $A$ along the diagonal and $X$ is a matrix whose columns hold the eigenvectors of $A$.
Does the following hold for any arbitrary vector $\mathbf{x}$?
$\mathbf{x}^T |A|\mathbf{x} \geq 0$
Solution attempt:
\begin{align} \mathbf{x}^T |A|\mathbf{x} &= \mathbf{x}^T X |\Lambda|X^{-1} \mathbf{x} \\[6pt] &= (X^T \mathbf{x})^T|\Lambda| (X^{-1} \mathbf{x})\end{align}
So does $\mathbf{x}^T |A|\mathbf{x} \geq 0$ hold if and only if $X^T=X^{-1}$?