計算矩陣平方
計算 $A^2$
直接把矩陣 $A$ 自己相乘,再用和角公式化簡。
$$A^2=\begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix}\begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix}=\begin{bmatrix} \cos^2\theta-\sin^2\theta & -2\sin\theta\cos\theta \\ 2\sin\theta\cos\theta & \cos^2\theta-\sin^2\theta \end{bmatrix}$$
由二倍角公式 $\cos2\theta=\cos^2\theta-\sin^2\theta$、$\sin2\theta=2\sin\theta\cos\theta$,得
$$A^2=\begin{bmatrix} \cos2\theta & -\sin2\theta \\ \sin2\theta & \cos2\theta \end{bmatrix}$$
推出矩陣次方規律
由 $A^2$ 的規律推出 $A^4$
$A$ 這種形式是旋轉矩陣,旋轉角度會隨次方倍增;$A^2$ 已經算出對應角度 $2\theta$,同樣的規律用兩次就得到 $A^4$。
因為 $A^2$ 是「旋轉角 $2\theta$」的矩陣,把 $A^2$ 自己再相乘一次(角度再加倍),可得 $A^4$ 是「旋轉角 $4\theta$」的矩陣:
$$A^4=\begin{bmatrix} \cos4\theta & -\sin4\theta \\ \sin4\theta & \cos4\theta \end{bmatrix}$$
已知 $A^4=\begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}$,所以
$$\begin{cases} \cos4\theta=1 \\ \sin4\theta=0 \end{cases}$$
解出角度
解出 $\theta$
同時滿足 $\cos4\theta=1$ 且 $\sin4\theta=0$ 的角,只能是 $2\pi$ 的整數倍。
同時滿足上述兩式的角只能是
$$4\theta=2k\pi\ (k\in\mathbb{Z})$$
$$\theta=\dfrac{k\pi}{2}\ (k\in\mathbb{Z})$$
因為 $0<\theta<\pi$,只有 $k=1$ 時 $\theta=\frac{\pi}{2}$ 落在這個範圍內,所以
$$\theta=\dfrac{\pi}{2}$$