Comparing the results in parts (1) and (2) we see that in part (1)
and the map
fixes the x-axis and
gives a rotation of twice 45 degrees about the x-axis.
The result in (2) is slightly more general showing that where
the map
fixes the z-axis and gives a rotation of
about the z-axis.
For a more general account of quaternions and rotations see the article....