In the discussion of rapidities, boosts, and rotations we considered only rotations in two dimensions (the XY plane) and boosts in two dimensions (the TX plane). Let us now extend this to four dimensions.
The basic twodimensional equations were:


In four dimensions we can still have rotation in the XY
plane (rotation around the +Z axis),
which has the same meaning as equation 1; the T and Z components are just spectators, unchanged by the transformation. 
We can still
have a boost in the TX plane (X direction),
which has the same meaning as equation 2; the Y and Z components are just spectators, unchanged by the transformation. 
Some other rotation matrices of interest include
rotations in the ZX plane (rotation around the +Y axis):

Some other boost matrices of interest include
boosts in the TY plane (Y direction),

and
rotation in the YZ plane (rotation around the +X axis),

and boosts in the TZ plane (Z direction):

The matrices appearing above correspond to the rotation operators R(ψ; xy), R(θ; zx), and R(φ; yz), respectively. The first argument specifies the amount of rotation, while the second argument specifies the plane of rotation. They are called yaw, pitch, and roll respectively. The angles can be called Euler angles, but beware that there is a plethora of mutuallyinconsistent conventions as to which angle goes with which axis, and which operators get applied in which order.  The matrices appearing above correspond to the boost operators B(ρ; tx), B(ρ; ty), B(ρ; tz) respectively. 
Note that the matrix for R(; zx) looks different from the others because it has the minus sign in the lowerleft corner, and similarly note that its orientation is spelled ZX not XZ. This is necessary to preserve the righthand rule; we want a rotation around the +Y axis. 
An arbitrary rotation can be described by combining the
aforementioned matrices in the following order: Alice is in the lab
frame. Bob is rotated relative to Alice by a yaw angle (ψ).
Carol is rotated relative to Bob by a pitch angle (θ). Doug is
rotated relative to Carol by a roll angle (φ). Then Alice’s
measurements are related to Doug’s measurements by

The ordering is important here. Although rotations in any given plane commute with each other, they don’t commute with rotations in any other plane, or with boosts.  Although boosts in any given direction commute with each other, they don’t commute with boosts in any other direction, or with rotations. 
This representation, while conventional and widely used, is not troublefree. For one thing, it treats the XY, YZ, and ZX planes on unequal footing; one might have hoped for more symmetry. More specifically, there is a singularity when the pitch angle reaches 90 degrees. This problem can be overcome by representing things in terms of Clifford algebra (or, equivalently, quaternions) or in terms of matrices, but that’s beyond the scope of this document, at least for now. 
We should mention the rotation group. The the group elements are rotationoperators. They can be represented by 3x3 matrices, or equivalently by 4x4 matrices in which the T component is a spectator. The groupoperator is composition, i.e. carrying out one rotation then another, which can be represented by matrix multiplication. The set of all rotations is closed under this operation.  There is no group consisting just of boosts, because the boosts are not closed under composition. If you apply a sequence of boosts such as B(−є; ty) B(−1; tx) B(є; ty) B(1; tx) (corresponding to going around a thin rectangle in velocityspace) the net result will be a pure rotation. The smallest group containing the boosts is the Lorentz group, which consists of the boosts and the rotations. 