Skip to main content

Physics Library

Free Physics Study Material for CSIR NET, IIT JAM, GATE, JEST & TIFR

by Pravegaa Education

Chapter 2: Fourier Series

Mathematical Physics, Part 1. Theory, numbered worked examples and 6 previous years’ questions (CSIR NET-JRF, GATE, IIT-JAM and JEST, 2020–2026) with full solutions. Click Show solution under any question.

Theory

Fourier series (FS) are infinite series that represent periodic functions by cosines and sines. They are central to physics, engineering and applied mathematics.

Periodic function A function \(f(x)\), defined for all real \(x\) except possibly at some points, is periodic if there is a positive number \(p\), a period of \(f(x)\), such that \[ f(x+np)=f(x). \]

Figure 2.1 A periodic function of period \(p\).
Example 2.1

\(f(x)=\tan x\).

Solution.

\(\tan x\) is periodic (period \(\pi\)) but undefined at the countably many points \(x=\pm\frac\pi2,\pm\frac{3\pi}2,\dots\). The graph of any periodic function is the periodic repetition of its graph on an interval of length \(p\).

Fundamental period The smallest positive period is the fundamental period.

  • Examples of periodic functions: cosine, sine, tangent and cotangent.

  • Examples of non-periodic functions: \(x\), \(x^2\), \(x^3\), \(\ee^x\), \(\cosh x\) and \(\ln x\).

  • If \(f(x)\) and \(g(x)\) have period \(p\), then so does \(af(x)+bg(x)\) for any constants \(a\), \(b\).

Figure 2.2 Cosine and sine functions having the period \(2\pi\).

The series we use are trigonometric series, \[ a_0+a_1\cos x+b_1\sin x+a_2\cos2x+b_2\sin2x+\cdots=a_0+\sum_{n=1}^\infty(a_n\cos nx+b_n\sin nx). \]

Full Series

A function \(f(x)\) of period \(2\pi\) is written as the trigonometric series

\[ f(x)=a_0+\sum_{n=1}^\infty(a_n\cos nx+b_n\sin nx), \] \begin{gather*} a_0=\frac1{2\pi}\int_{-\pi}^{\pi}f(x)\,\dd x,\\ a_n=\frac1\pi\int_{-\pi}^{\pi}f(x)\cos nx\,\dd x,\qquad b_n=\frac1\pi\int_{-\pi}^{\pi}f(x)\sin nx\,\dd x,\qquad n=1,2,\dots \end{gather*}

Alternatively, so that every coefficient carries the same factor \(1/\pi\), the FS is written as

\[ f(x)=\frac{a_0}{2}+\sum_{n=1}^\infty(a_n\cos nx+b_n\sin nx), \] with the Fourier coefficients given by the Euler formulas \begin{gather*} a_0=\frac1\pi\int_{-\pi}^{\pi}f(x)\,\dd x,\\ a_n=\frac1\pi\int_{-\pi}^{\pi}f(x)\cos nx\,\dd x,\qquad b_n=\frac1\pi\int_{-\pi}^{\pi}f(x)\sin nx\,\dd x,\qquad n=1,2,\dots \end{gather*}

Example 2.2

Write the Fourier series for \[ f(x)=\begin{cases}-k & \text{if } -\pi<x<0,\\ \phantom{-}k&\text{if } 0<x<\pi,\end{cases} \qquad\text{and}\qquad f(x+2\pi)=f(x). \]

Such functions occur as external forces on mechanical systems, EMFs in circuits, etc.

Discontinuity

The value of \(f(x)\) at a single point does not affect the integral, so \(f(x)\) may be left undefined at \(x=0\) and \(x=\pm\pi\).

Solution.

\(f\) is odd, so \(a_0=\frac1\pi\int_{-\pi}^{\pi}f(x)\,\dd x=0\) and \begin{align*} a_n&=\frac1\pi\int_{-\pi}^{\pi}f(x)\cos nx\,\dd x=0 &&\bigl(f(x)\cos nx\ \text{is odd}\bigr),\\ b_n&=\frac1\pi\int_{-\pi}^{\pi}f(x)\sin nx\,\dd x=\frac2\pi\int_0^\pi k\sin nx\,\dd x &&\bigl(f(x)\sin nx\ \text{is even}\bigr)\\ &=\frac{2k}{n\pi}(1-\cos n\pi). \end{align*} Hence \[ b_1=\frac{4k}{\pi},\qquad b_2=0,\qquad b_3=\frac{4k}{3\pi},\qquad b_4=0,\ \dots, \] \[ f(x)=\frac{4k}{\pi}\Bigl(\sin x+\frac13\sin3x+\frac15\sin5x+\cdots\Bigr). \]

Leibniz series (1674) Setting \(x=\pi/2\) gives \[ f\Bigl(\frac\pi2\Bigr)=k=\frac{4k}\pi\Bigl(1-\frac13+\frac15-+\cdots\Bigr), \qquad\text{thus}\qquad 1-\frac13+\frac15-\frac17+-\cdots=\frac\pi4. \]

Continue reading — it's free

Register with your mobile number to unlock the full chapter and all 100+ chapters of the Physics Library.

Register / Login with OTP

Already registered? Use the same button — just verify your number.