2.I.1E

Linear Algebra
Part IB, 2006

State Sylvester's law of inertia.

Find the rank and signature of the quadratic form qq on Rn\mathbf{R}^{n} given by

q(x1,,xn)=(i=1nxi)2i=1nxi2q\left(x_{1}, \ldots, x_{n}\right)=\left(\sum_{i=1}^{n} x_{i}\right)^{2}-\sum_{i=1}^{n} x_{i}^{2}