\begin{align*}
% Rotation around Z-axis by angle ψ
\text{(1) Rotate around Z-axis by } \psi: \quad
\begin{bmatrix}
x' \\
y' \\
z'
\end{bmatrix}
&=
\underbrace{
\begin{bmatrix}
\cos \psi & \sin \psi & 0 \\
-\sin \psi & \cos \psi & 0 \\
0 & 0 & 1
\end{bmatrix}}_{R_z(\psi)}
\begin{bmatrix}
X \\
Y \\
Z
\end{bmatrix}
= R_z(\psi)
\begin{bmatrix}
X \\
Y \\
Z
\end{bmatrix}
\\[1em]
% Rotation around Y-axis by angle θ
\text{(2) Rotate around Y-axis by } \theta: \quad
\begin{bmatrix}
x'' \\
y'' \\
z''
\end{bmatrix}
&=
\underbrace{
\begin{bmatrix}
\cos \theta & 0 & -\sin \theta \\
0 & 1 & 0 \\
\sin \theta & 0 & \cos \theta
\end{bmatrix}}_{R_y(\theta)}
\begin{bmatrix}
x' \\
y' \\
z'
\end{bmatrix}
= R_y(\theta)
\begin{bmatrix}
x' \\
y' \\
z'
\end{bmatrix}
\\[1em]
% Rotation around X-axis by angle φ
\text{(3) Rotate around X-axis by } \phi: \quad
\begin{bmatrix}
x''' \\
y''' \\
z'''
\end{bmatrix}
&=
\underbrace{
\begin{bmatrix}
1 & 0 & 0 \\
0 & \cos \phi & \sin \phi \\
0 & -\sin \phi & \cos \phi
\end{bmatrix}}_{R_x(\phi)}
\begin{bmatrix}
x'' \\
y'' \\
z''
\end{bmatrix}
= R_x(\phi)
\begin{bmatrix}
x'' \\
y'' \\
z''
\end{bmatrix}
\end{align*}