1 of 100

Linear Algebra and Differential Equations

Lecture 20 - Orthogonal Matrices

`

2 of 100

Our Plan

  • Rotations, Revisited
  • Orthogonal Matrices and Isometries
  • Example: Reflections

​

3 of 100

Rotations, Revisited

A rotation is a linear transformation that rotates a vector x counterclockwise by an angle φ (when φ < 0, the rotation is clockwise)

4 of 100

Rotations, Revisited

A rotation is a linear transformation that rotates a vector x counterclockwise by an angle φ (when φ < 0, the rotation is clockwise)

We denote its matrix by Aφ

5 of 100

Rotations, Revisited

Note that its determinant is

6 of 100

Rotations, Revisited

Note that its determinant is

so the matrix is invertible, with inverse

7 of 100

Clockwise Rotations

The clockwise rotation by an angle φ is

8 of 100

Clockwise Rotations

The clockwise rotation by an angle φ is

where we have used the fact that cos is an even function, while sin is an odd function

9 of 100

Clockwise Rotations

The clockwise rotation by an angle φ is

where we have used the fact that cos is an even function, while sin is an odd function

10 of 100

Remark

To invert a counterclockwise rotation by φ, one simply has to rotate clockwise by the same angle φ

11 of 100

Remark

To invert a counterclockwise rotation by φ, one simply has to rotate clockwise by the same angle φ

or

12 of 100

Remark

To invert a counterclockwise rotation by φ, one simply has to rotate clockwise by the same angle φ

or

That is, rotating counterclockwise and then clockwise returns every vector to itself

13 of 100

Remark

Comparing the inverse with the original matrix, here is another interesting property

14 of 100

Remark

Comparing the inverse with the original matrix, here is another interesting property

or

15 of 100

Remark

Comparing the inverse with the original matrix, here is another interesting property

or

The inverse of the rotation matrix is given by its own transpose!

16 of 100

More Algebraic Properties

The null space of Aφ is trivial

17 of 100

More Algebraic Properties

The null space of Aφ is trivial

Because the only vector that gets rotated to 0 is 0 itself

18 of 100

More Algebraic Properties

The null space of Aφ is trivial

Because the only vector that gets rotated to 0 is 0 itself

Therefore

19 of 100

More Algebraic Properties

Since the rank is 2, the range is all of ℝ²

20 of 100

More Algebraic Properties

Since the rank is 2, the range is all of ℝ²

Indeed, any vector y in ℝ² can be interpreted as the rotated version (counterclockwise by φ) of another vector x. In other words, the following is always consistent

21 of 100

Orthogonal Matrices

Matrices with this property have a special name (this holds for any n)

22 of 100

Orthogonal Matrices

Matrices with this property have a special name (this holds for any n)

Definition: An (n × n) matrix A for which

is called an orthogonal matrix. In other words, A is invertible with

23 of 100

Isometries

Definition: A linear transformation

is called an isometry, or an isometric transformation, if

24 of 100

Isometries

Definition: A linear transformation

is called an isometry, or an isometric transformation, if

In other words, an isometry preserves the length of vectors: T(x) has the same length as x, for all x ∈ ℝⁿ

25 of 100

Isometries

If A is the (n × n) matrix associated with an isometry T, i.e.

26 of 100

Isometries

If A is the (n × n) matrix associated with an isometry T, i.e.

then we have

27 of 100

Isometries

If A is the (n × n) matrix associated with an isometry T, i.e.

then we have

Note that rotations in ℝ² are isometries! Rotating a vector, counterclockwise or clockwise, by an angle φ does not change its magnitude

28 of 100

A Natural Question

So rotations are isometries, and rotation matrices are orthogonal. A natural question is the following one:

29 of 100

A Natural Question

So rotations are isometries, and rotation matrices are orthogonal. A natural question is the following one:

Are the matrices of isometries all orthogonal?

30 of 100

A Natural Question

So rotations are isometries, and rotation matrices are orthogonal. A natural question is the following one:

Are the matrices of isometries all orthogonal?

Vice versa, do all orthogonal matrices define isometric transformations?

31 of 100

A Natural Question

So rotations are isometries, and rotation matrices are orthogonal. A natural question is the following one:

Are the matrices of isometries all orthogonal?

Vice versa, do all orthogonal matrices define isometric transformations?

The answer to both questions is yes!

(as stated by the following result)

32 of 100

Orthogonal Matrices and Isometries

Theorem: Let A be an (n × n) matrix, written by its columns

The following three facts are equivalent:

33 of 100

Orthogonal Matrices and Isometries

Theorem: Let A be an (n × n) matrix, written by its columns

The following three facts are equivalent:

34 of 100

Orthogonal Matrices and Isometries

Theorem: Let A be an (n × n) matrix, written by its columns

The following three facts are equivalent:

35 of 100

Orthogonal Matrices and Isometries

Theorem: Let A be an (n × n) matrix, written by its columns

The following three facts are equivalent:

36 of 100

Orthogonal Matrices and Isometries

In words: (I) says A is an orthogonal matrix, (II) says the linear transformation y = Ax is an isometry, and (III) says the columns are orthonormal, i.e.

37 of 100

Orthogonal Matrices and Isometries

In words: (I) says A is an orthogonal matrix, (II) says the linear transformation y = Ax is an isometry, and (III) says the columns are orthonormal, i.e.

Remark: By last lecture, an orthonormal set of n vectors in ℝⁿ is linearly independent. Therefore, they form an orthonormal basis of ℝⁿ

38 of 100

Example: Rotations

Before we proceed, note that all three facts are true for the (2 × 2) rotation matrix

39 of 100

Example: Rotations

Before we proceed, note that all three facts are true for the (2 × 2) rotation matrix

In particular, it is easy to verify that the columns are indeed orthonormal

40 of 100

Proof Strategy

Instead of employing a scheme that would require four proofs, we will implement a “triangular” scheme. This only requires three proofs

41 of 100

Proof Strategy

Instead of employing a scheme that would require four proofs, we will implement a “triangular” scheme. This only requires three proofs

(I) ⟹ (II) and (III) ⟹ (I) are relatively simple

42 of 100

Proof Strategy

Instead of employing a scheme that would require four proofs, we will implement a “triangular” scheme. This only requires three proofs

(I) ⟹ (II) and (III) ⟹ (I) are relatively simple

(II) ⟹ (III) is a bit more complex

43 of 100

Proof Strategy

Instead of employing a scheme that would require four proofs, we will implement a “triangular” scheme. This only requires three proofs

(I) ⟹ (II) and (III) ⟹ (I) are relatively simple

(II) ⟹ (III) is a bit more complex

First, we will need a preliminary result

44 of 100

A Lemma

Lemma: Let A be an (n × n) matrix written by its columns, and consider the standard basis

Then it is the case that

45 of 100

A Lemma

Lemma: Let A be an (n × n) matrix written by its columns, and consider the standard basis

Then it is the case that

Multiplying A by ei picks out the i-th column of A

46 of 100

Proof of the Lemma

Note that for a generic vector

47 of 100

Proof of the Lemma

Note that for a generic vector

we have

48 of 100

Proof of the Lemma

49 of 100

Proof of the Lemma

Now, the standard unit vector ei has

50 of 100

Proof of the Lemma

Now, the standard unit vector ei has

Therefore

51 of 100

Proof: (I) ⟹ (II)

This is the easy part. Assume

52 of 100

Proof: (I) ⟹ (II)

This is the easy part. Assume

Then we have, for any x ∈ ℝⁿ:

53 of 100

Proof: (I) ⟹ (II)

This is the easy part. Assume

Then we have, for any x ∈ ℝⁿ:

so

Used: (AB)⊤ = B⊤A⊤, and associativity

54 of 100

Proof: (II) ⟹ (III)

This is the trickiest. Now assume that

55 of 100

Proof: (II) ⟹ (III)

This is the trickiest. Now assume that

Then, in particular, this must be true for the standard unit vectors

56 of 100

Proof: (II) ⟹ (III)

This is the trickiest. Now assume that

Then, in particular, this must be true for the standard unit vectors

However, note that

57 of 100

Proof: (II) ⟹ (III)

By the lemma, and since standard unit vectors are unit vectors

Inserting these into ‖Aei‖ = ‖ei‖ yields

58 of 100

Proof: (II) ⟹ (III)

By the lemma, and since standard unit vectors are unit vectors

Inserting these into ‖Aei‖ = ‖ei‖ yields

59 of 100

Proof: (II) ⟹ (III)

By the lemma, and since standard unit vectors are unit vectors

Inserting these into ‖Aei‖ = ‖ei‖ yields

So every column of A is a unit vector. Next, we show the columns are pairwise orthogonal

60 of 100

Proof: (II) ⟹ (III)

Now take two arbitrary indices i, j, with i ≠ j, and consider

61 of 100

Proof: (II) ⟹ (III)

Now take two arbitrary indices i, j, with i ≠ j, and consider

which has a 1 in the i-th position, a 1 in the j-th position, and zeros elsewhere. Note that

62 of 100

Proof: (II) ⟹ (III)

For the same vector x, let’s now compute

63 of 100

Proof: (II) ⟹ (III)

For the same vector x, let’s now compute

64 of 100

Proof: (II) ⟹ (III)

For the same vector x, let’s now compute

65 of 100

Proof: (II) ⟹ (III)

Because of the assumption that we are making, it must be the case that

66 of 100

Proof: (II) ⟹ (III)

Because of the assumption that we are making, it must be the case that

i.e.

67 of 100

Proof: (II) ⟹ (III)

Because of the assumption that we are making, it must be the case that

i.e.

Therefore, the columns of A are orthogonal as well as unit length (from before)

68 of 100

Proof: (III) ⟹ (I)

Finally, assume that

69 of 100

Proof: (III) ⟹ (I)

Finally, assume that

and write A by its columns

70 of 100

Proof: (III) ⟹ (I)

71 of 100

Proof: (III) ⟹ (I)

Therefore, we have used the orthonormality of the set, i.e.

72 of 100

Proof: (III) ⟹ (I)

where in (∗∗∗∗) we have used the orthonormality of the set, i.e.

In conclusion, we have that

73 of 100

On the Use of the Word “Orthogonal”

The word “orthogonal” has different meanings, depending on what it refers to

74 of 100

On the Use of the Word “Orthogonal”

The word “orthogonal” has different meanings, depending on what it refers to

Two orthogonal vectors u and v are vectors whose dot product is zero

75 of 100

On the Use of the Word “Orthogonal”

The word “orthogonal” has different meanings, depending on what it refers to

Two orthogonal vectors u and v are vectors whose dot product is zero

An orthogonal set of vectors is a set of vectors that are pairwise orthogonal

76 of 100

On the Use of the Word “Orthogonal”

On the other hand, an orthogonal (n × n) matrix A is a matrix whose inverse is given by its own transpose. By the theorem,

77 of 100

On the Use of the Word “Orthogonal”

On the other hand, an orthogonal (n × n) matrix A is a matrix whose inverse is given by its own transpose. By the theorem,

i.e., its columns are orthogonal and of unit length

78 of 100

On the Use of the Word “Orthogonal”

On the other hand, an orthogonal (n × n) matrix A is a matrix whose inverse is given by its own transpose. By the theorem,

i.e., its columns are orthogonal and of unit length

It is not sufficient that the columns are orthogonal for A to be an orthogonal matrix. The columns must be unit vectors as well!

79 of 100

On Orthonormal Bases

If the following is an orthonormal basis of ℝⁿ

80 of 100

On Orthonormal Bases

If the following is an orthonormal basis of ℝⁿ

then the matrix of the basis is an orthogonal matrix

81 of 100

On Orthonormal Bases

So the change of coordinates matrix (from the canonical basis α of ℝⁿ to the basis β)

82 of 100

On Orthonormal Bases

So the change of coordinates matrix (from the canonical basis α of ℝⁿ to the basis β)

may simply be computed as

83 of 100

On Orthonormal Bases

So the change of coordinates matrix (from the canonical basis α of ℝⁿ to the basis β)

may simply be computed as

No need to compute an inverse: just take the transpose!

84 of 100

Example: Reflection

Consider the transformation T where, for a generic x ∈ ℝ², T(x) is the mirror reflection of x with respect to the line x1 = x2

85 of 100

Example: Reflection

Note that if x has coordinates a and b, then T(x) has coordinates b and a

86 of 100

Example: Reflection

Note that if x has coordinates a and b, then T(x) has coordinates b and a

The mirror reflection swaps the coordinates

87 of 100

Example: Reflection

Therefore

88 of 100

Example: Reflection

Therefore

which we rewrite as

89 of 100

Example: Reflection

Therefore

which we rewrite as

In other words, the transformation T is linear, with matrix the matrix

90 of 100

Properties of the Reflection Matrix

This matrix is very special: it has a lot of properties

(a)

91 of 100

Properties of the Reflection Matrix

This matrix is very special: it has a lot of properties

(a)

So A is its own inverse! In symbols:

92 of 100

Properties of the Reflection Matrix

This matrix is very special: it has a lot of properties

(a)

So A is its own inverse! In symbols:

Matrices with this property are called involutory (and the corresponding transformations T involutions)

93 of 100

Properties of the Reflection Matrix

Geometrically, this makes sense: to recover x from T(x) = Ax you have to mirror-reflect again with respect to x1 = x2, i.e. multiply by A again

94 of 100

Properties of the Reflection Matrix

(b) A is symmetric:

(a)

95 of 100

Properties of the Reflection Matrix

(c) Combining (a) and (b) yields

(b) A is symmetric:

(a)

Therefore, A is an orthogonal matrix

96 of 100

Properties of the Reflection Matrix

In agreement with the theorem, it should be fairly obvious that the columns of A

97 of 100

Properties of the Reflection Matrix

In agreement with the theorem, it should be fairly obvious that the columns of A

form an orthonormal set, and that the mirror reflection preserves length

98 of 100

Range and Null Space

Finally, because A is nonsingular, we have that

99 of 100

Range and Null Space

Finally, because A is nonsingular, we have that

Every vector y ∈ ℝ² can be obtained as the reflection of some other vector x ∈ ℝ², i.e. the following is always consistent

100 of 100

Range and Null Space

Finally, because A is nonsingular, we have that

Every vector y ∈ ℝ² can be obtained as the reflection of some other vector x ∈ ℝ², i.e. the following is always consistent

Also, the only vector that gets reflected to 0 is the vector 0 itself