正交矩阵之旋转与镜射

文章目录

正交矩阵

假设 AAnn 阶实方阵, 满足

ATA=AAT=IA^{\mathsf T}A = AA^{\mathsf T} = I

AT=A1A^{\mathsf T}=A^{-1}, 称 AA 正交矩阵(orthogonal matrix). 由上式可知: A=±1\lVert A \rVert = \pm 1.


A=[α1,,αn], αiA=[\alpha_1, \dots, \alpha_n],\ \alpha_iAA 的列向量, 满足

αiαj={1i=j0ij \alpha_i \cdot \alpha_j= \begin{cases} 1 \quad i = j \\[3pt] 0 \quad i \neq j \end{cases}

即正交矩阵的列向量是 Rn\mathbb{R}^n标准正交基.


正交矩阵满足如下性质:

  1. 对于任意 x,yRn\mathbf{x}, \mathbf{y}\in\mathbb{R}^n, (Ax)T(Ay)=xTy(A\mathbf{x})^{\mathsf T}(A\mathbf{y})=\mathbf{x}^{\mathsf T}\mathbf{y}
  2. 对于任一 xRn\mathbf{x}\in\mathbb{R}^n, Ax=x\Vert A\mathbf{x}\Vert=\Vert\mathbf{x}\Vert
  3. 对于任意 x,yRn\mathbf{x},\mathbf{y}\in\mathbb{R}^n, AxAy=xy\Vert A\mathbf{x}-A\mathbf{y}\Vert=\Vert\mathbf{x}-\mathbf{y}\Vert

上述性质采用循环式证明不难验证


假设 Ax=λx,x0A\mathbf{x} = \lambda\mathbf{x}, \, \mathbf{x}\neq 0, 利用性质 2

x=Ax=λx=λx \Vert\mathbf{x}\Vert = \Vert A\mathbf{x}\Vert= \Vert\lambda \mathbf{x}\Vert = \vert\lambda\vert \Vert\mathbf{x}\Vert

得到: λ=1\vert\lambda\vert = 1, 即正交矩阵的特征值的绝对值等于 11.

旋转

A=1\lVert A \rVert = 1, 则成正交矩阵 AA旋转矩阵. 当 n=2n=2 时, 逆时针旋转 θ\theta 角度的旋转矩阵为:

R(θ)=[cos(θ)sin(θ)sin(θ)cos(θ)] R(\theta) = \begin{bmatrix} \cos(\theta) & -\sin(\theta) \\ \sin(\theta) & \cos(\theta) \end{bmatrix}

显然, R(θ)T=R(θ)=R1(θ)R(\theta)^{\mathsf T}=R(-\theta)=R^{-1}(\theta), 且

R(θ)=cos2θ+sin2θ=1\lVert R(\theta) \rVert =\cos^2\theta+\sin^2\theta=1

以及 R(θ)R(\theta) 的特征值为 cosθ±isinθ\cos\theta\pm i\sin\theta, 其中 i=1i=\sqrt{-1}.

镜射

U\mathcal{U}Rn\mathbb{R}^n 的一个子空间,且 PP 是值域为 U\mathcal{U}^\perp 的正交投影矩阵,满足

P2=P=PTP^2=P=P^T

给定 xRn\mathbf{x}\in\mathbb{R}^n, 写出 x=Px+(IP)x\mathbf{x}=P\mathbf{x}+(I-P)\mathbf{x}, 其中 PxUP\mathbf{x}\in\mathcal{U}^\perp, (IP)xU(I-P)\mathbf{x}\in\mathcal{U}, 因为

(Px)T(IP)x=xTPT(IP)x=xT(PP2)x=0 \begin{aligned} (P\mathbf{x})^{\mathsf T}(I-P)\mathbf{x} &=\mathbf{x}^{\mathsf T}P^{\mathsf T}(I-P)\mathbf{x} \\[3pt] &=\mathbf{x}^{\mathsf T}(P-P^2 )\mathbf{x}=0 \end{aligned}


正交矩阵之旋转与镜射

假设 n=3n=3, 如上图所示, 令

Sx=Px+(PI)x=(2PI)xS\mathbf{x}=P\mathbf{x}+(P-I)\mathbf{x}=(2P-I)\mathbf{x}

对于子空间 U\mathcal{U}^\perp,我们称 SxS\mathbf{x} 是点 x\mathbf{x} 的镜射点,镜射矩阵为

S=2PI S=2P-I


假设 n=2n=2,

  • U={0}\mathcal{U}^\perp=\{\mathbf{0}\}, 则正交投影矩阵为 P1=0P_1=0, 对于原点的镜射矩阵则为 S1=I2S_1=-I_2.
  • U=L\mathcal{U}^\perp=L 为一穿越原点的直线, 称为镜射轴, 设 LL 与正 XX 轴的夹角为 ϕ\phi (以下夹角皆为逆时针转角).

v=[cosϕ,sinϕ]T\mathbf{v}=[\cos\phi, \, \sin\phi ]^{\mathsf T} 代表镜射轴 LL 的方向向量, 即 L=span{v}L=\text{span}\{\mathbf{v}\}. 写出映至直线 LL 的正交投影矩阵
P2=vvTvTv=vvTP_2=\frac{\mathbf{v}\mathbf{v}^{\mathsf T}}{\mathbf{v}^{\mathsf T}\mathbf{v}}=\mathbf{v}\mathbf{v}^{\mathsf T}
相应的, 镜射轴 LL 的镜射矩阵为
S2=2vvTI=[2cos2ϕ12cosϕsinϕ2sinϕcosϕ2sin2ϕ1]=[cos2ϕsin2ϕsin2ϕcos2ϕ] \begin{aligned} S_2&=2\mathbf{v}\mathbf{v}^T-I \\[3pt] &=\begin{bmatrix} 2\cos^2\phi-1&2\cos\phi\sin\phi\\ 2\sin\phi\cos\phi&2\sin^2\phi-1 \end{bmatrix} \\[3pt] &= \begin{bmatrix} \cos 2\phi&\sin 2\phi \\ \sin 2\phi &-\cos 2\phi \end{bmatrix} \end{aligned}

原文链接:
matnoble.me/posts/rotationandmirroring/