I want to check my thinking here. We're asked to determine the definiteness of the matrix
$ \begin{pmatrix} 3 & -1 & 1\\\ -1 & 1 & 2\\ 1 & 2 & 9 \end{pmatrix} $
We can write down the quadratic form as:
$3x_1^2 - 2 x_1 x_2 + x_2^2 + 4 x_2 x_3 + 6x_3^2 + 2 x_1 x_3 $
So by completing the square we arrive at
$(x_1 - x_2)^2 + (x_2 + 2x_3)^2 + (x_1 + x_3)^2 + x_1^2 - x_2^2 + x_3^2 $
But now it seems quite difficult to determine the definiteness, how would this usually be done?
There is a quick way to check positive definiteness called Sylvester's criterion which states that a matrix is positive definite if and only if the upper-left hand matrices have positive determinant, i.e.
Applying it to your matrix:
$\begin{vmatrix} 3 \end{vmatrix} >0; \begin{vmatrix} 3 & -1 \\ -1 & 1\end{vmatrix} = 3 -1 = 2>0; \begin{vmatrix} 3 & -1 & 1 \\ -1 & 1 & 2 \\ 1 & 2 & 9 \end{vmatrix} = 15-11-3 = 1 > 0$
Therefore your matrix is positive definite.