I'm working on a course problem,
Calculate the Fourier series of the periodic function $f(t)$ with fundamental period $T=4$ defined on $[-2,2)$ by $$f(t)= \begin{cases}1-|t|&-1\leq t\leq1 \\0&\text{otherwise.}\end{cases}$$
I get $$\text{even function}\implies\text{cosine series}\implies f(t)=\frac{1}{4}+\sum_{n=1}^\infty\frac{1-\cos(n)}{n^2}f(t)\cos(t).$$ (Integration working omitted.) Does that count as calculating the Fourier series, or do I need to do anything more?
Update: Second attempt.
$$f(t)=\frac{1}{2}+\frac{8}{\pi^2}\sum_{p=1}^\infty\frac{1}{(2p-1)^2}\cos\left((2p-1)\frac{2\pi}{4}t\right)+\frac{2}{(4p-2)^2}\cos\left((4p-2)\frac{2\pi}{4}t\right).$$