Let (aij) be a real symmetric matrix with n rows and n columns.
a) Put sk=∑i=1naik. Then, for all ξ1,…,ξn∈R,
i,k∑aikξiξk=k∑skξk2−21i,k∑aik(ξi−ξk)2.
b) Let ζ1,…,ζn∈R∗. Put ∑iζiaik=tk. Then
i,k∑aikξiξk=k∑ζktkξk2−21i,k∑ζiζkaik(ζiξi−ζkξk)2.
(In a), replace ξi by ζiξi and aik by ζiζkaik.)
c) If there exist numbers ζ1,…,ζn>0 such that ∑iζiaik=0 (k=1,2,…,n), and if aij⩽0 for i=j, then the quadratic form ∑i,kaikξiξk is degenerate and positive. (Use b).)
d) Let ∑i,jqijξiξj be a quadratic form on Rn such that qij⩽0 for i=j. Assume that there is no partition I∪J of {1,2,…,n} such that qij=0 for i∈I,j∈J. Then the form is non-degenerate and positive if and only if there exist ζ1>0,…,ζn>0 such that ∑iζiqik=0 (k=1,…,n).