Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 21

Preserving Norms and Inner Products: Orthogonal and Unitary Operators

Recommended resources

Hello! Welcome back to our course on linear algebra.

In the last lesson, we defined orthogonal and unitary matrices based on their algebraic properties: for an orthogonal matrix , and for a unitary matrix . We saw that this meant their columns (and rows) form an orthonormal basis.

Today, we will explore the geometric consequence of these properties, which is the very reason these matrices are so important. Our learning outcome is to describe how orthogonal and unitary operators preserve norms and inner products. This means they perform "rigid transformations"—like rotations and reflections—that don't distort the space. This is a crucial concept for your goals, as it underlies the time evolution of quantum states and is fundamental to many data analysis and computer graphics algorithms.

1. Orthogonal Matrices: Preserving Geometry in

Let's start with real vectors. The properties we're about to demonstrate are what make orthogonal matrices the mathematical representation of rotations and reflections.

Preservation of Norm (Length)

First, we'll show that applying an orthogonal matrix to a vector does not change its length.

The Unexpected Power of Orthogonal Matrices

The video 'The Unexpected Power of Orthogonal Matrices' by ritvikmath provides a clear, step-by-step derivation of this property. Pay close attention to how the definition Q^TQ=I is used to simplify the expression for the new vector's norm.

Watch from 6:20 to 8:06. The key part is the derivation showing that the norm of Q\mathbf{u} is equal to the norm of \mathbf{u}.

As the video demonstrated, the proof is elegant and relies directly on the definition of an orthogonal matrix. Let's recap the steps:

Let be an orthogonal matrix and be a vector in . We want to show that . It's easier to work with the square of the norm:

  1. Start with the definition of the L2-norm:
  2. Apply the transpose property :
  3. Use the defining property of an orthogonal matrix, :
  4. Recognize this is the squared norm of the original vector:

Taking the square root of both sides gives us . The length is preserved.

Preservation of Inner Product (and Angles)

Not only are lengths preserved, but so are the angles between vectors. This follows from the preservation of the inner product.

Let and be two vectors in . Their inner product (dot product) is . Let's see what happens to the inner product after transforming both vectors by :

The inner product is unchanged!

Since the angle between two vectors is given by the formula:

and we've just shown that both the numerator (inner product) and the terms in the denominator (norms) are preserved under transformation by , the angle must also be preserved.

This is why orthogonal transformations are essentially rotations and reflections.

The Unexpected Power of Orthogonal Matrices

Let's return to the ritvikmath video, which now provides the geometric intuition for this angle-preserving property.

Watch from 8:06 to 10:09. The video explains that since lengths and angles are preserved, the transformations must be things like rotations and reflections, which don't distort the geometric relationships between vectors.


2. Unitary Matrices: Preserving Geometry in

The exact same logic extends to complex vector spaces and unitary matrices. The only difference is that we use the conjugate transpose () instead of the regular transpose (), and the complex inner product instead of the dot product.

A unitary transformation preserves the complex inner product . Let be a unitary matrix and be complex vectors. The inner product of the transformed vectors is:

Using the property , this becomes:

And since is unitary, . So we have:

The complex inner product is preserved.

Unitary Transformations

Steve Brunton's video on 'Unitary Transformations' explains this core idea from a slightly different perspective, using the analogy of constellations to emphasize the preservation of geometric structure.

Watch from 1:31 to 4:29. The video first defines unitary matrices as preserving angles and lengths, and then explicitly shows that the inner product is unchanged when both vectors are mapped through a unitary transformation.

Since the norm is just a special case of the inner product (), the preservation of the inner product automatically implies the preservation of the norm:

This property is the bedrock of quantum mechanics.

Test your understanding!

In the previous lesson, we saw that the matrix is orthogonal.
Let .

  1. Calculate the norm .
  2. Calculate the transformed vector .
  3. Calculate the norm and verify that it equals .
Show answer
  1. .

  2. .

As expected, . The transformation rotated the vector by 45 degrees but did not change its length.


3. Connection to Your Goals

Understanding why these operators preserve structure is key to seeing their role in your future studies.

Application in Deep Learning and Data Science

In many data analysis tasks, such as Principal Component Analysis (PCA) which we will cover later, we want to rotate our dataset to find the directions of maximum variance. These rotations must not stretch or skew the data, as that would distort the relationships between data points. Orthogonal matrices are used to perform these rotations precisely because they preserve all distances and angles. In computer graphics, rotating an object on screen is achieved by applying an orthogonal matrix to the coordinates of all its vertices.

Application in Quantum Mechanics

This is where unitary matrices are absolutely non-negotiable.

Lecture 3, Tues Jan 24: Basic Rules of QM

Scott Aaronson's lecture notes from his quantum computing course provide the definitive link. This section explains that unitary transformations are, by definition, the transformations that preserve norms, which is a physical requirement for quantum mechanics.

Read the paragraph that starts with 'We define: Unitary transformations are norm-preserving linear transformations.' This section explicitly shows how the physical requirement of preserving the norm (and thus, probability) leads directly to the mathematical condition U^\dagger U = I.

In quantum mechanics, the state of a system is described by a state vector in a complex Hilbert space. A fundamental postulate is that the squared norm of this vector, , must equal 1. This represents the fact that the total probability of finding the particle in any possible state is 100%.

When the system evolves over time, its state vector changes. If the state at time is , the state at a later time will be , where is some linear operator that describes the evolution. For physics to be consistent, the total probability must still be 1. This means we must have . This forces the transformation to be norm-preserving, and therefore, all time-evolution operators in quantum mechanics must be unitary.

Test your understanding!

A quantum system is in a state . A physicist applies a transformation that describes the system's evolution over one second. The new state is . Why is it a physical necessity that the matrix be unitary?

Show answer

The squared norm of the state vector, , represents the total probability of the system being in some state, which must always be 1. After the transformation, the new state is . Its squared norm, , must also be 1 to conserve total probability.
Since , we need . A transformation that preserves the norm for all vectors is, by definition, a unitary transformation. Therefore, any operator describing the evolution of a closed quantum system must be unitary.


Conclusion

Today we connected the algebraic definitions from our last lesson to their profound geometric meaning.

Key Takeaways:

  • Orthogonal matrices () and unitary matrices () are transformations that preserve the geometry of their respective vector spaces.
  • They preserve the norm (length) of vectors: and .
  • They preserve the inner product (and thus angles) between vectors: and .
  • This property makes them ideal for representing rotations and reflections in real space (applications in graphics, data science) and is a physical requirement for describing time evolution in quantum mechanics to ensure probability is conserved.

Preview of the Next Module:

We've now completed our deep dive into orthogonality. We've built orthonormal bases, used them for projection, and defined operators that preserve their structure. In the next module, we will begin our study of Eigenvalues and Eigenvectors. We will shift our focus from how a transformation affects all vectors to searching for very special vectors that are left in the same direction by the transformation—they are only scaled. These "invariant directions" reveal the deepest structure of a linear transformation and are fundamental to nearly every application of linear algebra, from diagonalization to solving differential equations to the core principles of quantum measurement.