基础知识

6-1 二次型及其表示

#线代 #二次型 别名:1 二次型及其表示、二次型及其表示、二次型

定义

含有 nn 个变量 x1,x2,⋯ ,xnx_1, x_2, \cdots, x_n 的二次齐次多项式称为 nn 元二次型,简称二次型。

f(x1,x2,⋯ ,xn)=a11x12+2a12x1x2+⋯+2a1nx1xn+a22x22+⋯+2a2nx2xn+⋯+annxn2(1)f(x_1, x_2, \cdots, x_n) = a_{11}x_1^2 + 2a_{12}x_1x_2 + \cdots + 2a_{1n}x_1x_n \\ + a_{22}x_2^2 + \cdots + 2a_{2n}x_2x_n \\ + \cdots \\ + a_{nn}x_n^2 \quad \text{(1)}

注

二次型中所有项必须满足“二次齐次”。例如 f(x1,x2,x3,x4)=3x32+x1x2+2x1x3−6x2x4+9x3x4f(x_1, x_2, x_3, x_4) = 3x_3^2 + x_1x_2 + 2x_1x_3 - 6x_2x_4 + 9x_3x_4 是一个 4 个变量的二次型,而多项式 f(x,y)=x2+xy−2y2+3x+1f(x,y) = x^2+xy-2y^2+3x+1 则不是一个二次型。

当 j>ij>i 时,取 aji=aija_{ji}=a_{ij},则 2aijxixj=aijxixj+ajixjxi2a_{ij}x_ix_j = a_{ij}x_ix_j+a_{ji}x_jx_i,于是①式可写成

f(x1,x2,⋯ ,xn)=a11x12+a12x1x2+⋯+a1nx1xn+a21x2x1+a22x22+⋯+a2nx2xn+⋯+an1xnx1+an2xnx2+⋯+annxn2(2) f(x_1, x_2, \cdots, x_n) = a_{11}x_1^2 + a_{12}x_1x_2 + \cdots + a_{1n}x_1x_n \\ + a_{21}x_2x_1 + a_{22}x_2^2 + \cdots + a_{2n}x_2x_n \\ + \cdots \\ + a_{n1}x_nx_1 + a_{n2}x_nx_2 + \cdots + a_{nn}x_n^2 \quad \text{(2)}
可简记为 f(x1,x2,⋯ ,xn)=∑i=1n∑j=1naijxixjf(x_1, x_2, \cdots, x_n) = \sum_{i=1}^n \sum_{j=1}^n a_{ij}x_ix_j,其中 aji=aij,1≤i,j≤na_{ji}=a_{ij}, 1 \le i, j \le n。

进一步,利用矩阵,②式可表示为

f(x1,x2,⋯ ,xn)=x1(a11x1+a12x2+⋯+a1nxn)+x2(a21x1+a22x2+⋯+a2nxn)+⋯+xn(an1x1+an2x2+⋯+annxn)=(x1,x2,⋯ ,xn)(a11x1+a12x2+⋯+a1nxna21x1+a22x2+⋯+a2nxn⋮an1x1+an2x2+⋯+annxn)=(x1,x2,⋯ ,xn)(a11a12⋯a1na21a22⋯a2n⋮⋮⋮an1an2⋯ann)(x1x2⋮xn)=xTAx\begin{align*}f(x_1, x_2, \cdots, x_n) &= x_1(a_{11}x_1 + a_{12}x_2 + \cdots + a_{1n}x_n) + x_2(a_{21}x_1 + a_{22}x_2 + \cdots + a_{2n}x_n) + \cdots +x_n(a_{n1}x_1 + a_{n2}x_2 + \cdots + a_{nn}x_n) \\&= (x_1, x_2, \cdots, x_n) \begin{pmatrix} a_{11}x_1 + a_{12}x_2 + \cdots + a_{1n}x_n \\ a_{21}x_1 +a_{22}x_2 + \cdots + a_{2n}x_n \\ \vdots \\ a_{n1}x_1 + a_{n2}x_2 + \cdots +a_{nn}x_n \end{pmatrix} \\&= (x_1, x_2, \cdots, x_n) \begin{pmatrix} a_{11} &a_{12} & \cdots & a_{1n} \\ a_{21} & a_{22} & \cdots & a_{2n} \\ \vdots &\vdots & & \vdots \\ a_{n1} & a_{n2} & \cdots & a_{nn} \end{pmatrix}\begin{pmatrix} x_1 \\ x_2 \\ \vdots \\ x_n \end{pmatrix} =\mathbf{x}^T A \mathbf{x}\end{align*}
其中,矩阵 AA 为实对称矩阵 (A=ATA=A^T),称实对称矩阵 AA 为该二次型的矩阵,实对称矩阵 AA 的秩称为二次型 f(x1,x2,⋯ ,xn)=xTAxf(x_1, x_2, \cdots, x_n) = \mathbf{x}^T A \mathbf{x} 的秩。

注
  1. 二次型的矩阵表示法不止一种,例如 f(x1,x2)=x12+x22+2x1x2f(x_1, x_2) = x_1^2+x_2^2+2x_1x_2 既可以表示为 f(x1,x2)=xTA1x=(x1,x2)(1111)(x1x2)f(x_1, x_2) = \mathbf{x}^T A_1 \mathbf{x} = (x_1, x_2)\begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix}\begin{pmatrix} x_1 \\ x_2 \end{pmatrix},也可以表示为 f(x1,x2)=xTA2x=(x1,x2)(1201)(x1x2)f(x_1, x_2) = \mathbf{x}^T A_2 \mathbf{x} = (x_1, x_2)\begin{pmatrix} 1 & 2 \\ 0 & 1 \end{pmatrix}\begin{pmatrix} x_1 \\ x_2 \end{pmatrix},但二次型矩阵具有唯一性,只有 A1A_1 才能称为二次型矩阵,为什么?
  2. 当 x\mathbf{x} 给定时,二次型 f(x1,x2,⋯ ,xn)=xTAxf(x_1, x_2, \cdots, x_n) = \mathbf{x}^T A \mathbf{x} 是一个数。