I have the quadratic form
$$g=x_1^2+6x_2^2+8x_3^2-4x_1x_2-6x_1x_3-x_2x_3$$
I have problems completing the square. I tried to rewrite the expression as follows
$$g=x_1^2-4x_1x_2+6x_2^2-x_2x_3+8x_3^2$$
Hence,
$$((x_1-2{x_2})^2 -(2x_2)^2) + 6 \left( x_2-\frac{x_3}{12} \right)^2 - \left( \frac{x_3}{2} \right)^2 + 8x_3^2$$
Can I do it like this? On complete square calculator, it's said that you cannot complete the square for expression like this. Anyway, the reason I need to complete the square for this expression is because I need to determine whether the given quadratic form is positive definite. But I don't know how to proceed.
Construct the coefficient matrix
$$A = \begin{bmatrix} 1& -2& -3\\ -2& 6& -1/2 \\-3 &-1/2 & 8\end{bmatrix}$$
Find the determinants
$D_1 = |a_{11}| = 1 > 0$
$D_2 = \begin{vmatrix}1&-2 \\ -2&6\end{vmatrix} = 6 -4 =2 > 0$
$D_3 = \det(A) = -177/4 < 0$
For an nxn matrix if