When we are writing an equation belonging to periodic nature it include sine or cosine function.
So Assume, x=t−sint
sint=t−t33!+t55!−t77!
sint<t
x(t)>0for all t>0,x>0, x>0
dxdt=v(t)=1−cost
As−1<cost t<1
vmax=2
vmin=0
So, here particle is moving forward as x(t)>0 for all t>0 and it comes periodically at rest.