I was given an assignment by my instructor where i had to write the function
$$ f(t) = \begin{cases} 1-t & 0\leq t < 1 \\ t-1 & 1 \leq t < 2 \end{cases}\\ f(t + 2) = f(t) $$
as a complete Fourier series with the hint (you should only get cosine terms)
Now i realized this function was just a triangle wave and the even extension of 1-t on the interval 0 to 1 would be the given function, so i decided to expand it by simply writing it as the Fourier cosine series of 1-t from 0 to 1
would i have gotten an equivalent Fourier series if i expanded the piece-wise function above from 0 to 2 ? I get awfully confused about the limits and normalization factors, but from what i understand the even extension of the function i expanded should represent exactly the same periodic function?

