Consider the following diagram. Two masses of 1 kilogram each are attached by a spring of 1 N/m. The $x$-axis is chosen such that $x_1(0)=0$ and $x_2(0)=L$ where $L$ is the length of the spring in relaxation (no restoring force acting on the masses).
At $t=0$ the speed of the first mass on the left is $v$ directed to the right. The objective is to find the relative position of the masses, $d(t)=x_2(t)-x_1(t)$ for $t \ge0$.
My attempt
Initial condition $$ \begin{cases} x_1(0)=0\\ \dot{x}_1(0)=v \\ x_2(0)=L\\ \dot{x}_2(0)=0 \\ \end{cases} $$
Applying Newton's second law to the first mass: \begin{align*} \ddot{x}_1(t) &=-(x_1-x_2)\\ s^2 X_1 -s x_1(0) -\dot{x}_1(0) &= -(X_1-X_2) \\ s^2 X_1 -v &= -(X_1-X_2) \\ (s^2+1) X_1 -X_2 &= v \end{align*}
Applying Newton's second law to the second mass: \begin{align*} \ddot{x}_2(t) &=-(x_2-x_1)\\ s^2 X_2 -s x_2(0) -\dot{x}_2(0) &= -(X_2-X_1) \\ s^2 X_2 -sL -0 &= -(X_2-X_1) \\ -X_1 + (s^2+1) X_2 &= sL \end{align*}
Solving the simultaneous equations, I have
\begin{align*} X_1 &= \frac{(s^2+1)v+sL}{s^2(s^2+2)} \\ X_2 &= \frac{(s^2+1)sL+v}{s^2(s^2+2)} \end{align*}
Partial fraction expansion,
\begin{align*} X_1 &= \frac{L/2}{s} +\frac{v/2}{s^2} +\frac{-sL/2+v/2}{s^2+2} \\ X_2 &= \frac{L/2}{s} +\frac{v/2}{s^2} +\frac{sL/2-v/2}{s^2+2} \end{align*}
\begin{align*} D &= X_2-X_1 \\ &=\frac{sL-v}{s^2+2} \end{align*}
Inverse Laplace transform for $D$,
\begin{align*} d(t) &= L \cos (t\sqrt{2}) -\frac{v}{\sqrt{2}}\sin(t\sqrt{2}) \\ &=\sqrt{L^2+\frac{v^2}{2}}\cos\bigg(t\sqrt{2}+\tan^{-1}\bigg(\frac{v}{L\sqrt{2}}\bigg)\bigg) \end{align*}
Question
Why can $d(t)$ become negative? What does it mean?