We will start by computing the Fourier sine series. The Fourier sine series of is given by
where
for
Here, we have and . So
Integrate by parts using
we get that
Since and , we get that
for
Therefore, the Fourier sine series of is
Next, we will find the Fourier cosine series. The Fourier cosine series of is given by
where
for
With and ,
When we have that =1 and so we have two distinct cases for evaluating the integral; when and when . For the case where , integrate by parts using
we get that
Since , we get that
for
Now for the case where , we get
Therefore, the Fourier cosine series of is