Tutorials › Linear Algebra › Determinant and Orientation of Orthogonal Matrices

Orthogonal Matrices and Isometries · Tutorial 712 of 1000

Determinant and Orientation of Orthogonal Matrices

Learn why orthogonality forces the determinant to be \(1\) or \(-1\), and how its sign records an orientation-preserving or orientation-reversing transformation.

Intermediate 9 min read

What You'll Learn

  • Use determinant identities to prove that a real orthogonal matrix has determinant \(1\) or \(-1\).
  • Define the orientation of an ordered basis in \(\mathbb{R}^n\) by the sign of its basis matrix determinant.
  • Prove how an invertible matrix changes the orientation of every ordered basis.
  • Distinguish orientation-preserving orthogonal matrices from orientation-reversing ones.
  • Check orthogonality and determinant signs in exact matrix examples.
  • Recognize why orthogonality alone does not imply determinant \(1\).

Orthogonality Restricts the Determinant

An orthogonal matrix preserves inner products and lengths, but it may or may not preserve orientation. The determinant distinguishes these possibilities. In this tutorial, matrices and vectors are real, and an orthogonal matrix means a square matrix \(\mathbf{Q}\in\mathbb{R}^{n\times n}\) satisfying \(\mathbf{Q}^{\top}\mathbf{Q}=\mathbf{I}_n\). The central fact is that its determinant cannot have an arbitrary magnitude or sign: it must be exactly \(1\) or \(-1\).

We use the standard determinant identities \(\det(\mathbf{A}\mathbf{B})=\det(\mathbf{A})\det(\mathbf{B})\), \(\det(\mathbf{A}^{\top})=\det(\mathbf{A})\), and \(\det(\mathbf{I}_n)=1\). We also use the determinant criterion that a square matrix is invertible exactly when its determinant is nonzero. These identities apply to square matrices of the same size where a product is taken.

Theorem: If \(\mathbf{Q}\in\mathbb{R}^{n\times n}\) is orthogonal, then \(\det(\mathbf{Q})=1\) or \(\det(\mathbf{Q})=-1\). In particular, every real orthogonal matrix is invertible.

Proof. Since \(\mathbf{Q}^{\top}\mathbf{Q}=\mathbf{I}_n\), take determinants of both sides and use the determinant identities stated above:

$$ \det(\mathbf{Q}^{\top}\mathbf{Q}) =\det(\mathbf{Q}^{\top})\det(\mathbf{Q}) =\det(\mathbf{Q})^2 =\det(\mathbf{I}_n) =1. $$

Thus \((\det(\mathbf{Q})-1)(\det(\mathbf{Q})+1)=0\). Because the determinant is real, this implies \(\det(\mathbf{Q})=1\) or \(\det(\mathbf{Q})=-1\). Either value is nonzero, so the determinant criterion gives that \(\mathbf{Q}\) is invertible. \(\square\)

The argument gives a square of the determinant, not the determinant itself. That distinction is essential: both signs satisfy the equation \(\det(\mathbf{Q})^2=1\). The orthogonality equation rules out every other determinant, but it does not select between \(1\) and \(-1\).

Orientation of an Ordered Basis

Orientation is a property of an ordered basis. To define it in \(\mathbb{R}^n\), write an ordered basis as \(\mathcal{B}=(\mathbf{b}_1,\dots,\mathbf{b}_n)\) and form its basis matrix \(\mathbf{B}=[\mathbf{b}_1\ \cdots\ \mathbf{b}_n]\). Since the vectors are a basis, \(\det(\mathbf{B})\ne0\). We call \(\mathcal{B}\) positively oriented when \(\det(\mathbf{B})>0\), and negatively oriented when \(\det(\mathbf{B})<0\). The standard ordered basis \((\mathbf{e}_1,\dots,\mathbf{e}_n)\) is positively oriented because its basis matrix is \(\mathbf{I}_n\), whose determinant is \(1\).

Swapping two vectors in an ordered basis reverses its orientation: swapping two columns changes the sign of the determinant. This illustrates why orientation belongs to the ordering, not merely to the set of basis vectors. Applying a linear transformation to each vector in a basis also produces an ordered list, and its orientation can be compared with the original one.

Theorem: Let \(\mathbf{A}\in\mathbb{R}^{n\times n}\) be invertible, and let \(\mathcal{B}\) be any ordered basis of \(\mathbb{R}^n\). The ordered list \((\mathbf{A}\mathbf{b}_1,\dots,\mathbf{A}\mathbf{b}_n)\) is a basis. It has the same orientation as \(\mathcal{B}\) if \(\det(\mathbf{A})>0\), and the opposite orientation if \(\det(\mathbf{A})<0\).

Proof. Let \(\mathbf{B}\) be the basis matrix of \(\mathcal{B}\). The matrix whose columns are the image vectors \(\mathbf{A}\mathbf{b}_1,\dots,\mathbf{A}\mathbf{b}_n\) is \(\mathbf{A}\mathbf{B}\). Because \(\mathbf{A}\) and \(\mathbf{B}\) are invertible, their product is invertible, so its columns form a basis. Its determinant is

$$ \det(\mathbf{A}\mathbf{B})=\det(\mathbf{A})\det(\mathbf{B}). $$

Since \(\det(\mathbf{B})\ne0\), multiplying it by a positive number preserves its sign, while multiplying it by a negative number reverses its sign. Therefore the image basis has the same orientation as \(\mathcal{B}\) when \(\det(\mathbf{A})>0\), and the opposite orientation when \(\det(\mathbf{A})<0\). \(\square\)

This proof uses invertibility for an important reason: the image of a basis need not be a basis under a noninvertible transformation. For example, the zero matrix sends every basis vector to \(\mathbf{0}\). In the theorem, invertibility guarantees that \(\mathbf{A}\mathbf{B}\) is a basis matrix and that the image list has a well-defined orientation.

Definition: An invertible real matrix is orientation-preserving if its determinant is positive, and orientation-reversing if its determinant is negative. By the theorem, these terms describe how the matrix transforms every ordered basis.

For an orthogonal matrix, the determinant theorem sharpens this distinction. The positive case has determinant exactly \(1\); the negative case has determinant exactly \(-1\). Thus an orthogonal matrix preserves orientation precisely when its determinant is \(1\), and reverses orientation precisely when its determinant is \(-1\).

Worked Examples: Both Determinant Signs Occur

Worked Example: An Orthogonal Matrix with Determinant \(1\)

Consider the matrix \(\mathbf{Q}=\begin{bmatrix}0&-1\\1&0\end{bmatrix}\). Check that it is orthogonal, find its determinant, and describe its effect on the standard basis orientation.

First compute the transpose and multiply:

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

So \(\mathbf{Q}\) is orthogonal. Its determinant is \(0\cdot0-(-1)\cdot1=1\). The standard basis vectors are sent to the columns of \(\mathbf{Q}\): \(\mathbf{e}_1\mapsto(0,1)\) and \(\mathbf{e}_2\mapsto(-1,0)\). The basis matrix of these images is \(\mathbf{Q}\), with positive determinant \(1\), so the image basis has the same orientation as the standard basis.

Check: The product \(\mathbf{Q}^{\top}\mathbf{Q}=\mathbf{I}_2\) verifies orthogonality, and the direct determinant calculation gives the positive sign predicted for an orientation-preserving orthogonal matrix.

Worked Example: An Orthogonal Matrix with Determinant \(-1\)

Consider \(\mathbf{R}=\begin{bmatrix}1&0\\0&-1\end{bmatrix}\). Verify orthogonality and determine whether it preserves or reverses orientation.

The matrix is its own transpose, so

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

Its determinant is \(1\cdot(-1)-0\cdot0=-1\). It sends \(\mathbf{e}_1\) to \((1,0)\) and \(\mathbf{e}_2\) to \((0,-1)\), so the image basis matrix is \(\mathbf{R}\) itself and has negative determinant. Therefore \(\mathbf{R}\) reverses the orientation of the standard basis. In coordinates, it sends \((x,y)\) to \((x,-y)\).

Check: The squared determinant is \((-1)^2=1\), as required by the determinant theorem, while its negative sign establishes orientation reversal.

Worked Example: Reversing Orientation in \(\mathbb{R}^3\)

Let \(\mathbf{S}=\begin{bmatrix}0&1&0\\1&0&0\\0&0&1\end{bmatrix}\), which swaps the first two coordinates. Check orthogonality and determine its orientation effect.

The columns of \(\mathbf{S}\) are \(\mathbf{e}_2,\mathbf{e}_1,\mathbf{e}_3\). They are mutually perpendicular unit vectors, and multiplying gives the identity:

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

Expanding the determinant along the third row gives \(\det(\mathbf{S})=1\cdot\det\begin{bmatrix}0&1\\1&0\end{bmatrix}=0\cdot0-1\cdot1=-1\). Thus the matrix is orthogonal and orientation-reversing. Its action changes the order of the first two standard basis vectors, and a single swap reverses orientation.

Check: We have \(\det(\mathbf{S})^2=(-1)^2=1\), in agreement with \(\mathbf{S}^{\top}\mathbf{S}=\mathbf{I}_3\); the sign is negative, so the standard basis orientation is reversed.

Orientation for a Basis That Is Not Standard

The determinant sign does not depend on starting with the standard basis. For any ordered basis, the orientation theorem applies to its basis matrix and the images of its vectors. The following calculation shows this explicitly for an orientation-preserving or reversing test on a nonstandard basis.

Worked Example: Tracking the Image of a Nonstandard Basis

Use \(\mathbf{R}=\begin{bmatrix}1&0\\0&-1\end{bmatrix}\) and the ordered basis \(\mathcal{B}=((1,1),(0,1))\). Determine the orientation of \(\mathcal{B}\) and of its image under \(\mathbf{R}\).

The basis matrix and its determinant are

$$ \mathbf{B}=\begin{bmatrix}1&0\\1&1\end{bmatrix}, \qquad \det(\mathbf{B})=1\cdot1-0\cdot1=1. $$

Thus \(\mathcal{B}\) is positively oriented. The two image vectors are \(\mathbf{R}(1,1)=(1,-1)\) and \(\mathbf{R}(0,1)=(0,-1)\), so their matrix is

$$ \mathbf{R}\mathbf{B} =\begin{bmatrix}1&0\\0&-1\end{bmatrix} \begin{bmatrix}1&0\\1&1\end{bmatrix} =\begin{bmatrix}1&0\\-1&-1\end{bmatrix}. $$

The determinant of this image matrix is \(1\cdot(-1)-0\cdot(-1)=-1\). The image vectors are therefore a negatively oriented basis. This agrees with the product rule: \(\det(\mathbf{R}\mathbf{B})=\det(\mathbf{R})\det(\mathbf{B})=(-1)(1)=-1\).

Check: The image determinant is nonzero, so the image vectors really form a basis; its negative sign confirms that the orientation has reversed.

Common Pitfall: Orthogonal Does Not Mean Determinant \(1\)

A frequent error is to start from \(\mathbf{Q}^{\top}\mathbf{Q}=\mathbf{I}_n\), take determinants, obtain \(\det(\mathbf{Q})^2=1\), and conclude \(\det(\mathbf{Q})=1\). That conclusion drops one of the two possible real solutions. The concrete calculation with \(\mathbf{R}=\begin{bmatrix}1&0\\0&-1\end{bmatrix}\) disproves it: \(\mathbf{R}^{\top}\mathbf{R}=\mathbf{I}_2\), yet \(\det(\mathbf{R})=-1\).

The correction is to factor the equation rather than take only its positive square root:

$$ \det(\mathbf{Q})^2=1 \quad\Longleftrightarrow\quad (\det(\mathbf{Q})-1)(\det(\mathbf{Q})+1)=0 \quad\Longleftrightarrow\quad \det(\mathbf{Q})\in\{1,-1\}. $$

Another useful distinction is that orientation is not a claim that each individual vector points in a particular direction. It is a property of the ordered basis as a whole. An orthogonal transformation preserves lengths and angles, while the determinant sign records whether the handedness of an ordered basis is maintained or reversed.

The sign also behaves consistently under composition. For two orthogonal matrices \(\mathbf{Q}_1,\mathbf{Q}_2\), the product is orthogonal, and \(\det(\mathbf{Q}_1\mathbf{Q}_2)=\det(\mathbf{Q}_1)\det(\mathbf{Q}_2)\). If both reverse orientation, their product has determinant \((-1)(-1)=1\) and preserves orientation. If exactly one reverses orientation, the product has determinant \(-1\) and reverses orientation. This follows directly from the determinant product identity and the two possible signs.

Check Your Understanding

Use the determinant sign and, where appropriate, verify orthogonality by multiplying \(\mathbf{Q}^{\top}\mathbf{Q}\).

  1. Prove that if \(\mathbf{Q}\in\mathbb{R}^{n\times n}\) satisfies \(\mathbf{Q}^{\top}\mathbf{Q}=\mathbf{I}_n\), then its determinant is nonzero.
  2. For \(\mathbf{Q}=\begin{bmatrix}0&1\\1&0\end{bmatrix}\), calculate \(\mathbf{Q}^{\top}\mathbf{Q}\) and \(\det(\mathbf{Q})\). Does it preserve orientation?
  3. An invertible matrix \(\mathbf{A}\) has determinant \(-3\). What happens to the orientation of every ordered basis under \(\mathbf{A}\)?
  4. If two orthogonal matrices both have determinant \(-1\), what is the determinant sign of their product, and what does it imply about orientation?
  5. Explain why the image of a basis under a noninvertible matrix cannot automatically be called a basis.

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