I am trying to prove that $x^TAx \geq 0$ for a positive definite $n \times n$ matrix $\mathbf{A}$ and $x \in \mathbb{R}^n$.
I have already proven that for any eigenvalue $y$ of $\mathbf{A}$,$ y^TAy > 0$. I have also shown that that $\mathbf{A}$ is diagonalizable (using the fact that positive - definite matrices are symmetric) so we can find a basis of eigenvalues of $\mathbf{A}$ for the vector space $\mathbb{R}^n$, and therefore $x$ can be written as a linear combination of eigenvalues of $\mathbf{A}$, i.e: $$x = a_1y_1 + … + a_ny_n$$ where $y_i, 1 \leq I \leq n$ are eigenvalues and the $a_i$ are scalars. I am just not sure how to complete the final step of showing $x^TAx \geq 0$.
Thank you in advance!
Assuming you know $y_i^T A y_i \geq 0$ for all of $A$'s eigenvectors, which form an orthonormal basis of $\mathbb R^n$, then for $x$ a linear combination as you stated $$x^T A x=(\sum_{i=1}^n a_i y_i^T)A(\sum_{i=1}^n a_i y_i)=\sum_{i,j=1}^na_i a_j y_i^T A y_j = \sum_{i,j=1}^n a_i a_j \lambda_i y_i^T y_j = \sum_{i,j=1}^n a_i a_j \lambda_i\delta_{ij} = \sum_{i=1}^n a_i^2 \lambda_i \geq 0$$ So you were really close.