Tutorials › Linear Algebra › Equivalent Tests for Orthogonal Matrices

Orthogonal Matrices and Isometries · Tutorial 707 of 1000

Equivalent Tests for Orthogonal Matrices

Learn why each standard test for a real square orthogonal matrix guarantees all the others, and how to check the conditions exactly.

Intermediate 10 min read

What You'll Learn

  • Define orthonormal rows and columns for a real square matrix.
  • Relate column inner products to the entries of the transpose product.
  • Prove that orthonormal columns force a square matrix to be invertible.
  • Show that orthonormal rows, both transpose-product identities, and the inverse test are equivalent.
  • Verify orthogonality by exact matrix multiplication and identify a common false test.

Four Ways to Recognize an Orthogonal Matrix

For a square real matrix, several natural checks express the same underlying condition. One can check the columns, check the rows, multiply by the transpose on either side, or compare the transpose with the inverse. The equivalence is useful because the most convenient calculation depends on how a matrix is presented. The square-matrix hypothesis matters: the two matrix products have different dimensions for a rectangular matrix, and one identity alone need not imply the other.

Throughout, let \(\mathbf{Q}\in\mathbb{R}^{n\times n}\), where \(n\in\mathbb{N}\). The columns and rows are vectors in \(\mathbb{R}^n\). A list of vectors is orthonormal if each vector has length \(1\) and distinct vectors have dot product \(0\). Equivalently, for vectors \(\mathbf{u}_1,\dots,\mathbf{u}_n\), orthonormality means \(\mathbf{u}_i\cdot\mathbf{u}_j=1\) when \(i=j\), and \(0\) when \(i\ne j\).

Definition: A real square matrix \(\mathbf{Q}\) is orthogonal if its columns are an orthonormal list. In this tutorial, we prove that this condition is equivalent to each of the following: its rows are orthonormal; \(\mathbf{Q}^{\top}\mathbf{Q}=\mathbf{I}_n\) and \(\mathbf{Q}\mathbf{Q}^{\top}=\mathbf{I}_n\); and \(\mathbf{Q}\) is invertible with \(\mathbf{Q}^{-1}=\mathbf{Q}^{\top}\).

What the Matrix Products Record

Write the columns of \(\mathbf{Q}\) as \(\mathbf{q}_1,\dots,\mathbf{q}_n\). The entry in row \(i\), column \(j\) of \(\mathbf{Q}^{\top}\mathbf{Q}\) is the dot product \(\mathbf{q}_i\cdot\mathbf{q}_j\). Thus the diagonal entries record the squared lengths of the columns, and the off-diagonal entries record their pairwise dot products. Likewise, the entry in row \(i\), column \(j\) of \(\mathbf{Q}\mathbf{Q}^{\top}\) is the dot product of rows \(i\) and \(j\) of \(\mathbf{Q}\).

$$ (\mathbf{Q}^{\top}\mathbf{Q})_{ij} =\sum_{k=1}^{n}q_{ki}q_{kj} =\mathbf{q}_i\cdot\mathbf{q}_j, \qquad (\mathbf{Q}\mathbf{Q}^{\top})_{ij} =\sum_{k=1}^{n}q_{ik}q_{jk}. $$

These entry formulas prove the direct tests: the columns are orthonormal exactly when \(\mathbf{Q}^{\top}\mathbf{Q}=\mathbf{I}_n\), and the rows are orthonormal exactly when \(\mathbf{Q}\mathbf{Q}^{\top}=\mathbf{I}_n\). The remaining point is to show why, for a square matrix, either one-sided identity forces the other one as well.

Worked Example: Checking Both Products

Consider the real square matrix \(\mathbf{Q}=\begin{bmatrix}\tfrac35&-\tfrac45\\[2pt]\tfrac45&\tfrac35\end{bmatrix}\). Its transpose is \(\mathbf{Q}^{\top}=\begin{bmatrix}\tfrac35&\tfrac45\\[2pt]-\tfrac45&\tfrac35\end{bmatrix}\). Compute both products to test orthonormality.

For the columns, the diagonal dot products are \(\tfrac{9}{25}+\tfrac{16}{25}=1\). Their off-diagonal dot product is \(-\tfrac{12}{25}+\tfrac{12}{25}=0\). Multiplying gives

$$ \mathbf{Q}^{\top}\mathbf{Q} = \begin{bmatrix} \tfrac35&\tfrac45\\[2pt]-\tfrac45&\tfrac35 \end{bmatrix} \begin{bmatrix} \tfrac35&-\tfrac45\\[2pt]\tfrac45&\tfrac35 \end{bmatrix} = \begin{bmatrix} \tfrac{9}{25}+\tfrac{16}{25}&-\tfrac{12}{25}+\tfrac{12}{25}\\[2pt] -\tfrac{12}{25}+\tfrac{12}{25}&\tfrac{16}{25}+\tfrac{9}{25} \end{bmatrix} = \mathbf{I}_2. $$

