I'm taking a robotics class and trying to understand Euler angles. My understanding is, matrices are applied to to the vector from right to left (the first transformation applied is the one closest to $\overrightarrow{\boldsymbol{x}} $)
My book defines Euler angles as:
If we are rotating about the Z axis first, then shouldn't the rightmost matrix be for the Z rotation and not the X rotation?
Shouldn't we have the transformation $${_a^b}R_{{Z^\prime}{Y^\prime}{X^\prime}}=R_X(\gamma)R_Y(\beta)R_Z(\alpha) $$ rather than $${_a^b}R_{{Z^\prime}{Y^\prime}{X^\prime}}=R_Z(\alpha)R_Y(\beta)R_X(\gamma) $$
I've read the definition from my textbook in several places and am aware it is correct, but



This comes from the fact that the $\hat Z_B$ rotation moves the $\hat Y_B$ axis you're rotating about next.
If you do them in your proposed order, then the result is what you would get if you rotate the $B$ axes about $\hat Z_A$, $\hat Y_A$, and then $\hat X_A$, rather than $\hat Z_B$, then (the new) $\hat Y_B$, and then (the even newer) $\hat X_B$.
I propose you find a book or a die or a cup or something and play around with $90^\circ$ and $180^\circ$ turns (it's what I did before writing this answer, as a sanity check). For simplicity, say $\gamma = 0^\circ$ (at least at first) so you only get two rotations, and see how it works.