Euler's equations
Here are the components of the angular velocity of the axes.
If the axes system is attached to the rigid body itself, then
and