GATE CE 2026 · Set-2 · Taylor Series

MCQ · 1 mark · Problem EM-TAYL-0017

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:
  1. A
    \(f(x) = \dfrac{4}{\pi}\left[\sin x + \dfrac{\sin 3x}{3} + \dfrac{\sin 5x}{5} + \cdots\right]\)
  2. B
    \(f(x) = -\dfrac{4}{\pi}\left[\sin x + \dfrac{\sin 3x}{3} + \dfrac{\sin 5x}{5} + \cdots\right]\)
  3. C
    \(f(x) = 1 + \dfrac{4}{\pi}\left[\sin x + \dfrac{\sin 3x}{3} + \dfrac{\sin 5x}{5} + \cdots\right]\)
  4. D
    \(f(x) = 1 - \dfrac{4}{\pi}\left[\sin x + \dfrac{\sin 3x}{3} + \dfrac{\sin 5x}{5} + \cdots\right]\)

Solve it on GATE DA practice →More Differential Calculus problems

Show the worked solutionThe function is an odd function (antisymmetric about \(x = 0\)), so its Fourier series contains only sine terms (no cosine terms, no constant).Fourier sine coefficients: \(b_n = \dfrac{2}{\pi}\int_0^{\pi} f(x)\sin(nx)\,dx = \dfrac{2}{\pi}\int_0^{\pi} 1 \cdot \sin(nx)\,dx = \dfrac{2}{\pi}\left[-\dfrac{\cos(nx)}{n}\right]_0^{\pi} = \dfrac{2}{n\pi}(1 - \cos n\pi)\)For odd n: \(\cos(n\pi) = -1\) \(\rightarrow\) \(b_n = \dfrac{4}{n\pi}\) For even n: \(\cos(n\pi) = 1\) \(\rightarrow\) \(b_n = 0\)Therefore: \(f(x) = \dfrac{4}{\pi}\left[\sin x + \dfrac{\sin 3x}{3} + \dfrac{\sin 5x}{5} + \cdots\right]\)

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com