I have the polynomial $6h^2+8k^2+12l^2-12hk-12hl+16kl$ and I would like to factorise it to find the signature of the quadratic form. The correct answer is $6(h−k−l)^2 +2(k+l)^2 +4l^2$, which means that the signature is positive-definite.
My attempt got me to $6(h-k)^2+6(h-l)^2+8(k+l)^2-6h^2-6k^2-2l^2$, but I can't get further towards the correct answer.
Is there a systematic way to do this?