I am computing the Fourier series expansion of the given signal x(t). In that I am having difficulties in calculating range of function $ \frac{1}{n\pi}(1-\cos(n\pi))\sin(\frac{n\pi}{2})$ (or) I am not able to get how can I arrive at equation (2) from equation (1)
I have done some back calculation(and would like to know the forward way of calculating it)
For example, for the function to have a value of $ \frac{2n}{\pi} $
$$ \sin(\frac{n\pi}{2})=1 \,\, \text{and} \,\, \cos(n\pi)=-1$$
$$\implies \sin(\frac{n\pi}{2})=\sin((4k+1)\frac{\pi}{2}) \, and \, \cos(n\pi)=\cos(2k+1)\pi$$ $$\implies n=(4k+1) \, \text{and} \, n =(2k+1).$$
Which is a contradiction and doesn't match with the book.(Is this the case that among $\implies n=(4k+1) \, \text{and} \, n =(2k+1)$ ,we have to choose $n=(4k+1)$?)
And how have we arrived at 2nd part of equation (2)?
Please help in this regard.
Also clarify another doubt. How have we arrived at equation (3) from (2). It is confusing because it involves determination of the terms based on n which in turn is dependent on k.
