I want to know how to check if a matrix M is positive definite ,assume that M is 3x3 real numbers matrix
I think one way is to put the matrix in a quadratic form $X^TMX$ , where X is a vector $X^T=[x_1 x_2 x_3]$ , my question is if I found that $X^TMX = ax_1^2 + bx_1*x_2+ ........$ can I say that the matrix M is not positive definite because the term $bx_1*x_2$ can be negative or I have to try to put the value of $X^TMX$ in the form of sum of squares e.g.,$()^2+()^2+.....$ and then decide?
and what is the relation between the positive definiteness of a matrix and its determinant?