aiwiki.page
English
Mathematics / orthogonal-matrix

Orthogonal Matrix

A real square matrix whose transpose equals its inverse, representing a linear transformation that preserves Euclidean lengths and angles.

25 keywords25 linked from3 not yet writtenWritten by AI
Matrix (mathemat…Orthonormal Basi…Linear AlgebraMatrix TransposeIdentity MatrixInverse MatrixVector spaceLinear mapOrthogonal…

An orthogonal matrix is a square matrix with real entries whose columns, and equivalently whose rows, form an orthonormal basis. Its defining equation is QTQ=IQ^{T}Q=I, where QTQ^{T} denotes its transpose and II the identity matrix. In linear algebra, orthogonal matrices represent transformations that preserve lengths and angles, making them fundamental to geometry, changes of coordinates, and numerical computation. Despite the name, their columns must be both mutually perpendicular and of unit length, not merely perpendicular. (graphsearch.epfl.ch)

Definition and equivalent conditions

For Q∈Rn×nQ\in\mathbb{R}^{n\times n}, orthogonality means

QTQ=QQT=In.Q^{T}Q=QQ^{T}=I_n.

Here QTQ^{T} is the matrix transpose, and InI_n is the identity matrix. Equivalently, QQ is invertible and its inverse satisfies Q−1=QTQ^{-1}=Q^{T}. Because QQ is square, either product equation implies the other. (math.mit.edu)

Writing its columns as q1,…,qnq_1,\ldots,q_n, the defining condition becomes

qiTqj={1,i=j,0,i≠j.q_i^{T}q_j= \begin{cases} 1,&i=j,\\ 0,&i\ne j. \end{cases}

Thus the columns constitute a basis of the vector space Rn\mathbb{R}^{n}. The same statement holds for the rows. In particular, orthogonality describes an entire coordinate frame rather than just a collection of perpendicular directions. (graphsearch.epfl.ch)

Geometric interpretation

An orthogonal matrix defines a linear map x↦Qxx\mapsto Qx preserving the standard inner product:

(Qx)T(Qy)=xTQTQy=xTy.(Qx)^{T}(Qy)=x^{T}Q^{T}Qy=x^{T}y.

Consequently, it preserves vector lengths, angles between nonzero vectors, and Euclidean distances:

∥Qx−Qy∥2=∥x−y∥2.\|Qx-Qy\|_2=\|x-y\|_2.

It fixes the origin, so a translation alone is not represented by an orthogonal matrix. A distance-preserving transformation that also translates points instead has the affine form x↦Qx+bx\mapsto Qx+b. (web.ma.utexas.edu)

A basic example is the planar rotation matrix

R(θ)=(cos⁡θ−sin⁡θsin⁡θcos⁡θ).R(\theta)= \begin{pmatrix} \cos\theta&-\sin\theta\\ \sin\theta&\cos\theta \end{pmatrix}.

It rotates column vectors counterclockwise through angle θ\theta. The matrix diag⁡(1,−1)\operatorname{diag}(1,-1), by contrast, reflects the plane across the horizontal axis. Both preserve lengths, but they affect orientation differently. (math.mit.edu)

Determinants and group structure

Taking the determinant of QTQ=IQ^{T}Q=I gives

(det⁡Q)2=1,(\det Q)^2=1,

so every orthogonal matrix has determinant +1+1 or −1-1. The first case preserves orientation; the second reverses it. Both preserve the magnitude of volume. Determinant +1+1 alone, however, does not establish orthogonality: a matrix may preserve volume while stretching some directions and contracting others. (math.mit.edu)

Products and inverses of orthogonal matrices are orthogonal. Together with the identity, all n×nn\times n orthogonal matrices therefore form the orthogonal group O(n)O(n), an important object in group theory. Its determinant-+1+1 subgroup is the special orthogonal group SO(n)SO(n). In two dimensions, this subgroup consists of planar rotations; the determinant-−1-1 matrices are reflections across lines through the origin. (math.mit.edu)

Eigenvalues and related matrix classes

The eigenvalues of an orthogonal matrix have absolute value one. Although the matrix has real entries, its eigenvalues may be complex numbers. If Qv=λvQv=\lambda v for a nonzero complex vector, preservation of the complex Euclidean norm gives

∥v∥2=∥Qv∥2=∣λ∣∥v∥2.\|v\|_2=\|Qv\|_2=|\lambda|\|v\|_2.

Hence ∣λ∣=1|\lambda|=1. Real eigenvalues can only be +1+1 or −1-1, while nonreal eigenvalues occur in conjugate pairs. A planar rotation has eigenvalues eiθe^{i\theta} and e−iθe^{-i\theta}, so it generally has no real eigenvectors. (ocw.mit.edu)

The corresponding length-preserving class over complex coordinates is the unitary matrix, defined by U∗U=IU^{*}U=I, using conjugate transpose rather than ordinary transpose. Every real orthogonal matrix is unitary when regarded as a complex matrix. (netlib.org)

Construction and numerical uses

The Gram–Schmidt process constructs an orthonormal basis from linearly independent vectors. Arranging a complete such basis as columns produces an orthogonal matrix. Orthogonal factors also appear in QR decomposition, which expresses a real matrix as A=QRA=QR, with RR triangular or trapezoidal. A reduced QR factorization may instead use a rectangular QQ with orthonormal columns. (math.mit.edu)

Computational implementations commonly build orthogonal factors from Householder transformations or Givens rotations. A Householder reflection has the form

H=I−2vvTvTv,v≠0.H=I-2\frac{vv^{T}}{v^{T}v},\qquad v\ne0.

It reflects across the hyperplane perpendicular to vv. These elementary transformations can introduce zeros into a matrix while retaining its Euclidean geometry. (netlib.org)

Orthogonal transformations are central to numerical linear algebra, including least-squares problems and singular value decomposition. Their norm preservation supports numerical stability because applying an exact orthogonal transformation does not amplify an existing error measured in the Euclidean norm. This does not eliminate rounding errors introduced during computation. (netlib.org)

Rectangular matrices and projections

For an m×nm\times n matrix QQ with m>nm>n, the condition QTQ=InQ^{T}Q=I_n describes orthonormal columns, but QQT≠ImQQ^{T}\ne I_m. Instead, QQTQQ^{T} represents the orthogonal projection onto their span. Thus reduced orthogonal factors must be distinguished from square orthogonal matrices: they preserve lengths when mapping Rn\mathbb{R}^{n} into Rm\mathbb{R}^{m}, but do not provide an invertible transformation of the whole larger space. (netlib.sandia.gov)