I have the quadratic form
$$g = x_1^2+6x_2^2+8x_4^2-4x_1x_2-6x_1x_3-x_2x_3$$
whose corresponding matrix is
$$\begin{bmatrix} 1 & -2 & -3 & 0 \\ -2 & 3 & -\frac{1}{2} & 0 \\ -3 & -\frac{1}{2} & 0 & 0 \\ 0 & 0 & 0 & 4\end{bmatrix}$$
I have to either determine in two ways if the form is positive definite or determine in two ways for which values of $\lambda$ the form is positive definite.
The way to determine if the form is positive definite is to compute determinants for each matrices that are formed from the upper right corner. So the first would simply be $\det|1|=1$, the second would be
$$\det\begin{vmatrix}1 & -2 \\ -2 & 3\end{vmatrix}=-1$$
Then
$$\det\begin{vmatrix} 1 & -2 & -3 \\ -2 & 3 & -\frac{1}{2} \\ -3 & -\frac{1}{2} & 0 \end{vmatrix}=-3\begin{vmatrix} -2 & -3 \\ 3 & -\frac{1}{2} \end{vmatrix} + \frac{1}{2}\begin{vmatrix} 1 & -3 \\ -2 & -\frac{1}{2}\end{vmatrix}=-30-\frac{13}{4}= -\frac{133}{4}$$
So from there I already see that not all determinats that are formed from upper right corner is positive, should I still compute all the rest?
Second way is to make it in row echelon form:
$$A = \begin{pmatrix}1 & -2 & -3 & 0 \\ 0 & -1 & -\frac{13}{2} & 0 \\ 0 & 0 & -\frac{133}{4} & 0 \\ 0 & 0 & 0 & 4 \end{pmatrix}$$ So, again it's visible that not all pivots are positive therefore the matrix is not positive definite, am I right?
I just want to make sure, that I did everything correctly, and also to ask about the second option how to determine the definiteness of the matrix, it's said that it depends on $\lambda$, but where that $\lambda$ should be, is it the same to ask to compute the eigenvalues and then determine whether they are positive? I only know one way to do that, and that is to compute $\det(A-\lambda I)=0$, how to do it in a different way?