MathCastle
Linear AlgebraMediumSymmetric Matrices & Quadratic Forms

Symmetric Matrices & Quadratic Forms · Medium problem

For the quadratic form q(x,y,z)=x2+2xy+2y2+2yz−z2q(x, y, z) = x^2 + 2xy + 2y^2 + 2yz - z^2, let pp be the number of positive eigenvalues and nn the number of negative eigenvalues of its symmetric matrix. Find p−np - n.