Chapter 9 Exercises
Li–Zha–Wang, Linear Algebra (2nd ed.) §§9.1–9.4
How to use this file
- Textbook: 李炯生、查建国、王新茂, 线性代数, 2nd ed., USTC Press, 2010.
- Range: all section exercises in Chapter 9 (§§9.1–9.4).
- Pages: printed pp. 413–415, 434–436, 439–441, 447; PDF = printed + 12.
- Principle: stems follow the scan; solutions are independent. Numerical congruence forms were recomputed.
- Companion notes:
ch09-notes.qmd.
Numbering is §section.problem, matching the book.
Coordinates are row vectors, as in the book: a bilinear form has matrix \(A\) when \(f(\alpha,\beta)=xAy^{\mathrm{T}}\). A change of basis \((\eta)=(\xi)P\) replaces \(A\) by \(P^{\mathrm{T}}AP\). Hermitian forms are written \(H(\alpha)=xHx^{*}\).
§9.1 Bilinear functions
Printed pp. 413–415; PDF pp. 425–427.
Exercise §9.1.1
On the real row space \(\mathbf{R}^{2}\), decide which of the four functions of \(\alpha=(x_1,x_2)\), \(\beta=(y_1,y_2)\) are bilinear.
(1) \(f(\alpha,\beta)=1\). Not bilinear: \(f(0,\beta)=1\neq 0\).
(2) \(f(\alpha,\beta)=(x_1-y_1)^{2}+x_2 y_2\). The term \((x_1-y_1)^{2}\) is quadratic, not linear in either slot. Explicitly \(f(2e_1,0)=4\neq 2f(e_1,0)=2\). Not bilinear.
(3) \(f(\alpha,\beta)=(x_1+y_1)^{2}-(x_2-y_2)^{2}\). Again quadratic. For instance \(f(2e_1,0)=4\neq 2f(e_1,0)=2\). Not bilinear.
(4) \(f(\alpha,\beta)=x_1 y_2-x_2 y_1=\det\begin{pmatrix}x_1&x_2\\ y_1&y_2\end{pmatrix}\). This is the standard area form, linear in each row separately. Bilinear (and alternating).
Exercise §9.1.2
On \(\mathbf{R}^{2\times 3}\) let \(A=\begin{pmatrix}1&2\\3&4\end{pmatrix}\) and \(f(X,Y)=\operatorname{tr}(X^{\mathrm{T}}AY)\). Find the matrix of \(f\) in the basis \(\{E_{11},E_{12},E_{13},E_{21},E_{22},E_{23}\}\), and decide whether \(f\) is nondegenerate.
Expand: \(\operatorname{tr}(X^{\mathrm{T}}AY)=\sum_{i=1}^{2}\sum_{j=1}^{3}X_{ij}(AY)_{ij}=\sum_{i,j,k}X_{ij}A_{ik}Y_{kj}\). Hence \[ f(E_{ij},E_{kl})=A_{ik}\,\delta_{jl}. \] Ordering the basis by rows as indicated, this is the Kronecker product \(A\otimes I_{3}\): \[ \begin{pmatrix} 1&0&0&2&0&0\\ 0&1&0&0&2&0\\ 0&0&1&0&0&2\\ 3&0&0&4&0&0\\ 0&3&0&0&4&0\\ 0&0&3&0&0&4 \end{pmatrix}. \] In particular \(\operatorname{rank}f=\operatorname{rank}(A\otimes I_{3})=(\operatorname{rank}A)\cdot 3=6=\dim\mathbf{R}^{2\times 3}\), so \(f\) is nondegenerate.
Exercise §9.1.3
On \(\mathbf{C}^{n\times n}\) set \(f(X,Y)=n\operatorname{tr}(XY)-(\operatorname{tr}X)(\operatorname{tr}Y)\). Let \(V\) be the trace-zero subspace. Prove: (1) \(f\) is degenerate on \(\mathbf{C}^{n\times n}\); (2) \(f|_{V}\) is nondegenerate; (3) if \(A^{*}=-A\) then \(f(A,A)\le 0\).
(1) \(f(I,Y)=n\operatorname{tr}Y-(\operatorname{tr}I)(\operatorname{tr}Y)=n\operatorname{tr}Y-n\operatorname{tr}Y=0\) for every \(Y\). Thus \(I\) lies in the left radical, and \(f\) is degenerate.
(2) On \(V\) one has \(\operatorname{tr}X=\operatorname{tr}Y=0\), so \(f(X,Y)=n\operatorname{tr}(XY)\). Suppose \(X\in V\) satisfies \(\operatorname{tr}(XY)=0\) for all \(Y\in V\). For arbitrary \(Z\) the traceless part \(Y=Z-n^{-1}(\operatorname{tr}Z)I\) lies in \(V\), hence \(\operatorname{tr}(XZ)=0\) (using \(\operatorname{tr}X=0\)). Taking \(Z=E_{ji}\) yields \(X_{ij}=0\). Thus the left radical of \(f|_{V}\) is \(\{0\}\), and \(f|_{V}\) is nondegenerate. (If \(n=1\) then \(V=\{0\}\) and the zero form on the zero space is nondegenerate.)
(3) If \(A^{*}=-A\) then \(B:=iA\) is Hermitian. Write \(A=-iB\) and let \(\lambda_1,\ldots,\lambda_n\in\mathbf{R}\) be the eigenvalues of \(B\). Then \(\operatorname{tr}(A^{2})=-\operatorname{tr}(B^{2})=-\sum\lambda_j^{2}\) and \((\operatorname{tr}A)^{2}=-(\operatorname{tr}B)^{2}=-(\sum\lambda_j)^{2}\), so \[ f(A,A)=-n\sum_{j}\lambda_j^{2}+\Bigl(\sum_{j}\lambda_j\Bigr)^{2}\le 0 \] by Cauchy–Schwarz.
Exercise §9.1.4
For a bilinear form \(f\) and subspaces \(V_1,V_2\), prove \((V_1+V_2)^{\perp L}=V_1^{\perp L}\cap V_2^{\perp L}\) and the right-hand analogue. If \(f\) is nondegenerate, also \((V_1\cap V_2)^{\perp L}=V_1^{\perp L}+V_2^{\perp L}\) and the right-hand analogue.
\(\alpha\in(V_1+V_2)^{\perp L}\) if and only if \(f(\alpha,V_1+V_2)=0\), if and only if \(f(\alpha,V_1)=f(\alpha,V_2)=0\), if and only if \(\alpha\in V_1^{\perp L}\cap V_2^{\perp L}\). The identity for \(\perp R\) is the same with the arguments reversed.
Now assume \(f\) is nondegenerate, so \(\mathscr{A}:V\to V^{*}\), \(\mathscr{A}(\alpha)=f(\alpha,\cdot)\) is an isomorphism, and \(\mathscr{A}(W^{\perp L})=W^{0}\) (the annihilator in \(V^{*}\)). Then \[ \mathscr{A}\bigl((V_1\cap V_2)^{\perp L}\bigr)=(V_1\cap V_2)^{0}=V_1^{0}+V_2^{0}=\mathscr{A}(V_1^{\perp L})+\mathscr{A}(V_2^{\perp L})=\mathscr{A}(V_1^{\perp L}+V_2^{\perp L}). \] Injectivity of \(\mathscr{A}\) gives the stated equality. The right-hand identity uses the isomorphism \(\beta\mapsto f(\cdot,\beta)\).
Exercise §9.1.5
If the restriction of \(f\) to a subspace \(W\) is nondegenerate, prove \(V=W\oplus W^{\perp L}=W\oplus W^{\perp R}\).
\(W\cap W^{\perp L}\) is precisely the left radical of \(f|_{W}\), hence is \(\{0\}\). The map \(W\to V^{*}\), \(w\mapsto f(w,\cdot)\) is injective because its composition with restriction to \(W^{*}\) is an isomorphism. Thus this map has rank \(\dim W\), and \[ \dim W^{\perp L}=n-\dim W. \] Therefore \(V=W\oplus W^{\perp L}\). The same argument with the two arguments swapped gives \(V=W\oplus W^{\perp R}\).
Exercise §9.1.6
Let \(f\) be nondegenerate and \(h\) another bilinear form. Prove: (1) there is a unique linear \(\mathscr{A}_{h}\) with \(h(\alpha,\beta)=f(\mathscr{A}_{h}(\alpha),\beta)\); (2) \(h\) is nondegenerate if and only if \(\mathscr{A}_{h}\) is invertible; (3) there is a unique invertible \(\mathscr{B}\) with \(f(\beta,\alpha)=f(\mathscr{B}(\alpha),\beta)\).
(1) For each \(\alpha\) the functional \(\beta\mapsto h(\alpha,\beta)\) lies in \(V^{*}\). By §9.1, Theorem 4, there is a unique vector \(\mathscr{A}_{h}(\alpha)\) with \(h(\alpha,\beta)=f(\mathscr{A}_{h}(\alpha),\beta)\) for all \(\beta\). Uniqueness of that vector makes \(\mathscr{A}_{h}\) linear.
(2) \(\operatorname{Ker}\mathscr{A}_{h}\) is the left radical of \(h\). Thus \(h\) is nondegenerate if and only if \(\mathscr{A}_{h}\) is injective, if and only if it is invertible.
(3) Apply (1) to the opposite form \(h(\alpha,\beta)=f(\beta,\alpha)\). The resulting \(\mathscr{B}\) satisfies \(f(\beta,\alpha)=f(\mathscr{B}(\alpha),\beta)\). It is invertible by (2), because the opposite form has the same rank as \(f\).
Exercise §9.1.7
If \(f\) is nondegenerate and \(\mathscr{A}\) is linear, prove there is a unique linear \(\mathscr{A}^{*}\) with \(f(\mathscr{A}(\alpha),\beta)=f(\alpha,\mathscr{A}^{*}(\beta))\).
Fix \(\beta\). The map \(\alpha\mapsto f(\mathscr{A}(\alpha),\beta)\) is linear, so Theorem 5 supplies a unique vector \(\mathscr{A}^{*}(\beta)\) with \(f(\alpha,\mathscr{A}^{*}(\beta))=f(\mathscr{A}(\alpha),\beta)\) for all \(\alpha\). Uniqueness forces \(\mathscr{A}^{*}\) to be linear. (In a basis, if \(f\) has invertible matrix \(A\) and \(\mathscr{A}\) has matrix \(T\), the identity \(T^{\mathrm{T}}A=A S\) determines \(S=A^{-1}T^{\mathrm{T}}A\) uniquely.)
Exercise §9.1.8
Prove there are bases \(\{\alpha_i\}\) and \(\{\beta_j\}\) with \(\bigl(f(\alpha_i,\beta_j)\bigr)=\operatorname{diag}(I_{(r)},0)\), where \(r=\operatorname{rank}f\).
This is equivalence of matrices, not congruence. In any basis \(f\) has some matrix \(A\) of rank \(r\). There exist invertible \(U,V\) with \(U^{\mathrm{T}}AV=\operatorname{diag}(I_{(r)},0)\). If \((\alpha)=(\xi)U\) and \((\beta)=(\xi)V\), then \(\bigl(f(\alpha_i,\beta_j)\bigr)=U^{\mathrm{T}}AV\), as required.
Exercise §9.1.9
For fixed \(\beta,\gamma\) define \((\beta\otimes\gamma)(\alpha)=f(\alpha,\beta)\,\gamma\). Compute \(\operatorname{tr}(\beta\otimes\gamma)\).
In a basis, \((\beta\otimes\gamma)(\xi_j)=f(\xi_j,\beta)\gamma=\sum_{i}\gamma_i f(\xi_j,\beta)\,\xi_i\), so the matrix has entries \(A_{ij}=\gamma_i f(\xi_j,\beta)\). The trace is \[ \operatorname{tr}(\beta\otimes\gamma)=\sum_{i}\gamma_i f(\xi_i,\beta)=f(\gamma,\beta). \]
Exercise §9.1.10
Prove that \(f\) is a product of two linear functionals if and only if \(\operatorname{rank}f=1\).
If \(f(\alpha,\beta)=L_1(\alpha)L_2(\beta)\), the matrix of \(f\) is a product of a column by a row, hence has rank at most \(1\). Conversely, a rank-\(1\) matrix is \(uv^{\mathrm{T}}\), and \(x(uv^{\mathrm{T}})y^{\mathrm{T}}=(xu)(vy^{\mathrm{T}})\) is a product of two linear forms.
The zero form is the product \(0\cdot L\) and has rank \(0\). Thus, as printed, the condition \(\operatorname{rank}f=1\) characterises nontrivial products; the complete statement is that \(f\) is a product if and only if \(\operatorname{rank}f\le 1\).
§9.2 Symmetric bilinear functions and quadratic forms
Printed pp. 434–437; PDF pp. 446–449.
Exercise §9.2.1
Over \(\mathbf{Q}\), find an invertible \(P\) with \(P^{\mathrm{T}}SP\) diagonal, where \(S=\begin{pmatrix}-2&3&5\\3&1&-1\\5&-1&4\end{pmatrix}\).
The associated quadratic form is \(Q=-2x_1^{2}+x_2^{2}+4x_3^{2}+6x_1x_2+10x_1x_3-2x_2x_3\). Completing the square in \(x_1\), \[ Q=-2\Bigl(x_1+\frac32 x_2+\frac52 x_3\Bigr)^{2}+\frac{11}{2}x_2^{2}+13x_2x_3+\frac{33}{2}x_3^{2}. \] Then \[ \frac{11}{2}x_2^{2}+13x_2x_3+\frac{33}{2}x_3^{2}=\frac{11}{2}\Bigl(x_2+\frac{13}{11}x_3\Bigr)^{2}+\frac{97}{11}x_3^{2}. \] The unitriangular change with matrix \[ P_0=\begin{pmatrix}1&3/2&8/11\\0&1&-13/11\\0&0&1\end{pmatrix} \] satisfies \(P_0^{\mathrm{T}}SP_0=\operatorname{diag}(-2,11/2,97/11)\). Clearing denominators by right-multiplication with \(\operatorname{diag}(1,2,11)\) gives the integer matrix \[ P=\begin{pmatrix}1&3&8\\0&2&-13\\0&0&11\end{pmatrix},\qquad P^{\mathrm{T}}SP=\operatorname{diag}(-2,22,1067). \] (The determinant is \(22\neq 0\). Independently, \(\det S=-97\), and \(\det S\cdot(\det P)^{2}=\det D\) holds: \(-97\cdot 22^{2}=-2\cdot 22\cdot 1067\).)
Exercise §9.2.2
Find a rational invertible \(P\) with \(P^{\mathrm{T}}\operatorname{diag}(5,5)P=\operatorname{diag}(1,1)\).
The requirement is \(5P^{\mathrm{T}}P=I\), i.e. the columns of \(P\) are rational, orthogonal, and of squared length \(1/5\). Since \(1^{2}+2^{2}=5\), \[ P=\frac15\begin{pmatrix}1&-2\\2&1\end{pmatrix} \] works: the columns have squared length \((1+4)/25=1/5\) and inner product \(0\). Then \(P^{\mathrm{T}}P=\frac15 I\), so \(P^{\mathrm{T}}(5I)P=I\).
Exercise §9.2.3
Real congruence canonical forms of six symmetric matrices.
Over \(\mathbf{R}\) the canonical form is \(\operatorname{diag}(I_{(p)},-I_{(q)},0)\), with \(p,q\) the inertia indices.
(1) \(S=\begin{pmatrix}2&5&8\\5&3&1\\8&1&0\end{pmatrix}\). Completing the square (see §9.2.4(1) below) yields \(Q=2y_1^{2}-(19/2)y_2^{2}+6y_3^{2}\). Thus \(p=2\), \(q=1\), and \(S\) is congruent to \(\operatorname{diag}(1,1,-1)\). Leading minors \(2\), \(-19\), \(-114\) give one sign change in \((1,\Delta_1,\Delta_2,\Delta_3)\), confirming \(q=1\).
(2) The \(2n\times 2n\) block matrix \(\begin{pmatrix}0&I\\I&0\end{pmatrix}\) represents \(Q=2\sum_{i=1}^{n}u_iv_i\). Each pair \(2uv=(u+v)^{2}-(u-v)^{2}\) contributes one positive and one negative square, so the form is \(\operatorname{diag}(I_{(n)},-I_{(n)})\).
(3) The matrix is \(\bigl(\min(i,j)\bigr)_{1\le i,j\le 4}\). It is the Gram matrix of \((1,1,1,1)\), \((0,1,1,1)\), \((0,0,1,1)\), \((0,0,0,1)\), hence positive definite. Canonical form \(I_{4}\). (The same holds for the \(n\times n\) min-matrix.)
(4) The \((2n+1)\times(2n+1)\) matrix is the block matrix of (2) with an extra diagonal \(1\). Canonical form \(\operatorname{diag}(I_{(n+1)},-I_{(n)})\).
(5) The reversal matrix \(J\) (ones on the anti-diagonal). The form is \(Q=2\sum_{i=1}^{\lfloor n/2\rfloor}x_ix_{n+1-i}\) plus \(x_{(n+1)/2}^{2}\) when \(n\) is odd. Each pair \(2xy=(x+y)^{2}-(x-y)^{2}\) contributes inertia \((1,1)\). Thus \[ J\sim \begin{cases} \operatorname{diag}\bigl(I_{(m)},-I_{(m)}\bigr),&n=2m,\\ \operatorname{diag}\bigl(I_{(m+1)},-I_{(m)}\bigr),&n=2m+1. \end{cases} \]
(6) The Jacobi tridiagonal matrix with \(1\) on the diagonal and \(1/2\) on the off-diagonals has eigenvalues \(1+\cos\bigl(j\pi/(n+1)\bigr)>0\) for \(j=1,\ldots,n\). Positive definite; canonical form \(I_{n}\). Equivalently, Lagrange reduction produces the successive diagonal entries \((k+1)/(2k)>0\).
Exercise §9.2.4
Reduce six real quadratic forms to the standard form \(\sum\pm y_i^{2}\).
(1) \(Q=2x_1^{2}+3x_2^{2}+10x_1x_2+16x_1x_3+2x_2x_3\). Complete the square: \[ Q=2\Bigl(x_1+\frac52 x_2+4x_3\Bigr)^{2}-\frac{19}{2}x_2^{2}-38x_2x_3-32x_3^{2} =2y_1^{2}-\frac{19}{2}\bigl(x_2+2x_3\bigr)^{2}+6x_3^{2}. \] Hence \(Q\sim y_1^{2}+y_2^{2}-y_3^{2}\).
(2) \(Q=x_1^{2}+2x_2^{2}+2x_3^{2}+4x_4^{2}+x_1x_2+x_2x_4\). Then \[ Q=\Bigl(x_1+\frac12 x_2\Bigr)^{2}+\frac74 x_2^{2}+x_2x_4+2x_3^{2}+4x_4^{2} =\Bigl(x_1+\frac12 x_2\Bigr)^{2}+\frac74\Bigl(x_2+\frac27 x_4\Bigr)^{2}+2x_3^{2}+\frac{27}{7}x_4^{2}. \] All four coefficients are positive, so \(Q\sim y_1^{2}+y_2^{2}+y_3^{2}+y_4^{2}\).
(3) \(Q=\sum_{j=1}^{n-1}x_jx_{j+1}\). The symmetric matrix is the path tridiagonal with zeros on the diagonal and \(1/2\) off the diagonal. Its eigenvalues are \(\cos\bigl(j\pi/(n+1)\bigr)\) for \(j=1,\ldots,n\). Thus \[ p=q=\Bigl\lfloor\frac n2\Bigr\rfloor,\qquad \operatorname{rank}Q= \begin{cases} n,&n\text{ even},\\ n-1,&n\text{ odd}, \end{cases} \] and the standard form is \(\sum_{i=1}^{\lfloor n/2\rfloor}y_i^{2}-\sum_{i=1}^{\lfloor n/2\rfloor}y_{\lfloor n/2\rfloor+i}^{2}\) (with a trailing zero when \(n\) is odd).
(4) \(Q=\sum_{1\le i<j\le n}x_ix_j=\frac12\bigl((\sum x_i)^{2}-\sum x_i^{2}\bigr)\). The matrix is \((J-I)/2\), with eigenvalues \((n-1)/2\) (once) and \(-1/2\) (multiplicity \(n-1\)). For \(n=1\) one has \(Q=0\). For \(n\ge 2\), \[ Q\sim y_1^{2}-y_2^{2}-\cdots-y_n^{2}. \]
(5) \(Q=\sum_{1\le i<j\le n}(-1)^{i+j}x_ix_j\). Setting \(z_i=(-1)^{i}x_i\) gives \(Q=\sum_{i<j}z_iz_j\), which is (4). The sign change is a congruence, so the standard form is the same as in (4).
(6) \(Q=\sum_{1\le i<j\le n}|i-j|x_ix_j\). Pairing by gaps, \[ Q=\sum_{k=1}^{n-1}\Bigl(\sum_{i=1}^{k}x_i\Bigr)\Bigl(\sum_{j=k+1}^{n}x_j\Bigr). \] The partial sums \(y_k=x_1+\cdots+x_k\) (\(y_n=\sum x_i\)) are related to \(x\) by an invertible triangular substitution, and \[ Q=\sum_{k=1}^{n-1}y_k(y_n-y_k)=-\sum_{k=1}^{n-1}\Bigl(y_k-\frac12 y_n\Bigr)^{2}+\frac{n-1}{4}y_n^{2}. \] For \(n=1\), \(Q=0\). For \(n\ge 2\) one has \(p=1\), \(q=n-1\), so \(Q\sim y_1^{2}-y_2^{2}-\cdots-y_n^{2}\).
Exercise §9.2.5
A real quadratic form satisfies \(Q(\alpha)=0\) if and only if \(\alpha=0\) precisely when \(Q\) is positive definite or negative definite.
If \(Q\) is positive definite (resp. negative definite) then \(Q(\alpha)=0\) forces \(\alpha=0\). Conversely, write \(Q\sim\sum_{i=1}^{p}y_i^{2}-\sum_{j=1}^{q}y_{p+j}^{2}\) on an \(n\)-dimensional space, \(p+q=r\le n\). If \(r<n\) the radical is a nontrivial isotropic subspace. If \(p\ge 1\) and \(q\ge 1\), the vector with \(y_1=y_{p+1}=1\) and all other coordinates zero is isotropic and nonzero. Thus the only remaining possibilities are \((p,q)=(n,0)\) or \((0,n)\).
Exercise §9.2.6
If every leading principal minor \(\Delta_j=S\bigl(\begin{smallmatrix}1&\cdots&j\\1&\cdots&j\end{smallmatrix}\bigr)\) is nonzero, prove \(Q=\Delta_1\,y_1^{2}+(\Delta_2/\Delta_1)y_2^{2}+\cdots+(\Delta_n/\Delta_{n-1})y_n^{2}\).
This is Jacobi’s formula, obtained by running Lagrange reduction without row swaps. Since \(\Delta_1=a_{11}\neq 0\), complete the square in \(x_1\): \[ Q=\Delta_1\Bigl(x_1+\sum_{j=2}^{n}\frac{a_{1j}}{a_{11}}x_j\Bigr)^{2}+Q_1(x_2,\ldots,x_n). \] The matrix of \(Q_1\) is the Schur complement \(S/a_{11}\). The leading principal minors of that Schur complement are \(\Delta_{k+1}/\Delta_1\) (the Schur determinantal identity). In particular its \((1,1)\) entry is \(\Delta_2/\Delta_1\neq 0\). Induct on \(n\): \(Q_1\) has the stated expansion in \(y_2,\ldots,y_n\), and \(\Delta_1 y_1^{2}\) supplies the first term (with \(\Delta_0:=1\)).
Exercise §9.2.7
Complex congruence canonical forms of two complex-symmetric matrices and two quadratic forms. (Only the rank survives.)
Over \(\mathbf{C}\) every symmetric matrix of rank \(r\) is congruent to \(\operatorname{diag}(I_{(r)},0)\).
(1) The printed first row is \(1,\,1+i,\,2+i,\ldots,n+i\). Read as an \(n\times n\) matrix this is \(I+e_1\beta^{\mathrm{T}}+\beta e_1^{\mathrm{T}}\) with \(\beta_1=0\) and \(\beta_j=(j-1)+i\) for \(j\ge 2\) (the last printed entry \(n+i\) is then the natural end of the pattern \((n-1)+i\)). The kernel condition \(x+\langle\beta,x\rangle e_1+x_1\beta=0\) forces \(x_j=-x_1\beta_j\) and \(x_1\bigl(1-\sum_{j\ge 2}\beta_j^{2}\bigr)=0\). The imaginary part of \(\sum_{k=1}^{n-1}(k+i)^{2}\) is \(n(n-1)\), which vanishes only for \(n\le 1\). Thus the matrix has full rank \(n\) and is congruent to \(I_{n}\). (The same rank count holds if one literally takes the \((1,n)\) entry to be \(n+i\).)
(2) The Toeplitz tridiagonal matrix with \(1\) on the diagonal and \(i/2\) on the off-diagonals has eigenvalues \(1+i\cos\bigl(j\pi/(n+1)\bigr)\), none of which is zero. Rank \(n\); form \(I_{n}\).
(3) The form \(\sum_{j=1}^{n-1}x_jx_{j+1}\) is the same as §9.2.4(3). Its rank is \(n\) when \(n\) is even and \(n-1\) when \(n\) is odd. The complex canonical form is \(I_{r}\) with that \(r\).
(4) \(Q=\sum_{k,l}(k+il)x_kx_l\). The associated symmetric matrix has entries \(S_{kl}=\frac{1+i}{2}(k+l)\), i.e. \(S=\frac{1+i}{2}(vu^{\mathrm{T}}+uv^{\mathrm{T}})\) with \(u=(1,\ldots,1)\) and \(v=(1,2,\ldots,n)\). For \(n=1\), \(S=(1+i)\neq 0\). For \(n\ge 2\) the vectors \(u,v\) are independent, so \(\operatorname{rank}S=2\). Canonical form \(I_{2}\) (and \(I_{1}\) if \(n=1\)).
Exercise §9.2.8
If \(f\) is bilinear on a real \(n\)-dimensional space and \(f(\alpha,\alpha)>0\) for every \(\alpha\neq 0\), prove that in some basis the matrix of \(f\) is \(\operatorname{diag}\bigl(\bigl(\begin{smallmatrix}1&a_1\\-a_1&1\end{smallmatrix}\bigr),\ldots,\bigl(\begin{smallmatrix}1&a_s\\-a_s&1\end{smallmatrix}\bigr),1,\ldots,1\bigr)\) with \(a_1\ge\cdots\ge a_s>0\).
Write \(f=g+k\) with \(g\) symmetric and \(k\) skew-symmetric. Then \(g(\alpha,\alpha)=f(\alpha,\alpha)>0\) for \(\alpha\neq 0\), so \(g\) is positive definite. Choose a \(g\)-orthonormal basis: \(g\) has matrix \(I\) and \(k\) has a skew-symmetric matrix \(K\). A real orthogonal change (which preserves \(I\)) reduces \(K\) to \(\operatorname{diag}\bigl(\bigl(\begin{smallmatrix}0&a_i\\-a_i&0\end{smallmatrix}\bigr),\ldots,0\bigr)\) with \(a_i>0\). Therefore \(I+K\) becomes the stated block-diagonal matrix. Reorder the hyperbolic blocks so that \(a_1\ge\cdots\ge a_s>0\); vanishing \(a_i\) are absorbed into the trailing ones.
Exercise §9.2.9
On \(\mathbf{R}^{n\times n}\) let \(f(X,Y)=\operatorname{tr}(XY^{\mathrm{T}})\). Find the positive and negative indices of inertia.
\(\operatorname{tr}(XY^{\mathrm{T}})=\sum_{i,j}X_{ij}Y_{ij}\) is the Frobenius inner product, which is positive definite. Thus \(p=n^{2}\) and \(q=0\).
Exercise §9.2.10
If \(Q(\alpha)=\sum a_{ij}x_ix_j\) is positive definite, prove that \(Q_1(\beta)=\sum_{i,j\neq k}\bigl(a_{ij}-a_{ik}a_{kj}/a_{kk}\bigr)x_ix_j\) is a positive definite form in the remaining variables.
Positive-definiteness forces \(a_{kk}=Q(e_k)>0\). Completing the square in \(x_k\) gives \[ Q=a_{kk}\Bigl(x_k+\sum_{i\neq k}\frac{a_{ik}}{a_{kk}}x_i\Bigr)^{2}+Q_1(x_{\neq k}). \] If \(x_{\neq k}\neq 0\), choose \(x_k\) so that the parenthesis vanishes. The resulting vector is nonzero and \(Q\) of it equals \(Q_1\), hence \(Q_1>0\).
Exercise §9.2.11
Find all bilinear forms on the Euclidean space \(\mathbf{R}^{n}\) that are invariant under \(\mathrm{O}(n,\mathbf{R})\).
Write \(f(\alpha,\beta)=xAy^{\mathrm{T}}\). Invariance \(f(\mathscr{A}\alpha,\mathscr{A}\beta)=f(\alpha,\beta)\) for every orthogonal \(\mathscr{A}\) means \(O^{\mathrm{T}}AO=A\) for all \(O\in\mathrm{O}(n)\), i.e. \(A\) commutes with every orthogonal matrix. The commutant of \(\mathrm{O}(n)\) in \(M_n(\mathbf{R})\) is the scalars, so \(A=\lambda I\) and \(f(\alpha,\beta)=\lambda\langle\alpha,\beta\rangle\).
Exercise §9.2.12
The same problem over \(\mathbf{C}\), with \(\mathrm{O}(n,\mathbf{C})=\{P:P^{\mathrm{T}}P=I\}\).
The same computation gives \(P^{\mathrm{T}}AP=A\) for every complex orthogonal \(P\), so \(A\) commutes with \(\mathrm{O}(n,\mathbf{C})\). That group still acts irreducibly and contains \(-I\) together with all permutation matrices of even sign and plane rotations, hence again \(A=\lambda I\). Thus \(f(\alpha,\beta)=\lambda\sum_{i=1}^{n}x_iy_i\).
Exercise §9.2.13
Linear maps \(\mathscr{A}:\mathbf{C}^{2}\to\mathbf{C}^{2}\) preserving \(Q=x_1^{2}-x_2^{2}\). If \(A=(a_{ij})\) is the matrix in the standard basis, prove \(a_{22}=\pm a_{11}\), \(a_{21}=\pm a_{12}\), and \(a_{11}^{2}-a_{12}^{2}=1\). Parametrize the cases \(\det A=\pm 1\).
The condition \(Q(\mathscr{A}\alpha)=Q(\alpha)\) is \(A^{\mathrm{T}}JA=J\) with \(J=\operatorname{diag}(1,-1)\). Writing \(A=\begin{pmatrix}a&b\\c&d\end{pmatrix}\) this is \[ a^{2}-c^{2}=1,\qquad ab-cd=0,\qquad b^{2}-d^{2}=-1. \] In particular \(d^{2}-b^{2}=1\). If \(a\neq 0\) then \(b=cd/a\), and \(d^{2}-c^{2}d^{2}/a^{2}=1\) together with \(a^{2}-c^{2}=1\) yields \(d^{2}=a^{2}\), so \(d=\pm a\). Then \(ab=cd\) forces \(c=b\) when \(d=a\), and \(c=-b\) when \(d=-a\). In both subcases \(a^{2}-b^{2}=1\). If \(a=0\) then \(c^{2}=-1\) and \(d=0\), \(b^{2}=-1\), which is the same pattern with \(d=a\) and \(c=\pm b\). Taking determinants of \(A^{\mathrm{T}}JA=J\) gives \((\det A)^{2}=1\).
If \(\det A=1\) the connected component through \(I\) is parametrized by a nonzero \(c\in\mathbf{C}\) via \[ A=\frac12\begin{pmatrix}c+c^{-1}&c-c^{-1}\\c-c^{-1}&c+c^{-1}\end{pmatrix} \] (the standard rational parametrization of \(a^{2}-b^{2}=1\) with \(d=a\) and \(c_{\mathrm{entry}}=b\)). If \(\det A=-1\) the other component is \[ A=\frac12\begin{pmatrix}c+c^{-1}&c-c^{-1}\\-c+c^{-1}&-c-c^{-1}\end{pmatrix}, \] i.e. \(d=-a\) and \((c_{\mathrm{entry}},d)=(-b,-a)\).
Exercise §9.2.14
A pseudo-Euclidean space is a real space with a nondegenerate symmetric bilinear form of positive index \(p\). An orthonormal basis satisfies \((\xi_i,\xi_j)=\varepsilon_i\delta_{ij}\) with \(\varepsilon_i=1\) for \(i\le p\) and \(\varepsilon_i=-1\) afterwards. A linear \(\mathscr{A}\) with \((\mathscr{A}\alpha,\mathscr{A}\beta)=(\alpha,\beta)\) is pseudo-orthogonal. Prove: (1) every such \(\mathscr{A}\) is invertible and \(\mathscr{A}^{-1}\) is pseudo-orthogonal; (2) the product of two pseudo-orthogonal maps is pseudo-orthogonal.
(1) If \(\mathscr{A}(\alpha)=0\) then \((\alpha,\beta)=(\mathscr{A}\alpha,\mathscr{A}\beta)=0\) for every \(\beta\). Nondegeneracy forces \(\alpha=0\), so \(\mathscr{A}\) is injective, hence invertible. Then \[ (\mathscr{A}^{-1}\alpha,\mathscr{A}^{-1}\beta)=(\mathscr{A}\mathscr{A}^{-1}\alpha,\mathscr{A}\mathscr{A}^{-1}\beta)=(\alpha,\beta). \]
(2) \((\mathscr{A}\mathscr{B}\alpha,\mathscr{A}\mathscr{B}\beta)=(\mathscr{B}\alpha,\mathscr{B}\beta)=(\alpha,\beta)\).
§9.3 Skew-symmetric bilinear functions
Printed pp. 439–441; PDF pp. 451–453.
Exercise §9.3.1
Find a rational invertible \(P\) with \(P^{\mathrm{T}}KP=\operatorname{diag}\bigl(\bigl(\begin{smallmatrix}0&1\\-1&0\end{smallmatrix}\bigr),\bigl(\begin{smallmatrix}0&1\\-1&0\end{smallmatrix}\bigr)\bigr)\), where \(K=\begin{pmatrix}0&2&-1&3\\-2&0&4&-2\\1&-4&0&1\\-3&2&-1&0\end{pmatrix}\).
The \((1,2)\) entry is \(2\neq 0\). Scale the second basis vector by \(1/2\) and then clear the rest of the first two rows/columns by the hyperbolic pair, as in the proof of §9.3, Theorem 1. The resulting change-of-basis matrix \[ P=\begin{pmatrix} 1&0&2&-1/6\\ 0&1/2&1/2&-1/4\\ 0&0&1&0\\ 0&0&0&1/6 \end{pmatrix} \] is invertible over \(\mathbf{Q}\) (\(\det P=1/12\)), and a direct multiplication gives \[ P^{\mathrm{T}}KP=\begin{pmatrix}0&1&0&0\\-1&0&0&0\\0&0&0&1\\0&0&-1&0\end{pmatrix}, \] as required. (In particular \(\operatorname{rank}K=4\).)
Exercise §9.3.2
On \(L(V,V,F)\) set \((\mathscr{P}f)(\alpha,\beta)=\frac12 f(\alpha,\beta)-\frac12 f(\beta,\alpha)\). Prove: (1) \(\mathscr{P}\) is a linear projection; (2) \(\operatorname{rank}\mathscr{P}=n(n-1)/2\); (3) if \(\widetilde{\mathscr{B}}(f)(\alpha,\beta)=f(\mathscr{B}\alpha,\mathscr{B}\beta)\), then \(\widetilde{\mathscr{B}}\) is linear and commutes with \(\mathscr{P}\).
(1) Linearity in \(f\) is immediate. \(\mathscr{P}f\) is the skew-symmetric part of \(f\), so \(\mathscr{P}\) maps \(L(V,V,F)\) into itself and \(\mathscr{P}^{2}=\mathscr{P}\).
(2) The image of a projection is its set of fixed points, here \(K(V,V,F)\). That space is isomorphic to the space of skew-symmetric \(n\times n\) matrices and has dimension \(n(n-1)/2\). Hence \(\operatorname{rank}\mathscr{P}=n(n-1)/2\).
(3) \(\widetilde{\mathscr{B}}(\lambda f+\mu g)=\lambda\widetilde{\mathscr{B}}f+\mu\widetilde{\mathscr{B}}g\) is plain. Moreover \[ \bigl(\mathscr{P}\widetilde{\mathscr{B}}f\bigr)(\alpha,\beta)=\frac12 f(\mathscr{B}\alpha,\mathscr{B}\beta)-\frac12 f(\mathscr{B}\beta,\mathscr{B}\alpha)=\bigl(\widetilde{\mathscr{B}}\mathscr{P}f\bigr)(\alpha,\beta). \]
Exercise §9.3.3
If \(L_1,L_2\in V^{*}\), then \(f(\alpha,\beta)=L_1(\alpha)L_2(\beta)-L_1(\beta)L_2(\alpha)\) is skew-symmetric, and \(f=0\) if and only if \(L_1,L_2\) are linearly dependent.
Swapping \(\alpha\) and \(\beta\) changes the sign, so \(f\) is skew-symmetric. If \(L_2=\lambda L_1\) then \(f=0\). Conversely, if \(L_1,L_2\) are independent there exist \(\alpha,\beta\) with \(L_1(\alpha)=1\), \(L_2(\alpha)=0\), \(L_1(\beta)=0\), \(L_2(\beta)=1\), whence \(f(\alpha,\beta)=1\).
Exercise §9.3.4
A skew-symmetric \(f\) has rank \(2\) if and only if \(f(\alpha,\beta)=L_1(\alpha)L_2(\beta)-L_1(\beta)L_2(\alpha)\) for some linearly independent \(L_1,L_2\).
The right-hand side has rank \(0\) or \(2\) according as \(L_1,L_2\) are dependent or not (§9.3.3). Conversely, if \(\operatorname{rank}f=2\) then in a symplectic basis of the nondegenerate quotient one has \(f(\alpha,\beta)=x_1y_2-x_2y_1\), which is the asserted expression with \(L_i\) the first two coordinate functionals.
Exercise §9.3.5
Every skew-symmetric bilinear form on \(\mathbf{R}^{3}\) can be written as in §9.3.3.
The rank of a skew-symmetric form is even and at most \(3\), hence is \(0\) or \(2\). Rank \(0\) is the case \(L_1=L_2=0\). Rank \(2\) is §9.3.4.
Exercise §9.3.6
For skew-symmetric \(f,g\), prove that \(\operatorname{rank}f=\operatorname{rank}g\) if and only if there is a linear \(\mathscr{A}\) with \(f(\mathscr{A}\alpha,\mathscr{A}\beta)=g(\alpha,\beta)\).
If such an \(\mathscr{A}\) exists then \(g\) is a pull-back of \(f\), so \(\operatorname{rank}g\le\operatorname{rank}f\). As printed this is not yet equality: the zero map pulls \(f\) back to \(0\). The intended statement is that the ranks are equal if and only if there is an invertible \(\mathscr{A}\) with \(f(\mathscr{A}\alpha,\mathscr{A}\beta)=g(\alpha,\beta)\).
Indeed, two skew-symmetric forms are congruent if and only if they have the same rank (§9.3, Theorem 2). Congruence is precisely the existence of an invertible \(\mathscr{A}\) implementing a change of basis that identifies the two matrices. (Without invertibility, a linear \(\mathscr{A}\) exists if and only if \(\operatorname{rank}g\le\operatorname{rank}f\), by embedding a standard form of \(g\) into one of \(f\).)
Exercise §9.3.7
A symplectic space is a space with a nondegenerate skew-symmetric form \(f\). A symplectic basis satisfies \(f(\alpha_i,\alpha_j)=f(\beta_i,\beta_j)=0\) and \(f(\alpha_i,\beta_j)=\delta_{ij}\). A symplectic map preserves \(f\); its symplectic adjoint is defined by \(f(\mathscr{A}\alpha,\beta)=f(\alpha,\widetilde{\mathscr{A}}\beta)\). Prove: (1) a symplectic basis exists; (2) any two symplectic forms are related by an invertible linear map; (3) \(\widetilde{\widetilde{\mathscr{A}}}=\mathscr{A}\), and every \(\mathscr{A}\) decomposes uniquely as a symplectic self-adjoint plus a symplectic skew-adjoint map; (4) in a symplectic basis a skew-adjoint map has block matrix \(\begin{pmatrix}M&N\\K&L\end{pmatrix}\) with \(N^{\mathrm{T}}=N\), \(K^{\mathrm{T}}=K\), \(L=-M^{\mathrm{T}}\).
(1) Nondegeneracy forces \(\operatorname{rank}f=n=2k\). Theorem 1 of §9.3 supplies a basis in which \(f\) has matrix \(\operatorname{diag}(J,\ldots,J)\) with \(J=\bigl(\begin{smallmatrix}0&1\\-1&0\end{smallmatrix}\bigr)\). Grouping that basis as \((\xi_1,\xi_3,\ldots,\xi_{2k-1})\) and \((\xi_2,\xi_4,\ldots,\xi_{2k})\) gives a symplectic basis.
(2) Any two nondegenerate skew-symmetric forms on an \(n\)-dimensional space have rank \(n\), hence are congruent. The change-of-basis map is the required invertible \(\mathscr{A}\).
(3) \(f(\alpha,\widetilde{\widetilde{\mathscr{A}}}\beta)=f(\widetilde{\mathscr{A}}\alpha,\beta)=f(\alpha,\mathscr{A}\beta)\). Nondegeneracy yields \(\widetilde{\widetilde{\mathscr{A}}}=\mathscr{A}\). Then \[ \mathscr{A}=\frac{\mathscr{A}+\widetilde{\mathscr{A}}}{2}+\frac{\mathscr{A}-\widetilde{\mathscr{A}}}{2} \] is the unique decomposition into a map equal to its adjoint and a map equal to minus its adjoint.
(4) In a symplectic basis the matrix of \(f\) is \(J=\begin{pmatrix}0&I\\-I&0\end{pmatrix}\). With row coordinates, \(f(\mathscr{A}\alpha,\beta)+f(\alpha,\mathscr{A}\beta)=0\) becomes \(AJ+JA^{\mathrm{T}}=0\). Writing \(A=\begin{pmatrix}M&N\\K&L\end{pmatrix}\) this is \(N^{\mathrm{T}}=N\), \(K^{\mathrm{T}}=K\), and \(L=-M^{\mathrm{T}}\). (The book writes \({}^{*}\) for the conjugate transpose; the form is bilinear over a number field, so the condition is transposition.)
§9.4 Conjugate bilinear functions and Hermitian forms
Printed p. 447; PDF p. 459.
Exercise §9.4.1
Reduce two Hermitian forms to the standard form \(\sum\pm x_i\bar x_i\).
(1) \(H(\alpha)=\sum_{j=1}^{n-1}(x_j\bar x_{j+1}+x_{j+1}\bar x_j)\). The matrix is the real symmetric path tridiagonal with zeros on the diagonal and ones on the off-diagonals. Its eigenvalues are \(2\cos\bigl(j\pi/(n+1)\bigr)\), so the inertia is the same as in §9.2.4(3): \(p=q=\lfloor n/2\rfloor\), with a zero eigenvalue when \(n\) is odd. The standard form is \[ \sum_{i=1}^{\lfloor n/2\rfloor}y_i\bar y_i-\sum_{i=1}^{\lfloor n/2\rfloor}y_{\lfloor n/2\rfloor+i}\bar y_{\lfloor n/2\rfloor+i} \] (and a trailing zero coordinate when \(n\) is odd).
(2) \(H(\alpha)=\sum_{1\le k,l\le n}\lvert k-il\rvert\,x_k\bar x_l\) with \(i^{2}=-1\), i.e. the Hermitian matrix \(A_{kl}=\sqrt{k^{2}+l^{2}}\). For \(n=1\) one has \(A=(\sqrt{2})\) and \(H\sim x_1\bar x_1\). For \(n\ge 2\) the form has inertia \((1,n-1)\). Indeed, the representation \[ \sqrt{r}=I(1)^{-1}\int_{0}^{\infty}(1-e^{-tr})\,t^{-3/2}\,dt,\qquad I(1)=\int_{0}^{\infty}(1-e^{-u})u^{-3/2}\,du>0, \] gives \(A_{kl}=C\int_{0}^{\infty}\bigl(1-e^{-t(k^{2}+l^{2})}\bigr)t^{-3/2}\,dt\) with \(C>0\). If \(\sum x_k=0\) then \[ xAx^{*} =C\int_{0}^{\infty}\Bigl(-\Bigl\lvert\sum_{k}e^{-tk^{2}}x_k\Bigr\rvert^{2}\Bigr)t^{-3/2}\,dt\le 0, \] with equality only if \(\sum_{k}e^{-tk^{2}}x_k=0\) for all \(t>0\). The functions \(t\mapsto e^{-k^{2}t}\) (\(k=1,\ldots,n\)) are linearly independent, so \(x=0\). Thus \(A\) is negative definite on the hyperplane \(\sum x_k=0\) (index \(n-1\)) and, all entries being positive, the Perron eigenvalue is positive. Hence \(p=1\), \(q=n-1\), and \[ H\sim y_1\bar y_1-\sum_{j=2}^{n}y_j\bar y_j. \]
Exercise §9.4.2
Find the rank and signature of two Hermitian forms.
(1) \(H=a\sum_{j}\lvert x_j\rvert^{2}+\sum_{k\neq l}(x_k\bar x_l+x_l\bar x_k)\). The second sum equals \(2\sum_{k\neq l}x_k\bar x_l\), so \[ H=(a-2)\lVert x\rVert^{2}+2\lvert\textstyle\sum x_j\rvert^{2}, \] i.e. the matrix is \((a-2)I+2J\) (here \(a\) must be real for \(H\) to be Hermitian). The eigenvalues are \(a-2+2n\) (once) and \(a-2\) (multiplicity \(n-1\)). Therefore:
- \(a>2\): rank \(n\), signature \(n\);
- \(a=2\): rank \(1\), signature \(1\);
- \(2-2n<a<2\): rank \(n\), signature \(2-n\);
- \(a=2-2n\): rank \(n-1\), signature \(1-n\);
- \(a<2-2n\): rank \(n\), signature \(-n\).
(2) \(H=\sum_{k\neq l}\lvert x_k-x_l\rvert^{2}\). Expanding, \[ H=2(n-1)\sum\lvert x_j\rvert^{2}-2\sum_{k\neq l}x_k\bar x_l=2n\lVert x\rVert^{2}-2\Bigl\lvert\sum x_j\Bigr\rvert^{2}. \] The eigenvalues are \(0\) (along the all-ones vector) and \(2n\) (multiplicity \(n-1\)). Thus \(\operatorname{rank}H=n-1\) and \(\delta(H)=n-1\).
Exercise §9.4.3
\(H(\alpha)=\sum_{k,l}(akl+k+l)x_k\bar x_l\). Prove that the rank and signature are independent of the constant \(a\).
Write \(u=(1,\ldots,1)^{\mathrm{T}}\) and \(v=(1,2,\ldots,n)^{\mathrm{T}}\). The matrix is \[ H=\begin{pmatrix}v&u\end{pmatrix}\begin{pmatrix}a&1\\1&0\end{pmatrix}\begin{pmatrix}v&u\end{pmatrix}^{*}. \] The \(2\times 2\) factor has determinant \(-1\), hence is invertible for every \(a\). For \(n=1\), \(H=(a+2)\) and both rank and signature depend on \(a\). For \(n\ge 2\) the columns \(u,v\) are independent, so \(\operatorname{rank}H=2\) independently of \(a\).
For \(H\) to be Hermitian one needs \(a\in\mathbf{R}\). The \(2\times 2\) matrix \(\bigl(\begin{smallmatrix}a&1\\1&0\end{smallmatrix}\bigr)\) then has characteristic polynomial \(\lambda^{2}-a\lambda-1=0\), whose roots \(\bigl(a\pm\sqrt{a^{2}+4}\bigr)/2\) have opposite signs. The congruence therefore has inertia \((1,1)\) for every real \(a\): rank \(2\) and signature \(0\), both independent of \(a\). (If \(a\in\mathbf{C}\) is not real, the printed expression is not Hermitian; its Hermitian part replaces \(a\) by \(\operatorname{Re}a\) and the same conclusion applies.)
Exercise §9.4.4
If \(r\) and \(s\) are the rank and signature of a Hermitian form \(H\), prove there is a subspace \(W\) of dimension \(\frac12(r-s)\) on which \(H(\alpha)<0\) for every nonzero \(\alpha\in W\).
In a standard basis, \(H=\sum_{i=1}^{p}\lvert y_i\rvert^{2}-\sum_{j=1}^{q}\lvert y_{p+j}\rvert^{2}\) with \(p+q=r\) and \(p-q=s\), so \(\frac12(r-s)=q\). The coordinate subspace \(W\) spanned by the \(q\) negative axes has \(\dim W=q\) and \(H|_{W}=-\sum_{j=1}^{q}\lvert y_{p+j}\rvert^{2}\), which is negative definite.
Exercise §9.4.5
Reduce two Hermitian matrices to the \(*\)-congruence canonical form \(\operatorname{diag}(I_{(p)},-I_{(q)},0)\).
(1) The matrix has \(1\) on the diagonal, first row \(1,\,1+i,\,2+i,\ldots,(n-1)+i\), first column the conjugate, and zeros elsewhere. For \(n=1\) it is \((1)\), hence congruent to \(I_{1}\). For \(n\ge 2\) write \(c_j=(j-1)+i\) (\(j=2,\ldots,n\)). Completing the square, \[ H=\sum_{j=2}^{n}\bigl\lvert x_j+c_j x_1\bigr\rvert^{2}+\Bigl(1-\sum_{j=2}^{n}\lvert c_j\rvert^{2}\Bigr)\lvert x_1\rvert^{2}. \] Here \(\sum_{j=2}^{n}\lvert c_j\rvert^{2}=\sum_{k=1}^{n-1}(k^{2}+1)=(n-1)+n(n-1)(2n-1)/6>1\), so the coefficient of \(\lvert x_1\rvert^{2}\) is negative. Thus \(p=n-1\), \(q=1\), and the form is \(\operatorname{diag}(I_{(n-1)},-1)\).
(2) The tridiagonal Hermitian matrix with \(1\) on the diagonal, \(i/2\) on the superdiagonal and \(-i/2\) on the subdiagonal is the Toeplitz matrix \(\operatorname{tridiag}(-i/2,1,i/2)\). Its eigenvalues are \[ \lambda_j=1+2\sqrt{(-i/2)(i/2)}\,\cos\frac{j\pi}{n+1}=1+\cos\frac{j\pi}{n+1}>0,\qquad j=1,\ldots,n. \] The matrix is positive definite, hence \(*\)-congruent to \(I_{n}\).