> For the complete documentation index, see [llms.txt](https://windmising.gitbook.io/mathematics-basic-for-ml/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://windmising.gitbook.io/mathematics-basic-for-ml/src/linearalgebra/inverse.md).

# 逆变换(Inverse transform)

<div align="left"><img src="https://2038183336-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lv4KY8barIvUvw6Ju8e%2Fuploads%2Fgit-blob-6e11ef634df69a1741b3479bbfaed3cb5034b17b%2F%E9%80%86%E5%8F%98%E6%8D%A2.jpg?alt=media" alt="" width="400"></div>

> 💡 当一个变换是通过\\(M\\)得到的，那么可以通过\\(M\\)的逆\\(M^{-1}\\)来恢复变换。

## 旋转的逆变换

再次来看矩阵旋转 \\(X'=R\_{\theta}X\\) :

我们将 \\(X\\) 旋转 \\(\theta\\) 度， \\(R\_{\theta}\\) 为：

\\\[\
R\_{\theta}=\left( \begin{matrix}\
\cos \theta& -\sin \theta\\\\\
\sin \theta& \cos \theta\\\\\
\end{matrix} \right)\
\\]

如果要逆转回来，恢复原来的矩阵，需要旋转 \\(-\theta\\) 度，根据上述旋转的推导，可以得到：

\\\[\
R\_{-\theta}=\left( \begin{matrix}\
\cos \theta& \sin \theta\\\\\
-\sin \theta& \cos \theta\\\\\
\end{matrix} \right)\
\\]

而 \\(R\_{-\theta}\\) 恰好是 \\(R\_{\theta}\\) 的转置矩阵 \\(R\_{\theta}^{T}\\)， 即：

\\\[\
R\_{-\theta}=R\_{\theta}^{T}\
\\]

由 “当一个变换是通过\\(M\\)得到的，那么可以通过\\(M\\)的逆\\(M^{-1}\\)来恢复变换” 可知，\\(R\_{\theta}^{-1}\\) 与刚刚旋转 \\(-\theta\\) 推导得到的 \\(R\_{\theta}\\) 相等，即：

\\\[\
R\_{\theta}^{-1}=R\_{-\theta}\
\\]

于是有：

\\\[\
R\_{-\theta}=R\_{\theta}^{-1}=R\_{\theta}^{T}\
\\]

***

> 本文出自CaterpillarStudyGroup，转载请注明出处。\
> <https://caterpillarstudygroup.github.io/GAMES101\\_mdbook/>
