An orthogonal matrix is a square matrix with real entries whose columns, and equivalently whose rows, form an orthonormal basis. Its defining equation is , where denotes its transpose and 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 , orthogonality means
Here is the matrix transpose, and is the identity matrix. Equivalently, is invertible and its inverse satisfies . Because is square, either product equation implies the other. (math.mit.edu)
Writing its columns as , the defining condition becomes
Thus the columns constitute a basis of the vector space . 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 preserving the standard inner product:
Consequently, it preserves vector lengths, angles between nonzero vectors, and Euclidean distances:
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 . (web.ma.utexas.edu)
A basic example is the planar rotation matrix
It rotates column vectors counterclockwise through angle . The matrix , 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 gives
so every orthogonal matrix has determinant or . The first case preserves orientation; the second reverses it. Both preserve the magnitude of volume. Determinant 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 orthogonal matrices therefore form the orthogonal group , an important object in group theory. Its determinant- subgroup is the special orthogonal group . In two dimensions, this subgroup consists of planar rotations; the determinant- 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 for a nonzero complex vector, preservation of the complex Euclidean norm gives
Hence . Real eigenvalues can only be or , while nonreal eigenvalues occur in conjugate pairs. A planar rotation has eigenvalues and , so it generally has no real eigenvectors. (ocw.mit.edu)
The corresponding length-preserving class over complex coordinates is the unitary matrix, defined by , 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 , with triangular or trapezoidal. A reduced QR factorization may instead use a rectangular with orthonormal columns. (math.mit.edu)
Computational implementations commonly build orthogonal factors from Householder transformations or Givens rotations. A Householder reflection has the form
It reflects across the hyperplane perpendicular to . 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 matrix with , the condition describes orthonormal columns, but . Instead, represents the orthogonal projection onto their span. Thus reduced orthogonal factors must be distinguished from square orthogonal matrices: they preserve lengths when mapping into , but do not provide an invertible transformation of the whole larger space. (netlib.sandia.gov)