Follow hints to investigate the matrix which gives a reflection of the plane in the line y=tanx. Show that the combination of two reflections in intersecting lines is a rotation.
The length AM can be calculated using trigonometry in two different
ways. Create this pair of equivalent calculations for different peg
boards, notice a general result, and account for it.
See how 4 dimensional quaternions involve vectors in 3-space and
how the quaternion function F(v) = nvn gives a simple algebraic
method of working with reflections in planes in 3-space.