For the rows, their squared lengths are also \(\tfrac{9}{25}+\tfrac{16}{25}=1\), and their dot product is \(\tfrac{12}{25}-\tfrac{12}{25}=0\). Direct multiplication confirms the other identity:

$$ \mathbf{Q}\mathbf{Q}^{\top} = \begin{bmatrix} \tfrac{9}{25}+\tfrac{16}{25}&\tfrac{12}{25}-\tfrac{12}{25}\\[2pt] \tfrac{12}{25}-\tfrac{12}{25}&\tfrac{16}{25}+\tfrac{9}{25} \end{bmatrix} = \mathbf{I}_2. $$

Therefore \(\mathbf{Q}^{\top}\) is the inverse of \(\mathbf{Q}\). As a check, the two displayed products are precisely \(\mathbf{Q}^{\top}\mathbf{Q}\) and \(\mathbf{Q}\mathbf{Q}^{\top}\), and each equals the identity.

Why One Identity Is Enough for a Square Matrix

We use a basic consequence of row reduction. If the columns of an \(n\times n\) matrix are independent, then each column is a pivot column. There are \(n\) pivots in \(n\) rows, so the reduced row echelon form is \(\mathbf{I}_n\). In particular, row reduction shows that \(\mathbf{A}\mathbf{x}=\mathbf{b}\) has a solution for every \(\mathbf{b}\in\mathbb{R}^n\). This argument is specific to square matrices.

Theorem (Equivalent tests for orthogonal matrices): For \(\mathbf{Q}\in\mathbb{R}^{n\times n}\), the following are equivalent: (1) the columns of \(\mathbf{Q}\) are orthonormal; (2) the rows of \(\mathbf{Q}\) are orthonormal; (3) \(\mathbf{Q}^{\top}\mathbf{Q}=\mathbf{I}_n\) and \(\mathbf{Q}\mathbf{Q}^{\top}=\mathbf{I}_n\); (4) \(\mathbf{Q}\) is invertible and \(\mathbf{Q}^{-1}=\mathbf{Q}^{\top}\).

Proof. By the entry formulas, condition (1) is equivalent to \(\mathbf{Q}^{\top}\mathbf{Q}=\mathbf{I}_n\), and condition (2) is equivalent to \(\mathbf{Q}\mathbf{Q}^{\top}=\mathbf{I}_n\). It remains to show that either one-sided identity implies both.

Suppose first that \(\mathbf{Q}^{\top}\mathbf{Q}=\mathbf{I}_n\). If \(\mathbf{Q}\mathbf{x}=\mathbf{0}\), then

$$ \mathbf{x} =\mathbf{I}_n\mathbf{x} =(\mathbf{Q}^{\top}\mathbf{Q})\mathbf{x} =\mathbf{Q}^{\top}(\mathbf{Q}\mathbf{x}) =\mathbf{0}. $$

So the columns of \(\mathbf{Q}\) are independent. By the row-reduction fact above, \(\mathbf{Q}\mathbf{x}=\mathbf{b}\) has a unique solution for every \(\mathbf{b}\in\mathbb{R}^n\); hence \(\mathbf{Q}\) is invertible. Since \(\mathbf{Q}^{\top}\mathbf{Q}=\mathbf{I}_n\), \(\mathbf{Q}^{\top}\) is a left inverse. The inverse of an invertible matrix is its unique left inverse: if \(\mathbf{L}\mathbf{Q}=\mathbf{I}_n\), then \(\mathbf{L}=\mathbf{L}(\mathbf{Q}\mathbf{Q}^{-1})=(\mathbf{L}\mathbf{Q})\mathbf{Q}^{-1}=\mathbf{Q}^{-1}\). Thus \(\mathbf{Q}^{\top}=\mathbf{Q}^{-1}\), and consequently \(\mathbf{Q}\mathbf{Q}^{\top}=\mathbf{I}_n\).

Now suppose instead that \(\mathbf{Q}\mathbf{Q}^{\top}=\mathbf{I}_n\). Applying the same argument to the square matrix \(\mathbf{Q}^{\top}\) gives \((\mathbf{Q}^{\top})^{-1}=\mathbf{Q}\). Taking inverses yields \(\mathbf{Q}^{-1}=\mathbf{Q}^{\top}\), and so \(\mathbf{Q}^{\top}\mathbf{Q}=\mathbf{I}_n\). This proves that either one-sided identity implies condition (3), and also establishes condition (4). Finally, if condition (4) holds, the definition of an inverse gives both \(\mathbf{Q}^{-1}\mathbf{Q}=\mathbf{I}_n\) and \(\mathbf{Q}\mathbf{Q}^{-1}=\mathbf{I}_n\). Substituting \(\mathbf{Q}^{\top}\) for \(\mathbf{Q}^{-1}\) gives condition (3). All four conditions are therefore equivalent. \(\square\)

