Orthogonal group
= Orthogonal group
{title2=$O(n)$}
{wiki}
The real <orthogonal group> $O(n)$ consists of the real $n$-by-$n$ <matrices> $R$ satisfying $R^TR=I$, with <matrix multiplication> as its group operation. These are precisely the <linear maps> preserving the standard <dot product>, since
$$
(Rx)\cdot(Ry)=x^TR^TRy=x\cdot y.
$$
Its <identity element> is $I$, and the inverse of $R$ is its <matrix transpose> $R^T$. Multiplication preserves the defining relation, so these <matrices> form a <group>.
For example, in two dimensions,
$$
R_\theta=\begin{pmatrix}\cos\theta&-\sin\theta\\\sin\theta&\cos\theta\end{pmatrix}
$$
is a <rotation matrix>, while $\operatorname{diag}(1,-1)$ is a <reflection>. Both preserve <lengths> and <angles>. By contrast, the <shear mapping> with <matrix> $\begin{pmatrix}1&1\\0&1\end{pmatrix}$ sends $(0,1)$ to $(1,1)$ and changes its <Euclidean norm>, so it is not orthogonal.
Taking the <determinant> in $R^TR=I$ gives $(\det R)^2=1$. The determinant-one elements form the <special orthogonal group> $SO(n)$; determinant-minus-one elements reverse <orientation>. The distinction separates rotations from transformations involving a reflection.
The <Lie algebra> describes infinitesimal motion near the identity. Differentiating $R(t)^TR(t)=I$ at $R(0)=I$ gives $A^T+A=0$ for $A=R'(0)$. Thus the <tangent space> at the identity is the <vector space> of <skew-symmetric matrices>, of <dimension> $n(n-1)/2$.