logo

回転変換, 回転行列 📂行列代数

回転変換, 回転行列

定義

2次元平面 R2\mathbb{R}^{2}で任意の ベクトルを反時計回りに θ\thetaだけ回転させる変換は次のとおりである。

[xy]=[cosθsinθsinθcosθ][xy] \begin{bmatrix} x^{\prime} \\ y^{\prime} \end{bmatrix} = \begin{bmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix}

説明

行列 [cosθsinθsinθcosθ]\begin{bmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{bmatrix}回転行列rotation matrix または 回転変換rotation transformation と呼ぶ。

導出

x=rcosϕx = r \cos \phi, y=rsinϕy = r \sin \phiとする。 (x,y)(x^{\prime}, y^{\prime})を点 (x,y)(x, y)θ\thetaだけ回転させたときの点とする。 三角関数の加法定理により x,yx^{\prime}, y^{\prime}はそれぞれ次のようになる。

x=rcos(ϕ+θ)=rcosϕcosθrsinϕsinθ=xcosθysinθ \begin{align*} x^{\prime} &= r \cos(\phi + \theta) \\ &= r\cos\phi \cos\theta - r\sin\phi \sin\theta \\ &= x \cos\theta - y \sin\theta \\ \end{align*}

y=rsin(ϕ+θ)=rsinϕcosθ+rcosϕsinθ=ycosθ+xsinθ=xsinθ+ycosθ \begin{align*} y^{\prime} &= r \sin(\phi + \theta) \\ &= r\sin\phi \cos\theta + r\cos\phi \sin\theta \\ &= y \cos\theta + x \sin\theta \\ &= x \sin\theta + y \cos\theta \end{align*}

    {x=xcosθysinθy=ycosθ+xsinθ \implies \begin{cases} x^{\prime} = x \cos\theta - y \sin\theta \\ y^{\prime} = y \cos\theta + x \sin\theta \end{cases}

この連立方程式を行列で表すと次のようになる。

[xy]=[cosθsinθsinθcosθ][xy] \begin{bmatrix} x^{\prime} \\ y^{\prime} \end{bmatrix} = \begin{bmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix}