Linear Algebra • Inner Product Spaces & Orthogonality

Orthogonal Matrices

Special matrices that preserve lengths and angles, powering everything from 3-D rotations to data compression.

Linear Algebra emblem with a matrix grid, a variable, and three-dimensional axes.
Inside this lesson 10 sections 5 questions 8 figures

SECTION 1

Historical Context & Motivation

Have you ever rotated an image on your phone without it looking stretched or squished? Behind the scenes, mathematics keeps everything the right size and shape. The tool responsible is called an orthogonal matrix. For centuries, mathematicians searched for a clean way to describe rotations, reflections, and other transformations that don't distort objects. Orthogonal matrices turned out to be exactly the right idea.

1770 • Euler's Rotation Theorem

Leonhard Euler showed that every rotation of a rigid body in three dimensions can be described by a single axis and angle, laying the groundwork for rotation matrices.

1827 • Cauchy Formalizes Orthogonality

Augustin-Louis Cauchy introduced the formal idea of orthogonal substitutions—linear transformations that preserve the sum of squares of coordinates.

1878 • Frobenius & the Orthogonal Group

Ferdinand Georg Frobenius studied the collection of all orthogonal matrices as a mathematical group, opening the door to modern symmetry theory.

1936 • Householder Reflections

Alston Householder developed reflection-based orthogonal matrices that became essential algorithms in computer science for solving systems of equations.

2000s • Modern Applications

Orthogonal matrices are now central to 3-D graphics, robotics, signal processing, machine learning, and data compression techniques like Principal Component Analysis (PCA).

The big question these mathematicians were chasing: How do we describe transformations that change direction without changing size? Orthogonal matrices provide the answer.

SECTION 2

Core Principles & Definitions

Before we dive in, let's set up the key vocabulary. A matrix is a rectangular grid of numbers. A square matrix has the same number of rows and columns. The transpose of a matrix, written AT, is the matrix you get when you flip it over its main diagonal—rows become columns and columns become rows. With those ideas in mind, here are the core principles of orthogonal matrices.

1

Defining Property

A square matrix Q is orthogonal when its transpose equals its inverse: QTQ = I (the identity matrix). This means Q−1 = QT.
2

Orthonormal Columns

The columns of an orthogonal matrix are orthonormal—each column has length 1, and every pair of different columns is perpendicular (their dot product is 0).
3

Length Preservation

Multiplying any vector by an orthogonal matrix keeps the vector's length the same. If ‖v‖ = 5 before, then ‖Qv‖ = 5 after.
4

Determinant Is ±1

The determinant of an orthogonal matrix is always +1 (a pure rotation) or −1 (a reflection, possibly combined with a rotation).
✦

KEY TAKEAWAY

Think of an orthogonal matrix like a rigid picture frame. You can rotate it or flip it over, but you can't stretch, squish, or skew the picture inside. Everything stays the same size and shape. That's the essence of orthogonality: transformation without distortion.

SECTION 3

Visual Explanation

The best way to understand an orthogonal matrix is to see it in action. The diagram below shows a unit square (a 1 × 1 square) sitting on a coordinate plane. We then multiply every corner of that square by an orthogonal rotation matrix. Notice how the shape rotates but keeps its exact size and proportions.

Orthogonal Rotation: Unit Square → Rotated SquareOriginal Squarexy(0,0)(1,0)(1,1)(0,1)Q × vRotated Square (45°)xy(0,0.71)(0.71,1.41)(1.41,0.71)(0.71,0)
The violet square on the left is the original unit square. After multiplying each corner by a 45° rotation matrix (an orthogonal matrix), the square becomes the cyan diamond on the right. Notice that every side is still the same length and every angle is still 90°.

This is the key visual idea: an orthogonal matrix acts like spinning or flipping a piece of paper on your desk. The paper moves, but it doesn't change size or shape. Any matrix that stretches, shears, or squashes is not orthogonal.

SECTION 4

Mathematical Framework

Let's look at the equations that define orthogonal matrices. Don't worry—we'll unpack every symbol.

DEFINING EQUATION

QTQ=QQT=IQᵀQ = QQᵀ = I

Q is the orthogonal matrix. Qᵀ is its transpose (flip rows ↔ columns). I is the identity matrix (1s on the diagonal, 0s everywhere else). This equation says that the transpose of Q acts like the inverse of Q.

LENGTH PRESERVATION

‖Qv‖=‖v‖foreveryvectorv‖Qv‖ = ‖v‖ for every vector v

The double bars ‖ · ‖ mean "length" (or norm). This tells us that multiplying any vector v by Q never changes the vector's length.

2 × 2 ROTATION MATRIX

Q=[cosθ−sinθ][sinθcosθ]Q = [ cos θ −sin θ ] [ sin θ cos θ ]

This is the most common 2 × 2 orthogonal matrix. It rotates every point in the plane by angle θ counter-clockwise around the origin. Its determinant is +1.

