When we solve the equation $$\frac 2{\pi}\int_{0}^{\pi}k\sin(nx)dx;$$ after integrating it, we get $\frac {2k}{n\pi}(1-\cos n\pi)$. Why is $\cos n\pi=(-1)^n$?
2026-04-02 15:23:54.1775143434
Doubt in Fourier Series
25 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
The cosine is $2\pi$ periodic and has maxima at $2\pi k$ for $k \in \mathbb Z$ and minima at $\pi (2k+1)$ for $k \in \mathbb Z$. So $\cos n \pi$ is always at a maximum or minimum for $n \in \mathbb Z$.
I think if you draw it you will see it even better: