I've been given the task to find the Fourier Series Representation. All I'm given is this $$x(t)= \begin{cases}-t & \text { for } 0 \leq t<1 \\ 1 & \text { for } 1 \leq t<2 \\ 0 & \text { for } 2 \leq t<4\end{cases}$$ and I have no idea as to how to go about it. In the lectures we were shown $$ x(t)=\sum_{k=-\infty}^{+\infty} a_{k} e^{j k \omega_{0} t} $$ and $$ a_{k}=\frac{1}{T} \int_{T} x(t) e^{-j k \omega_{0} t} d t $$ but I simply do not understand what they mean or how to use them on the given $x(t)$. My confusion mainly comes from the fact that I need $x(t)$ in the calculation of $a_k$, but I don't see how that's possible with the given. I might also be on the entirely wrong track. Please help me.
EDIT: The period is given as $T=4$. Pardon for the exclusion.