2 × 2 REFLECTION MATRIX

Q=[cos2θsin2θ][sin2θ−cos2θ]Q = [ cos 2θ sin 2θ ] [ sin 2θ −cos 2θ ]

This orthogonal matrix reflects every point across a line through the origin that makes angle θ with the x-axis. Its determinant is −1.

💡

Why does QᵀQ = I matter?

Finding the inverse of a matrix is normally hard work. But for orthogonal matrices, you just flip rows and columns—that's it! This makes orthogonal matrices incredibly fast to work with in computer programs.

SECTION 5

Types of Orthogonal Matrices

Not all orthogonal matrices look the same. They fall into two main families based on their determinant, and they come in every size. The diagram below classifies the most important types you'll encounter.

Classification of Orthogonal MatricesOrthogonal Matrix QQᵀQ = I, det(Q) = ±1Proper (Rotation)det(Q) = +1Improper (Reflection)det(Q) = −12×2 Rotation[cos θ −sin θ][sin θ cos θ]Identity Matrix I[1 0][0 1]Reflection (x-axis)[1 0][0 −1]Permutation[0 1][1 0]Key Properties Shared by All Orthogonal Matrices✓ Columns are orthonormal✓ Inverse equals transpose✓ Preserves vector lengths✓ Preserves angles between vectors
Orthogonal matrices split into two families. Proper orthogonal matrices (det = +1) represent rotations. Improper orthogonal matrices (det = −1) involve a reflection. Every example shown shares the four key properties at the bottom.

The identity matrix is the simplest orthogonal matrix—it leaves every vector unchanged. The 2 × 2 rotation matrix is probably the one you'll use most often. The permutation matrix swaps coordinates, and the reflection matrix flips one coordinate. All of them satisfy QTQ = I, and all of them preserve lengths.

SECTION 6

Worked Example

Let's verify that a specific matrix is orthogonal and then use it to rotate a vector.

Verifying and Using a 2 × 2 Rotation Matrix (θ = 60°)

  1. 1

    Step 1 — Write the Matrix

    For θ = 60°, cos 60° = 0.5 and sin 60° ≈ 0.866. The rotation matrix is Q = [ 0.5, −0.866 ; 0.866, 0.5 ].
  2. 2

    Step 2 — Compute Qᵀ

    To find the transpose, swap rows and columns. QT = [ 0.5, 0.866 ; −0.866, 0.5 ].
  3. 3

    Step 3 — Multiply QᵀQ

    Top-left entry: (0.5)(0.5) + (0.866)(0.866) = 0.25 + 0.75 = 1. Top-right entry: (0.5)(−0.866) + (0.866)(0.5) = −0.433 + 0.433 = 0. Bottom-left entry: (−0.866)(0.5) + (0.5)(0.866) = −0.433 + 0.433 = 0. Bottom-right entry: (−0.866)(−0.866) + (0.5)(0.5) = 0.75 + 0.25 = 1.
    QTQ = [ 1, 0 ; 0, 1 ] = I ✓ The matrix is orthogonal!
  4. 4

    Step 4 — Rotate a Vector

    Let v = (3, 0), a vector pointing right along the x-axis with length 3. Multiply Qv: x-component = (0.5)(3) + (−0.866)(0) = 1.5. y-component = (0.866)(3) + (0.5)(0) = 2.598.
    Qv = (1.5, 2.598). The vector has been rotated 60° counter-clockwise.
  5. 5

    Step 5 — Check Length Preservation

    Original length: ‖v‖ = √(3² + 0²) = 3. New length: ‖Qv‖ = √(1.5² + 2.598²) = √(2.25 + 6.75) = √9 = 3.
    ‖Qv‖ = 3 = ‖v‖. Length preserved! ✓

SECTION 7

Orthogonal vs. Non-Orthogonal Matrices

How do orthogonal matrices stack up against general (non-orthogonal) matrices? The table below highlights the differences.

PropertyOrthogonal MatrixGeneral Matrix
InverseJust transpose (very cheap)Must compute row reduction or adjugate (expensive)
Preserves length?AlwaysUsually not
Preserves angles?AlwaysUsually not
Determinant+1 or −1 onlyAny real number
ColumnsOrthonormal setMay be any set of vectors
Numerical stabilityExcellent—no rounding error amplificationCan amplify rounding errors

Orthogonal vs. General Matrices

✦

KEY TAKEAWAY

Imagine you photocopy a drawing, but the copier stretches horizontally and shrinks vertically—that's a general matrix transformation. An orthogonal matrix is like a perfect copy machine that can only rotate or flip the page. The copy always matches the original in every measurement.

SECTION 8

Connection to Advanced Theory

Orthogonal matrices are the starting point for several advanced topics in mathematics and science. The table below shows how they connect to ideas you may study later.

Concept (This Lesson)Advanced Extension
Orthogonal matrix (real entries)Unitary matrix — the complex-number version, central to quantum mechanics
det(Q) = ±1Lie groups SO(n) and O(n) — the set of all n × n orthogonal matrices forms a group used in physics and symmetry
QᵀQ = IQR Factorization — any matrix can be broken into an orthogonal Q times an upper-triangular R, a powerful tool for solving equations
Length & angle preservationSingular Value Decomposition (SVD) — decomposes any matrix into rotations and scalings, used in data science and image compression

From Orthogonal Matrices to Advanced Topics

When you move into college-level linear algebra or physics, you'll see orthogonal matrices everywhere. They are the building blocks of more complex decompositions. Mastering them now gives you a huge advantage later.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

In your own words, what does it mean to say a matrix is orthogonal? Name two things an orthogonal matrix always preserves.
Show answer
A matrix is orthogonal when its transpose equals its inverse, meaning QTQ = I. Two things it always preserves are the length of every vector and the angle between any two vectors. In geometric terms, orthogonal transformations rotate or reflect objects without stretching or compressing them.

Question 2: BASIC CALCULATION

Let Q = [ 0, −1 ; 1, 0 ]. Compute QTQ and determine whether Q is orthogonal.
Show answer
First, QT = [ 0, 1 ; −1, 0 ]. Multiplying: top-left = (0)(0) + (1)(1) = 1, top-right = (0)(−1) + (1)(0) = 0, bottom-left = (−1)(0) + (0)(1) = 0, bottom-right = (−1)(−1) + (0)(0) = 1. So QTQ = [ 1, 0 ; 0, 1 ] = I. Yes, Q is orthogonal. This particular matrix rotates vectors 90° counter-clockwise.

Question 3: INTERMEDIATE

The matrix A = [ 1, 2 ; 0, 1 ] is not orthogonal. Show this by computing ATA and explaining why the result proves A is not orthogonal.
Show answer
AT = [ 1, 0 ; 2, 1 ]. Then ATA = [ (1)(1)+(0)(0), (1)(2)+(0)(1) ; (2)(1)+(1)(0), (2)(2)+(1)(1) ] = [ 1, 2 ; 2, 5 ]. This is not the identity matrix because the off-diagonal entries are 2 (not 0) and the bottom-right entry is 5 (not 1). The columns of A are not orthonormal: the second column (2, 1) has length √5, not 1, and its dot product with the first column (1, 0) is 2, not 0. Because QTQ ≠ I, A is not orthogonal.

Question 4: APPLIED

A robot arm needs to rotate a tool tip from position v = (4, 3) by 90° counter-clockwise. Write the appropriate orthogonal matrix, compute the new position, and verify the distance from the origin hasn't changed.
Show answer
The 90° counter-clockwise rotation matrix is Q = [ 0, −1 ; 1, 0 ]. Multiplying: Qv = [ (0)(4) + (−1)(3) ; (1)(4) + (0)(3) ] = (−3, 4). Original length: ‖v‖ = √(16 + 9) = √25 = 5. New length: ‖Qv‖ = √(9 + 16) = √25 = 5. The tool tip moves to (−3, 4), and the distance from the origin remains exactly 5 units, confirming that the orthogonal matrix preserved the length as expected.

Question 5: CRITICAL THINKING

If Q₁ and Q₂ are both orthogonal matrices of the same size, prove that their product Q₁Q₂ is also orthogonal. (Hint: use the defining equation and the transpose rule (AB)T = BTAT.)
Show answer
We need to show (Q₁Q₂)T(Q₁Q₂) = I. Using the transpose rule: (Q₁Q₂)T = Q₂TQ₁T. Now multiply: (Q₁Q₂)T(Q₁Q₂) = Q₂TQ₁TQ₁Q₂. Since Q₁ is orthogonal, Q₁TQ₁ = I, so we get Q₂TIQ₂ = Q₂TQ₂ = I (since Q₂ is also orthogonal). Therefore (Q₁Q₂)T(Q₁Q₂) = I, which proves the product of two orthogonal matrices is orthogonal. Geometrically, this makes sense: doing two rotations in a row is still a rotation—no distortion is introduced.

SUMMARY

Lesson Summary

Summary

An orthogonal matrix is a square matrix whose transpose equals its inverse (QTQ = I). Its columns form an orthonormal set—each has length 1 and every pair is perpendicular. Orthogonal matrices always preserve lengths and angles, making them the mathematical language for rotations (det = +1) and reflections (det = −1).

Because finding the inverse is as simple as taking the transpose, orthogonal matrices are computationally efficient and numerically stable. They power 3-D graphics, robotics, and data science techniques like QR factorization and singular value decomposition. Mastering orthogonal matrices gives you a solid foundation for the broader study of inner product spaces and orthogonality in linear algebra.

Varsity Tutors • Linear Algebra • Orthogonal Matrices