I'm trying to use Sylvester's Law of Inertia to find the the values of $k$ that make $$(k+4)x^2_1+2kx_1x_2+2x_2^2$$ a semi-definite positive form. Assuming $\textbf{Q}$ is the coefficients matrix of the quadratic form, I don't know any methodical procedure to find the $\textbf{S}$ that diagonalizes $\textbf{Q}$ through $\textbf{SQS}^\text{T}$.
I've read the whole Wikipedia article, I looked for it in different forums, YouTube and Google, and still haven't got a clue about how to procede, yet I have the feeling it must be quite simple.
If you don't want to give me a full explanation, you can of course link me to a a comprehensive explanation somewhere else. But, really, I searched for hours and nothing seems satisfying. Is it a matter of simple intuition?
Fortunately, you're in $\Bbb R^2$, so it's not hard.
Write this out as a quadratic in $x$, and compute the two eigenvalues using the quadratic formula. (You'll have to do this yourself. But I'll do it for $k = 0$, for instance. In that case, $p(x) = (4-x)(2-x) = x^2 - 6x + 8$, so the roots are $$ x_{1,2} = \frac{6 \pm \sqrt{36 - 32}}{2} = \frac{6 \pm 2}{2} = 4, 2 $$
Put the two eigenvectors into a matrix as its columns; that matrix is the $S$ that you want. (Or maybe you need to use the rows..do it and try both!)