Skip to content

Orthogonal Matrix


Definition

A real n×nn\times n matrix QQ is orthogonal if

Q⊤Q=I,Q^{\top}Q=I,

where II is the n×nn\times n identity matrix. Equivalently, QQ is invertible with Q−1=Q⊤Q^{-1}=Q^{\top}, so also QQ⊤=IQQ^{\top}=I.


Interpretation

The (i,j)(i,j) entry of Q⊤QQ^{\top}Q is the inner product qi⋅qj\boldsymbol{q}_i\cdot\boldsymbol{q}_j of columns ii and jj of QQ. So Q⊤Q=IQ^{\top}Q=I says exactly that the columns form an orthonormal basis of Rn\mathbb{R}^n, and QQ⊤=IQQ^{\top}=I says the same of the rows. The name is traditional: the columns must be orthonormal, not merely orthogonal. The diagonal matrix diag⁡(2,1)\operatorname{diag}(2,1) has orthogonal columns but is not an orthogonal matrix.

Geometrically, x↦Qx\boldsymbol{x}\mapsto Q\boldsymbol{x} is a rigid motion that fixes the origin: it preserves lengths, angles and distances. In R2\mathbb{R}^2 every orthogonal matrix is a rotation or a reflection in a line through the origin.

Two panels: a rotation and a reflection each send the standard basis e1, e2 to orthonormal columns q1, q2 on the unit circle; the reflection's mirror line is drawn dashed.

Both panels start from e1,e2\boldsymbol{e}_1,\boldsymbol{e}_2 (grey); the images q1=Qe1\boldsymbol{q}_1=Q\boldsymbol{e}_1 (blue) and q2=Qe2\boldsymbol{q}_2=Q\boldsymbol{e}_2 (red) are the columns of QQ, and the shaded square is the image of the unit square. On the right QQ is the matrix P=12(111−1)P=\tfrac{1}{\sqrt{2}}\begin{pmatrix}1&1\\1&-1\end{pmatrix} from the Examples, which is SθS_\theta with θ=45∘\theta=45^\circ: it reflects in the line at 22.5∘22.5^\circ (orange) and has det⁡P=−1\det P=-1. On the left the sign of its second column is swapped, which gives the rotation R45∘=12(1−111)R_{45^\circ}=\tfrac{1}{\sqrt{2}}\begin{pmatrix}1&-1\\1&1\end{pmatrix} with determinant 11. In both cases the columns stay on the unit circle and at a right angle, so lengths and angles are preserved; only the orientation of the square differs, and that is what the sign of det⁡Q\det Q records.

Turn θ\theta and drag x\boldsymbol{x}: under RθR_\theta or SθS_\theta the unit circle maps onto itself and ∥Qx∥=∥x∥\|Q\boldsymbol{x}\|=\|\boldsymbol{x}\|, while det⁡Q=−1\det Q=-1 shows up as a mirrored F. Move the length kk of the second column away from 11: the columns stay orthogonal, but Q⊤Q≠IQ^{\top}Q\neq I, the circle becomes an ellipse and lengths change. Switch on Q⊤Q^{\top} to see that it undoes QQ exactly when QQ is orthogonal.

Orthogonal matrices make changes of basis cheap: if the new basis is orthonormal, its transformation matrix QQ is orthogonal and the inverse needed for new coordinates is just the transpose, y=Q⊤x\boldsymbol{y}=Q^{\top}\boldsymbol{x}. This is why they appear in central factorizations. A symmetric matrix can be diagonalized by an orthogonal matrix, A=PDP⊤A=PDP^{\top} with orthonormal eigenvectors as the columns of PP. In Week 7, the singular value decomposition A=UΣV⊤A=U\Sigma V^{\top} of an arbitrary matrix also uses orthogonal UU and VV.

A rectangular n×kn\times k matrix QQ with k<nk<n and orthonormal columns satisfies Q⊤Q=IkQ^{\top}Q=I_k but not QQ⊤=InQQ^{\top}=I_n; QQ⊤QQ^{\top} is then the orthogonal projection onto its column space. The word "orthogonal matrix" is reserved for the square case.


