"Another special case for the phase occurs when $\gamma = 0$ (no damping), for
which we have $\tan \phi = \pm 0$, depending on the sign of $\omega^2 − \omega_d^2$. So $\phi$ is either
$0$ or $\pi$. The motion is therefore either exactly in phase or out of phase with the
driving force, depending on which of $\omega$ or $\omega_d$ is larger."