Therefore, the minimum value of ∑i=1nxi is 1, and the equality holds if and only if there exists i such that xi=1,xj=0(j=i). Next, let's find the maximum value. Let xk=kyi,1⩽k⩽n. The original expression becomes i=1∑ni2y12+21⩽∑k<j⩽n∑k2ykyl=1.
Let ak=yk+yk+1+⋯+yn. Then equation (1) becomes a12+3a22+⋯+(2k−1)ak2+⋯+(2n−1)an2=1.
If we let an+1=0, then from yk=ak−ak+1 we get ∑k=1nxk=∑k=1nk(ak−ak+1)=∑k=1nkak−∑k=1nkak+1=∑k=1nkak−∑k=1n(k−1)ak=∑k=1nak.
Therefore, by the Cauchy-Schwarz inequality and equation (2), we have (∑k=1nxk)2=(∑k=1nak)2⩽(∑k=1n2k−11)(∑k=1n(2k−1)ak2)=∑k=1n2k−11.∴∑k=1nxk⩽∑k=1n2k−11.
The equality holds if and only if 1a1=31a2=⋯=2k−11ak=⋯=2n−11an=T (a constant).
That is, ak=2k−1T(k=1,2,⋯,n). (Substituting into equation (2), we get T=∑i=1n2i−111)