Key Results

  • QQ preserves inner products and lengths: (Qx)⋅(Qy)=x⊤Q⊤Qy=x⋅y(Q\boldsymbol{x})\cdot(Q\boldsymbol{y})=\boldsymbol{x}^{\top}Q^{\top}Q\boldsymbol{y}=\boldsymbol{x}\cdot\boldsymbol{y}, hence ∥Qx∥=∥x∥\|Q\boldsymbol{x}\|=\|\boldsymbol{x}\|. Conversely, a square matrix with ∥Qx∥=∥x∥\|Q\boldsymbol{x}\|=\|\boldsymbol{x}\| for all x\boldsymbol{x} is orthogonal.
  • det⁡Q=±1\det Q=\pm1, since (det⁡Q)2=det⁡(Q⊤Q)=det⁡I=1(\det Q)^2=\det(Q^{\top}Q)=\det I=1 by the product rule for the determinant. In R2\mathbb{R}^2 and R3\mathbb{R}^3, det⁡Q=1\det Q=1 gives a rotation and det⁡Q=−1\det Q=-1 includes a reflection. The converse fails: (1101)\begin{pmatrix}1&1\\0&1\end{pmatrix} has determinant 11 but is not orthogonal, since its second column has length 2\sqrt{2}.
  • Every (possibly complex) eigenvalue λ\lambda of QQ has ∣λ∣=1|\lambda|=1; the only possible real eigenvalues are 11 and −1-1.
  • Products, inverses and transposes of orthogonal matrices are orthogonal: (Q1Q2)⊤Q1Q2=Q2⊤Q2=I(Q_1Q_2)^{\top}Q_1Q_2=Q_2^{\top}Q_2=I. Sums generally are not: I+I=2II+I=2I is not orthogonal.
  • A linear system Qx=bQ\boldsymbol{x}=\boldsymbol{b} with QQ orthogonal is solved by x=Q⊤b\boldsymbol{x}=Q^{\top}\boldsymbol{b}, without elimination; equivalently, xi=qi⋅bx_i=\boldsymbol{q}_i\cdot\boldsymbol{b}.
  • Every permutation matrix is orthogonal.
  • Applying the Gram-Schmidt algorithm to any basis of Rn\mathbb{R}^n and placing the resulting vectors as columns produces an orthogonal matrix.

Examples

Rotations and reflections in R2\mathbb{R}^2. For an angle θ\theta,

Rθ=(cos⁡θ−sin⁡θsin⁡θcos⁡θ),Sθ=(cos⁡θsin⁡θsin⁡θ−cos⁡θ).\begin{aligned} R_\theta&=\begin{pmatrix}\cos\theta&-\sin\theta\\\sin\theta&\cos\theta\end{pmatrix},\\ S_\theta&=\begin{pmatrix}\cos\theta&\sin\theta\\\sin\theta&-\cos\theta\end{pmatrix}. \end{aligned}

Both have orthonormal columns because cos⁡2θ+sin⁡2θ=1\cos^2\theta+\sin^2\theta=1. RθR_\theta rotates by θ\theta and has det⁡Rθ=1\det R_\theta=1; SθS_\theta reflects in the line at angle θ/2\theta/2 and has det⁡Sθ=−1\det S_\theta=-1.

For example, Rπ/2=(0−110)R_{\pi/2}=\begin{pmatrix}0&-1\\1&0\end{pmatrix} maps (3,4)⊤(3,4)^{\top} to (−4,3)⊤(-4,3)^{\top}; both vectors have length 55, and their dot product −12+12=0-12+12=0 confirms the right angle.

Checking a 3×33\times3 matrix. Let

Q=13(12221−22−21).Q=\frac{1}{3}\begin{pmatrix}1&2&2\\2&1&-2\\2&-2&1\end{pmatrix}.

Each column has squared length 19(1+4+4)=1\tfrac{1}{9}(1+4+4)=1, and the columns are orthogonal, for instance 19(1⋅2+2⋅1+2⋅(−2))=0\tfrac{1}{9}(1\cdot2+2\cdot1+2\cdot(-2))=0; so Q⊤Q=IQ^{\top}Q=I and Q−1=Q⊤=QQ^{-1}=Q^{\top}=Q. Expanding the determinant gives det⁡Q=127(−27)=−1\det Q=\tfrac{1}{27}(-27)=-1. In fact Qu=−uQ\boldsymbol{u}=-\boldsymbol{u} for u=(1,−1,−1)⊤\boldsymbol{u}=(1,-1,-1)^{\top} and Qw=wQ\boldsymbol{w}=\boldsymbol{w} for every w⊥u\boldsymbol{w}\perp\boldsymbol{u}: QQ is the reflection in the plane orthogonal to u\boldsymbol{u}.

Diagonalizing a symmetric matrix. For A=(2112)A=\begin{pmatrix}2&1\\1&2\end{pmatrix}, the eigenvalues are 33 and 11 with unit eigenvectors 12(1,1)⊤\tfrac{1}{\sqrt{2}}(1,1)^{\top} and 12(1,−1)⊤\tfrac{1}{\sqrt{2}}(1,-1)^{\top}. With

P=12(111−1),P=\frac{1}{\sqrt{2}}\begin{pmatrix}1&1\\1&-1\end{pmatrix},

PP is orthogonal and A=PDP⊤A=PDP^{\top} with D=diag⁡(3,1)D=\operatorname{diag}(3,1): no matrix inversion is needed. Here det⁡P=−1\det P=-1; swapping the sign of one column gives a rotation instead.


Prerequisites



Sources

Aliases: orthogonal matrices, orthogonal transformation, orthonormal matrix Keywords: Q^T Q = I, Q^{-1} = Q^T, det Q = ±1, orthonormal columns, rotation matrix, reflection matrix, length-preserving, isometry Symbols: lambda, pi, real numbers, sigma, square root, theta

Last updated: 17 October 2026 21:53