$ f(x) = \begin{cases} 0 & \text{if } -2 < x < -1 \\ 2k & \text{if } -1 < x< 1; \text{ period } = 4 \\ 0 & \text{if } 1 < x < 2 \end{cases} $
$ f(x) = k + \frac{4k}{\pi} \left( \cos \frac{\pi}{2} x - \frac{1}{3} \cos \frac{3\pi}{2} x + \frac{1}{5} \cos \frac{5\pi}{2} x -+ ... \right) $
The given function $ f(x) $ is periodic with period $ T = 4 $. This means the fundamental frequency is $ \omega_0 = \frac{2\pi}{T} = \frac{\pi}{2} $. The function is defined piecewise:
Observing the definition, we see that $ f(-x) = f(x) $ for all $ x $ within the interval $ [-2, 2] $. This indicates that $ f(x) $ is an even function. Consequently, its Fourier series will consist only of a constant term ($ a_0 $) and cosine terms ($ a_n $); all sine coefficients ($ b_n $) will be zero.
The general form of a Fourier series for a function with period $ T $ is $ f(x) = a_0 + \sum_{n=1}^{\infty} \left( a_n \cos(n\omega_0 x) + b_n \sin(n\omega_0 x) \right) $. Since $ f(x) $ is even, $ b_n = 0 $ for all $ n $, and the series simplifies to $ f(x) = a_0 + \sum_{n=1}^{\infty} a_n \cos(n\omega_0 x) $.
The constant term $ a_0 $ is calculated using the formula:
$ a_0 = \frac{1}{T} \int_{-T/2}^{T/2} f(x) dx $
Substituting the given values ($ T=4 $, $ L=T/2=2 $):
$ a_0 = \frac{1}{4} \int_{-2}^{2} f(x) dx $
Integrating over the defined intervals:
$ a_0 = \frac{1}{4} \left( \int_{-2}^{-1} 0 dx + \int_{-1}^{1} 2k dx + \int_{1}^{2} 0 dx \right) = \frac{1}{4} \int_{-1}^{1} 2k dx $
$ a_0 = \frac{1}{4} [2kx]_{-1}^{1} = \frac{1}{4} (2k(1) - 2k(-1)) = \frac{1}{4} (2k + 2k) = \frac{4k}{4} = k $
The coefficients $ a_n $ are calculated as:
$ a_n = \frac{2}{T} \int_{-T/2}^{T/2} f(x) \cos(n\omega_0 x) dx $
$ a_n = \frac{2}{4} \int_{-2}^{2} f(x) \cos\left(\frac{n\pi}{2} x\right) dx $
Due to the even symmetry of $ f(x) $, we can simplify the integral range:
$ a_n = \frac{2}{2} \int_{0}^{2} f(x) \cos\left(\frac{n\pi}{2} x\right) dx = \int_{0}^{1} 2k \cos\left(\frac{n\pi}{2} x\right) dx $
Evaluating the integral:
$ a_n = 2k \left[ \frac{\sin(\frac{n\pi}{2} x)}{\frac{n\pi}{2}} \right]_0^1 = 2k \left[ \frac{2}{n\pi} \sin\left(\frac{n\pi}{2} x\right) \right]_0^1 $
$ a_n = \frac{4k}{n\pi} \left( \sin\left(\frac{n\pi}{2}\right) - \sin(0) \right) = \frac{4k}{n\pi} \sin\left(\frac{n\pi}{2}\right) $
The term $ \sin\left(\frac{n\pi}{2}\right) $ yields the sequence $ 1, 0, -1, 0, 1, \dots $ for $ n = 1, 2, 3, 4, 5, \dots $. Non-zero coefficients $ a_n $ occur only for odd values of $ n $.
The series expansion includes:
Combining the constant term and the cosine series terms:
$ f(x) = k + \frac{4k}{\pi} \left( \cos \frac{\pi}{2} x - \frac{1}{3} \cos \frac{3\pi}{2} x + \frac{1}{5} \cos \frac{5\pi}{2} x -+ ... \right) $
This result matches option C.
The Fourier series representation of a square wave is shown in the figure below. The fluctuations seen near $x = \pm 1$ are named after which one of the following scientists?

The Fourier series expansion of the function $f(x) = |\cos(x)|$ in the interval $(-\pi, \pi)$ is $\alpha + \beta \left[ \frac{1}{3}\cos(2x) - \frac{1}{15}\cos(4x) + \dots \right]$.
The values of $\alpha$ and $\beta$ respectively are ______.
Periodic function $f(x)$ is given below. $$f(x) = \begin{cases} -1, & \text{when } -\pi < x < 0 \\ 1, & \text{when } 0 < x < \pi \end{cases} ; f(x + 2\pi) = f(x)$$ The CORRECT option representing the Fourier series expansion of $f(x)$ is:
A time-limited waveform $g(x)$ is specified as follows: $$g(x) = \begin{cases} -k, & -\pi < x \le 0 \\ +k, & 0 < x \le \pi \\ 0, & \text{otherwise} \end{cases}$$ A new waveform $f(x)$ is constructed from $g(x)$ as follows: $$f(x) = \sum_{m=-\infty}^{\infty} g(x + 2\pi m), \quad \text{for all } x \in \mathbb{R}$$ The sum of the coefficients of the third harmonics of the sine and cosine terms in the trigonometric Fourier series expansion of $f(x)$ is $\frac{2}{3\pi}$.
What is the value of $k$?
The effective value of the current for the Sawtooth waveform as shown is:
