I'm trying to calculate the Fourier series for:
$g(t) =$ t if $-\pi/2 ≤ t ≤ \pi/2 $
$g(t) =$ π - t if $ π/2 ≤ t ≤ 3π/2$
The function is odd, so its Fourier Series should contain only sin terms. However, if you consider $g(t)$ as the integral of square wave function ie. sq(t+π/2), where
$ sq(t) = -1$ if $-π ≤ t ≤ 0 $
$ sq(t) = 1$ if $ 0 ≤ t ≤ π $
The Fourier series would contain only cosine terms. How is this possible?
My guess is that I can't consider g(t) as the integral of sq(t+π/2) because we would have -t instead of π - t. I have two questions:
Why exactly can't I use this method?
Can I use sq(t) at all for this question?
I referred to this question and everything seems fine.