Showing matrix $\left[\begin{smallmatrix} 4 & 1 & 1\\1 & 2 & -1 \\ 1 & -1 & 3 \end{smallmatrix}\right]$ is positive definite $$\begin{bmatrix}
    x_1 & x_2 & x_3
\end{bmatrix}\begin{bmatrix}
    4 & 1 & 1\\1 & 2 & -1 \\ 1 & -1 & 3
\end{bmatrix}\begin{bmatrix}
    x_1\\x_2\\x_3
\end{bmatrix} = \\4x_1^2 + x_1x_2 + x_3x_1 + x_2x_1 + 2x_2^2 -x_2x_3 + x_1x_3-x_2x_3+3x_3^2$$
which I cannot put in a form that is $>0$. So how can this matrix be positive definite? 
 A: Note that we can show that a matrix is positive definite by looking at its $n$ upper left determinants. Note that for the matrix 
$$\begin{bmatrix}
    4 & 1 & 1\\1 & 2 & -1 \\ 1 & -1 & 3
\end{bmatrix}$$
We have 
$$\begin{vmatrix}
4
\end{vmatrix} = 4$$
and
$$\begin{vmatrix}
4 & 1\\
1 & 2
\end{vmatrix} = 7$$
and lastly 
$$\begin{vmatrix}
4 & 1 & 1\\
1 & 2 & -1\\
1 & -1 & 3
\end{vmatrix} = 13$$
Since $4,7,13 > 0$ the matrix is positive definite.
A: For the given matrix, there is no need for much computation. Multiplying the second column by $3/2$ and the second row by $2/3$ gives a matrix with the same (real) eigenvalues. It is
$$\begin{bmatrix}
    4 & 3/2 & 1\\2/3 & 2 & -2/3 \\ 1 & -3/2 & 3
\end{bmatrix}.$$
The Gershgorin circle theorem shows that all eigenvalues are contained in the union of the three intervals $|x-4|<\frac32+1$, $|x-2|<\frac23+\frac23$ and $|x-3|<\frac32+1$. Hence all eigenvalues are positive. Since the given matrix is symmetric, this implies that it is positive definite.
For matrices that are not essentially "diagonally dominated", the method of Wolfy's answer using the main subdeterminants seems best to me. For larger matrices, these subdeterminants can be computed by Gaussian elimination without swapping of rows - if the matrix is positive definite.
