Reduce the following quadratic forms to the canonical form and determine the rank and the signature:
\(x_1^2 + 2\sum_{i=2}^{n} x_i^2 - 2\sum_{i=1}^{n-1} x_i x_{i+1}\),
\(\sum_{i=1}^{n} x_i^2 + \sum_{1 \leqslant i < j \leqslant n} x_i x_j\),
\(\sum_{1 \leqslant i < j \leqslant n} x_i x_j\).