Using the Row Test and the Inverse Test

The equivalence theorem lets us choose the calculation that is simplest. If the rows have a visibly simple form, check their dot products or compute \(\mathbf{Q}\mathbf{Q}^{\top}\). If the columns are given in a problem, compute \(\mathbf{Q}^{\top}\mathbf{Q}\). If an inverse is already known, verify that it equals the transpose. In every case, the matrix must be square for the theorem to connect the tests.

Worked Example: A Signed Permutation Matrix

Let \(\mathbf{Q}=\begin{bmatrix}0&1&0\\0&0&-1\\1&0&0\end{bmatrix}\). Its rows are \((0,1,0)\), \((0,0,-1)\), and \((1,0,0)\). Each has squared length \(1\), and each pair has dot product \(0\). Thus the rows are orthonormal.

Here is the corresponding row-product check, with each entry computed from a row dot product:

$$ \mathbf{Q}\mathbf{Q}^{\top} = \begin{bmatrix} 1&0&0\\ 0&1&0\\ 0&0&1 \end{bmatrix} =\mathbf{I}_3. $$

The theorem now guarantees that the columns are orthonormal too. Directly, the columns are \((0,0,1)\), \((1,0,0)\), and \((0,-1,0)\), which each have squared length \(1\) and pairwise dot product \(0\). Computing the transpose product checks the conclusion:

$$ \mathbf{Q}^{\top}\mathbf{Q} = \begin{bmatrix} 0&0&1\\ 1&0&0\\ 0&-1&0 \end{bmatrix} \begin{bmatrix} 0&1&0\\ 0&0&-1\\ 1&0&0 \end{bmatrix} = \begin{bmatrix} 1&0&0\\ 0&1&0\\ 0&0&1 \end{bmatrix} =\mathbf{I}_3. $$

Therefore \(\mathbf{Q}^{-1}=\mathbf{Q}^{\top}\). Multiplying back in either order gives the two identity matrices displayed above, verifying the inverse claim.

Common Pitfall: Unit Columns Need Not Be Orthonormal

Checking only that every column has length \(1\) is not enough. For example, consider \(\mathbf{A}=\begin{bmatrix}1&1\\0&0\end{bmatrix}\). Both columns have length \(1\), but their dot product is \(1\), not \(0\). The incorrect calculation “both columns are unit vectors, so the matrix is orthogonal” omits the pairwise orthogonality condition.

$$ \mathbf{A}^{\top}\mathbf{A} = \begin{bmatrix}1&0\\1&0\end{bmatrix} \begin{bmatrix}1&1\\0&0\end{bmatrix} = \begin{bmatrix}1&1\\1&1\end{bmatrix} \ne\mathbf{I}_2. $$

The correction is to check all column dot products, or equivalently to compute the entire matrix \(\mathbf{A}^{\top}\mathbf{A}\). Its off-diagonal entries here are \(1\), revealing that the columns are not orthogonal. The rows fail the test as well: the first row has squared length \(2\), and the second row has squared length \(0\). Thus none of the equivalent orthogonal-matrix conditions holds.

There is also a shape issue to keep in view. For a rectangular matrix, \(\mathbf{Q}^{\top}\mathbf{Q}\) and \(\mathbf{Q}\mathbf{Q}^{\top}\) have different sizes, and a one-sided identity is not the square-matrix equivalence proved here. Check the dimensions and the stated hypotheses before using the theorem.

Check Your Understanding

For each question, use the definitions and the equivalent tests, and show enough work to verify your conclusion.

  1. For a real square matrix \(\mathbf{Q}\), what does the \((i,j)\) entry of \(\mathbf{Q}^{\top}\mathbf{Q}\) measure?
  2. Suppose \(\mathbf{Q}^{\top}\mathbf{Q}=\mathbf{I}_n\). Explain why \(\mathbf{Q}\mathbf{x}=\mathbf{0}\) has only the zero solution.
  3. Why does the square-matrix hypothesis matter in the proof that \(\mathbf{Q}^{\top}\mathbf{Q}=\mathbf{I}_n\) implies \(\mathbf{Q}\mathbf{Q}^{\top}=\mathbf{I}_n\)?
  4. For \(\mathbf{B}=\begin{bmatrix}0&-1\\1&0\end{bmatrix}\), compute \(\mathbf{B}^{\top}\mathbf{B}\) and \(\mathbf{B}\mathbf{B}^{\top}\), then state \(\mathbf{B}^{-1}\).
  5. Give a concrete reason that having unit columns alone does not establish that a square matrix is orthogonal.

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon