75. Reflection Matrix

A reflection matrix maps each point to its mirror image across a fixed line (in 2D), plane (in 3D), or hyperplane (in 𝑛).

75.1. Reflection across a line through the origin (2D)

Line making angle 𝜃 with the 𝑥-axis:

𝑅𝜃=[cos2𝜃sin2𝜃sin2𝜃cos2𝜃]

Special cases:

AxisMatrix
𝑥-axis (𝜃=0)[1001]
𝑦-axis (𝜃=𝜋2)[1001]
Line 𝑦=𝑥 (𝜃=𝜋4)[0110]
Line 𝑦=𝑥 (𝜃=𝜋4)[0110]

75.2. Reflection across a hyperplane (general)

For a hyperplane through the origin with unit normal 𝑛̂, the reflection is the Householder matrix:

𝑅=𝐼2𝑛̂𝑛̂𝑇

This subtracts twice the projection onto 𝑛̂ from each input.

Example

Reflect across the plane 𝑧=0 in 3. Normal: 𝑛̂=(0,0,1).

𝑅=𝐼2[001](0,0,1)=[100010001]2[000000001]=[100010001]

𝑧 flips sign, 𝑥 and 𝑦 preserved. ✓

75.3. Properties

75.4. Rotations vs reflections

RotationReflection
det+11
Orientationpreservedreversed
Self-inverse?no (unless 0 or 𝜋)yes
Symmetric?noyes

Composition: two reflections produce a rotation (by 2𝜃, where 𝜃 is the angle between the mirrors).

75.5. Householder transformations

Reflections of the form 𝑅=𝐼2𝑣𝑣𝑇𝑣𝑇𝑣 (Householder transformations) are the building blocks of stable numerical algorithms for:

75.6. See also