Let $x(t)=\sqrt{3}$ sin $\left(\pi t+\pi \right)-$ cos$\left(\pi t+\pi \right)$.
I'm asked to prove that this function represents an "harmonic oscillator" (I'm not sure if this is the correct term in English, but it's referring to a weight attached to a sling). I suppose that what I'm being asked is to prove that this function is periodic?
I tought about showing that for a given $t$ in the domain of $x$, the corresponding $x(t)$ repeats itself in such way that $t + kn = x(t)$ -- $k$ being a constant and $n \in \mathbb{Z}$.
Is this the most appropriate way to prove this?
Observe that
$$\begin{cases}\sin(\pi t+\pi)=\sin \pi t\cos\pi+\sin\pi\cos\pi t=-\sin\pi t\\{}\\ \cos(\pi t+\pi)=\cos\pi t\cos \pi-\sin\pi t\sin\pi=-\cos\pi t\end{cases}$$
Thus your function is in fact
$$f(t)=-(\sqrt 3\,\sin\pi t-\cos\pi t) $$
and this clearly has a period of $\;2\;$:
$$f(t+2)=-\left(\sqrt3\,\sin(\pi t+2\pi)-\cos(\pi t+2\pi)\right)=-\left(\sqrt3\,\cos\pi t-\cos\pi t)\right)=f(t)$$