Given the following equation:
$\ddot y + \frac{1}{4}\dot y + 2y = 0; \space\space\space y(0) = 0, \space \dot y(0) = 2$
Under what condition would the phase plot become closed?
Solving the ivp to obtain the phase-plot shown here:

where: $$y = \frac{16}{\sqrt{127}}e^{-t/8} * \sin(\frac{\sqrt{127}}{8}t)$$ $$\dot y = \frac{2}{127}e^{-t/8}*[127\cos(\frac{\sqrt{127}}{8}t) - \sqrt{127}\sin(\frac{\sqrt{127}}{8}t)]$$
My initial thought would be if the coefficient of $\dot y = 0 $ or if $\dot y = 0$ itself then the phase plot would close. However, I believe this would change the governing equation and isn't necessarily a 'condition'
My question basically is: What needs to be enforced for a linear spring-mass-damper system to display a periodic trajectory? (closed phase-plot)
Any help would be greatly appreciated!
You have a closed system (no external force). As long as there is damping, the energy is dissipated, that is $y^2+(y')^2\to 0$ as $t\to\infty$, and the trajectories will spiral towards the origin. Mathematically, as long as you have a term $ay'$ with $a>0$ in the equation, your solutions will contain a decaying exponential in front of the oscillatory part. The short answer is: it never happens, unless you do not have damping or you have an external force supplying energy.