Post · 3 min read· pp. 513–514

What Is an Orthogonal Matrix?

A real, square matrix QQ is orthogonal if QTQ=QQT=IQ^TQ = QQ^T = I (the identity matrix). Equivalently, Q−1=QTQ^{-1} = Q^T. The columns of an orthogonal matrix are orthonormal, that is, they have 2-norm (Euclidean length) 11 and are mutually orthogonal. The same is true of the rows.

Important examples of orthogonal matrices are rotations and reflectors. A 2×22\times 2 rotation matrix has the form

[cs−sc],c2+s2=1.\begin{bmatrix} c & s \\ -s& c \\ \end{bmatrix}, \quad c^2 + s^2 = 1.

For such a matrix, c=cos⁡θc = \cos \theta and s=sin⁡θs = \sin \theta for some θ\theta, and the multiplication y=Qxy = Qx for a 2×12\times 1 vector xx represents a rotation through an angle θ\theta radians. An n×nn\times n rotation matrix is formed by embedding the 2×22\times 2 matrix into the identity matrix of order nn.

A Householder reflector is a matrix of the form H=I−2uuT/(uTu)H = I - 2uu^T/(u^Tu), where uu is a nonzero nn-vector. It is orthogonal and symmetric. When applied to a vector it reflects the vector about the hyperplane orthogonal to vv. For n=2n = 2, such a matrix has the form

[css−c],c2+s2=1.\begin{bmatrix} c & s \\ s& -c \\ \end{bmatrix}, \quad c^2 + s^2 = 1.

Here is the 4×44\times 4 Householder reflector corresponding to v=[1,1,1,1]T/2v = [1,1,1,1]^T/2:

\frac{1}{2} \left[\begin{array}{@{\mskip2mu}rrrr@{\mskip2mu}} 1 & -1 & -1 & -1\\ -1 & 1 & -1 & -1\\ -1 & -1 & 1 & -1\\ -1 & -1 & -1 & 1\\ \end{array}\right].

This is 1/21/2 times a Hadamard matrix.

Various explicit formulas are known for orthogonal matrices. For example, the n×nn\times n matrices with (i,j)(i,j) elements

qij=22n+1sin⁡(2ijπ2n+1)q_{ij} = \displaystyle\frac{2}{\sqrt{2n+1}} \sin \left(\displaystyle\frac{2ij\pi}{2n+1}\right)

and

qij=2ncos⁡((i−1/2)(j−1/2)πn)q_{ij} = \sqrt{\displaystyle\frac{2}{n}}\cos \left(\displaystyle\frac{(i-1/2)(j-1/2)\pi}{n} \right)

are orthogonal. These and other orthogonal matrices, as well as diagonal scalings of orthogonal matrices, are constructed by the MATLAB function gallery('orthog',...).

Here are some properties of orthogonal matrices.

  • All the eigenvalues are on the unit circle, that is, they have modulus 11.
  • All the singular values are 11.
  • The 22-norm condition number is 11, so orthogonal matrices are perfectly conditioned.
  • Multiplication by an orthogonal matrix preserves Euclidean length: ∥Qx∥2=∥x∥2\|Qx\|_2 = \|x\|_2 for any vector xx.
  • The determinant of an orthogonal matrix is ±1\pm 1. A rotation has determinant 11 while a reflection has determinant −1-1.

Orthogonal matrices can be generated from skew-symmetric ones. If SS is skew-symmetric (S=−STS = -S^T) then exp⁡(S)\exp(S) (the matrix exponential) is orthogonal and the Cayley transform (I−S)(I+S)−1(I-S)(I+S)^{-1} is orthogonal as long as SS has no eigenvalue equal to −1-1.

Unitary matrices are complex square matrices QQ for which Q∗Q=QQ∗=IQ^*Q = QQ^* = I, where Q∗Q^* is the conjugate transpose of QQ. They have analogous properties to orthogonal matrices.

  • What Is a Hadamard Matrix? (2020)—forthcoming
  • What Is a Random Orthogonal Matrix? (2020)—forthcoming

This article is part of the “What Is” series, available from https://nhigham.com/category/what-is and in PDF form from the GitHub repository https://github.com/higham/what-is.