I am trying to prove the following matrix is positive definite:
Let $A$ be a $n\times n$ real positive definite matrix, so it holds that $A = UDU^T$ where
$$D=diag(d_{11},d_{22},\ldots,d_{nn}) > 0$$
For any $n\times1$ vector $w$, let $q = U^Tw$, $q$ is also $n\times1$ vector, so define the matrix
$$B = Aww^TA + (w^TAw)A - 2UD^*U^T$$ where $D^*$ is a diagnoal matrix and $\{D^*\}_{ii} = (d_{ii}q_{i})^2$. I want to prove $B$ is positive definite.
I used that $A = UDU^T$ to rewrite
$$B = UDqq^TDU - UD^*U^T + U(D\cdot(q^TDq))U^T - UD^*U^T$$
The eigenvector $U$ doesn't affect positive definite so I omitted it.
The first part $Dqq^TD-D^*$: provides non-diagonal elements.
The second part $D\cdot(q^TDq) - D^*$ provides diagonal elements.
Than I need to prove all eigenvalues of $Dqq^TD-D^* + D\cdot(q^TDq) - D^*$ are positive and I'm stuck at this point. Am I wrong?
Does $B$ really positive definite ? (I think it's because I tryed a lot of simulations with no conflicts)
Thank you so much for any suggestions.