Complex Variables & Transforms · Unit 2 · Topic 11

Fourier transform: a Fourier series that never repeats.

Short answer

On this page, \(F(s) = \int_{-\infty}^{\infty} f(x)\,e^{isx}\,dx\) and the inverse is \(f(x) = \dfrac{1}{2\pi}\int_{-\infty}^{\infty} F(s)\,e^{-isx}\,ds\).

For example, \(\mathcal{F}\{e^{-a|x|}\} = \dfrac{2a}{a^2+s^2}\), and the pulse equal to 1 on \(|x| < a\) has \(F(s) = \dfrac{2\sin as}{s}\).

Engineering MathsSemester IIIBSc
01

Definition and the convention used here

Before you start: read Fourier series first, and be comfortable with improper integrals.

A Fourier series handles a function that repeats. A function on the whole real line that does not repeat, like a single pulse, needs every frequency \(s\), not just whole numbers \(n\). The sum over \(n\) becomes an integral over \(s\), and the coefficients become a function \(F(s)\): the Fourier transform.

Fourier transform (convention used on this page)

\[F(s) = \mathcal{F}\{f(x)\} = \int_{-\infty}^{\infty} f(x)\,e^{isx}\,dx\]

Inverse Fourier transform

\[f(x) = \frac{1}{2\pi}\int_{-\infty}^{\infty} F(s)\,e^{-isx}\,ds\]

Books do not agree on where the \(2\pi\) goes or on the sign in the exponent. Some put \(\dfrac{1}{\sqrt{2\pi}}\) in front of both integrals; some use \(e^{-isx}\) in the forward transform. The answers then differ by a constant factor or by \(s \to -s\). Everything on this page, every table entry and every example, uses the box above. Check which convention your syllabus uses before copying a formula from anywhere else.

The transform exists if \(f\) is piecewise smooth and absolutely integrable, \(\int_{-\infty}^{\infty}|f(x)|\,dx < \infty\). At a jump, the inverse formula returns the average of the two one-sided values, just as a Fourier series does.

Sine and cosine transforms

For \(f\) defined on \((0, \infty)\)

Sine transform: \(F_s(s) = \displaystyle\int_0^\infty f(x)\sin sx\,dx\), with inverse \(f(x) = \dfrac{2}{\pi}\displaystyle\int_0^\infty F_s(s)\sin sx\,ds\)

Cosine transform: \(F_c(s) = \displaystyle\int_0^\infty f(x)\cos sx\,dx\), with inverse \(f(x) = \dfrac{2}{\pi}\displaystyle\int_0^\infty F_c(s)\cos sx\,ds\)

They connect to the full transform through symmetry. Since \(e^{isx} = \cos sx + i\sin sx\), an even \(f\) has \(F(s) = 2F_c(s)\), and an odd \(f\) has \(F(s) = 2iF_s(s)\).

02

Standard pairs and properties

\(f(x)\)Transform
\(e^{-a|x|}\), \(a > 0\)\(F(s) = \dfrac{2a}{a^2 + s^2}\)
\(1\) for \(|x| < a\), \(0\) for \(|x| > a\)\(F(s) = \dfrac{2\sin as}{s}\) (and \(2a\) at \(s = 0\))
\(e^{-ax^2}\), \(a > 0\)\(F(s) = \sqrt{\dfrac{\pi}{a}}\,e^{-s^2/(4a)}\)
\(e^{-ax}\) on \((0, \infty)\)\(F_c(s) = \dfrac{a}{a^2+s^2}\), \(F_s(s) = \dfrac{s}{a^2+s^2}\)
\(e^{-x^2}\) on \((0, \infty)\)\(F_c(s) = \dfrac{\sqrt\pi}{2}\,e^{-s^2/4}\)

Two standard integrals do most of the work, both for \(a > 0\): \[\int_0^\infty e^{-ax}\cos bx\,dx = \frac{a}{a^2+b^2},\qquad \int_0^\infty e^{-ax}\sin bx\,dx = \frac{b}{a^2+b^2}\]

Properties (with \(F(s) = \mathcal{F}\{f(x)\}\))

Linearity

\(\mathcal{F}\{af + bg\} = aF + bG\)

Shifting

\(\mathcal{F}\{f(x - a)\} = e^{ias}F(s)\)

Change of scale

\(\mathcal{F}\{f(ax)\} = \dfrac{1}{|a|}F\!\left(\dfrac{s}{a}\right)\), for \(a \ne 0\)

Modulation

\(\mathcal{F}\{f(x)\cos ax\} = \tfrac{1}{2}\big[F(s + a) + F(s - a)\big]\)

Derivative

\(\mathcal{F}\{f'(x)\} = -is\,F(s)\), if \(f(x) \to 0\) as \(|x| \to \infty\)

Parseval's identity

\(\displaystyle\int_{-\infty}^{\infty}|f(x)|^2\,dx = \frac{1}{2\pi}\int_{-\infty}^{\infty}|F(s)|^2\,ds\)

Method

  1. Check for symmetry. For even \(f\), \(F(s) = 2\int_0^\infty f(x)\cos sx\,dx\). For odd \(f\), \(F(s) = 2i\int_0^\infty f(x)\sin sx\,dx\).
  2. Integrate, using the two standard integrals or parts.
  3. To evaluate a definite integral, write the inverse formula for a pair you know, put in a particular \(x\), and read off the integral.
03

Solved examples

Example 1: Two-sided exponential

Easy

Find the Fourier transform of \(f(x) = e^{-a|x|}\), \(a > 0\).

  1. \(f\) is even, so \(F(s) = 2\displaystyle\int_0^\infty e^{-ax}\cos sx\,dx\).
  2. The standard integral gives \(\dfrac{a}{a^2+s^2}\). Double it.

Answer\(\mathcal{F}\{e^{-a|x|}\} = \dfrac{2a}{a^2+s^2}\)

Example 2: Rectangular pulse

Easy

Find the Fourier transform of \(f(x) = 1\) for \(|x| < a\) and \(0\) for \(|x| > a\).

  1. \(F(s) = \displaystyle\int_{-a}^{a} e^{isx}\,dx = \Big[\frac{e^{isx}}{is}\Big]_{-a}^{a} = \frac{e^{ias} - e^{-ias}}{is}\).
  2. Since \(e^{i\theta} - e^{-i\theta} = 2i\sin\theta\), this is \(\dfrac{2\sin as}{s}\). At \(s = 0\) the integral is just \(2a\), which is also the limit.

Answer\(F(s) = \dfrac{2\sin as}{s}\) for \(s \ne 0\), and \(F(0) = 2a\)

Example 3: Sine and cosine transforms

Medium

Find the Fourier sine and cosine transforms of \(f(x) = e^{-ax}\), \(a > 0\).

  1. \(F_c(s) = \displaystyle\int_0^\infty e^{-ax}\cos sx\,dx = \frac{a}{a^2+s^2}\).
  2. \(F_s(s) = \displaystyle\int_0^\infty e^{-ax}\sin sx\,dx = \frac{s}{a^2+s^2}\).
  3. Both come from integrating by parts twice, or from the real and imaginary parts of \(\int_0^\infty e^{-(a - is)x}\,dx = \dfrac{1}{a - is}\).

Answer\(F_c(s) = \dfrac{a}{a^2+s^2}\) and \(F_s(s) = \dfrac{s}{a^2+s^2}\)

Example 4: The Dirichlet integral

Medium

Use Example 2 to show that \(\displaystyle\int_0^\infty \frac{\sin x}{x}\,dx = \frac{\pi}{2}\).

  1. Take \(a = 1\), so \(F(s) = \dfrac{2\sin s}{s}\). The inverse formula says \(f(x) = \dfrac{1}{2\pi}\displaystyle\int_{-\infty}^{\infty}\frac{2\sin s}{s}\,e^{-isx}\,ds\).
  2. Put \(x = 0\), where \(f(0) = 1\): \(1 = \dfrac{1}{\pi}\displaystyle\int_{-\infty}^{\infty}\frac{\sin s}{s}\,ds\).
  3. The integrand is even, so \(\displaystyle\int_0^\infty \frac{\sin s}{s}\,ds = \frac{\pi}{2}\).

Answer\(\displaystyle\int_0^\infty \frac{\sin x}{x}\,dx = \frac{\pi}{2}\)

Example 5: A parabolic pulse

Exam level

Find the Fourier transform of \(f(x) = 1 - x^2\) for \(|x| \le 1\) and \(0\) otherwise. Hence evaluate \(\displaystyle\int_0^\infty \frac{x\cos x - \sin x}{x^3}\cos\frac{x}{2}\,dx\).

  1. \(f\) is even, so \(F(s) = 2\displaystyle\int_0^1 (1 - x^2)\cos sx\,dx\).
  2. By parts, \(\displaystyle\int_0^1 (1 - x^2)\cos sx\,dx = \frac{2(\sin s - s\cos s)}{s^3}\), so \(F(s) = \dfrac{4(\sin s - s\cos s)}{s^3}\).
  3. Inverse, using that \(F\) is even: \[f(x) = \frac{4}{\pi}\int_0^\infty \frac{\sin s - s\cos s}{s^3}\cos sx\,ds\]
  4. Put \(x = \tfrac{1}{2}\), where \(f = 1 - \tfrac{1}{4} = \tfrac{3}{4}\): \(\displaystyle\int_0^\infty \frac{\sin s - s\cos s}{s^3}\cos\frac{s}{2}\,ds = \frac{3\pi}{16}\).
  5. The integral asked for has the opposite sign in the numerator.

Answer\(F(s) = \dfrac{4(\sin s - s\cos s)}{s^3}\), and the integral is \(-\dfrac{3\pi}{16}\)

Example 6: A Gaussian

Exam level

Show that \(\mathcal{F}\{e^{-x^2}\} = \sqrt\pi\,e^{-s^2/4}\), and deduce \(\mathcal{F}\{e^{-x^2/2}\}\).

  1. Complete the square in the exponent: \(-x^2 + isx = -\left(x - \dfrac{is}{2}\right)^2 - \dfrac{s^2}{4}\).
  2. So \(F(s) = e^{-s^2/4}\displaystyle\int_{-\infty}^{\infty} e^{-(x - is/2)^2}\,dx\). Shifting the line of integration (justified by Cauchy's theorem) leaves \(\int_{-\infty}^{\infty} e^{-u^2}\,du = \sqrt\pi\).
  3. For \(e^{-x^2/2}\), use change of scale with \(a = \dfrac{1}{\sqrt 2}\): \(\sqrt 2\cdot\sqrt\pi\,e^{-(\sqrt 2 s)^2/4}\).

Answer\(\mathcal{F}\{e^{-x^2}\} = \sqrt\pi\,e^{-s^2/4}\) and \(\mathcal{F}\{e^{-x^2/2}\} = \sqrt{2\pi}\,e^{-s^2/2}\)

Example 7: Laplace's integral

Exam level

Using Example 1, show that \(\displaystyle\int_0^\infty \frac{\cos sx}{1+s^2}\,ds = \frac{\pi}{2}e^{-|x|}\).

  1. With \(a = 1\): \(\mathcal{F}\{e^{-|x|}\} = \dfrac{2}{1+s^2}\).
  2. Inverse: \(e^{-|x|} = \dfrac{1}{2\pi}\displaystyle\int_{-\infty}^{\infty}\frac{2}{1+s^2}\,e^{-isx}\,ds\). The \(\sin sx\) part is odd in \(s\) and integrates to 0.
  3. So \(e^{-|x|} = \dfrac{1}{\pi}\displaystyle\int_{-\infty}^{\infty}\frac{\cos sx}{1+s^2}\,ds = \frac{2}{\pi}\int_0^\infty \frac{\cos sx}{1+s^2}\,ds\).

Answer\(\displaystyle\int_0^\infty \frac{\cos sx}{1+s^2}\,ds = \frac{\pi}{2}e^{-|x|}\)

Example 8: An integral equation

Exam level

Find \(f(x)\) if \(\displaystyle\int_0^\infty f(x)\cos sx\,dx = e^{-s}\) for \(s \ge 0\).

  1. The left side is the cosine transform, so \(F_c(s) = e^{-s}\).
  2. Inverse cosine transform: \(f(x) = \dfrac{2}{\pi}\displaystyle\int_0^\infty e^{-s}\cos sx\,ds\).
  3. The standard integral with \(a = 1\), \(b = x\) gives \(\dfrac{1}{1+x^2}\).

Answer\(f(x) = \dfrac{2}{\pi(1+x^2)}\)

Vipul Sir's tip

Most exam integrals of the form \(\int_0^\infty (\cdots)\,ds\) are an inverse transform in disguise. Look at the integrand, ask which \(F(s)\) it contains, and then put a convenient \(x\) into the inverse formula. Example 4 and Example 5 are the same trick; once you see it, a whole family of questions becomes a two-line answer.

04

Common mistakes

1. Mixing two conventions

With the convention on this page, \(\mathcal{F}\{e^{-|x|}\} = \dfrac{2}{1+s^2}\). With \(\dfrac{1}{\sqrt{2\pi}}\) in front, the same function gives \(\sqrt{\dfrac{2}{\pi}}\cdot\dfrac{1}{1+s^2}\). Using a transform from one book with the inverse from another puts a wrong factor in every answer.

2. Taking the full transform of \(e^{-ax}\)

\(e^{-ax}\) blows up as \(x \to -\infty\), so \(\int_{-\infty}^{\infty} e^{-ax}e^{isx}\,dx\) does not exist. On the whole line use \(e^{-a|x|}\); for a function on \((0, \infty)\) use the sine or cosine transform.

3. The wrong factor in the inverse sine or cosine transform

It is \(\dfrac{2}{\pi}\), not \(\dfrac{1}{2\pi}\) or \(\dfrac{1}{\pi}\). In Example 8, using \(\dfrac{1}{\pi}\) would give \(f(x) = \dfrac{1}{\pi(1+x^2)}\), whose cosine transform is \(\tfrac{1}{2}e^{-s}\).

05

Practice questions

Try each one on paper before you open the answer.

Q1Find the Fourier transform of \(e^{-2|x|}\).

\(a = 2\): \(\dfrac{4}{4+s^2}\).

Q2Find the Fourier transform of \(f(x) = 1\) for \(|x| < 2\), \(0\) otherwise.

\(a = 2\): \(\dfrac{2\sin 2s}{s}\).

Q3Find the Fourier sine transform of \(f(x) = 1\) for \(0 < x < a\), \(0\) for \(x > a\).

\(\displaystyle\int_0^a \sin sx\,dx = \Big[-\frac{\cos sx}{s}\Big]_0^a = \frac{1 - \cos as}{s}\).

Q4Use the shifting property to find \(\mathcal{F}\{e^{-|x-1|}\}\).

\(e^{-|x|} \to \dfrac{2}{1+s^2}\), and a shift by 1 multiplies by \(e^{is}\): \(\dfrac{2e^{is}}{1+s^2}\).

Q5Find the Fourier cosine transform of \(e^{-x^2}\).

\(e^{-x^2}\) is even, so \(F_c(s) = \tfrac{1}{2}F(s) = \dfrac{\sqrt\pi}{2}\,e^{-s^2/4}\).

Q6Use Parseval's identity with the pulse of Example 2 (\(a = 1\)) to show \(\displaystyle\int_0^\infty \frac{\sin^2 t}{t^2}\,dt = \frac{\pi}{2}\).

\(\displaystyle\int_{-\infty}^{\infty}|f|^2\,dx = 2\). So \(\dfrac{1}{2\pi}\displaystyle\int_{-\infty}^{\infty}\frac{4\sin^2 s}{s^2}\,ds = 2\).

That gives \(\displaystyle\int_{-\infty}^{\infty}\frac{\sin^2 s}{s^2}\,ds = \pi\), and half of it over \((0, \infty)\).

Stuck on a question?

Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.

06

Frequently asked questions

What is the Fourier transform of e^(−a|x|)?

With \(F(s) = \int_{-\infty}^{\infty} f(x)e^{isx}\,dx\), it is \(\dfrac{2a}{a^2+s^2}\) for \(a > 0\). With the \(\dfrac{1}{\sqrt{2\pi}}\) convention it is \(\sqrt{\dfrac{2}{\pi}}\cdot\dfrac{a}{a^2+s^2}\).

What is the difference between a Fourier series and a Fourier transform?

A Fourier series is for a periodic function and uses whole-number frequencies \(n\). A Fourier transform is for a non-periodic function on the whole line and uses every real frequency \(s\), so the sum becomes an integral.

Why do different books give different answers for the same Fourier transform?

They use different conventions: the constant in front (\(1\), \(\dfrac{1}{2\pi}\) or \(\dfrac{1}{\sqrt{2\pi}}\)) and the sign in \(e^{\pm isx}\). The answers differ by a constant or by \(s \to -s\). Stick to one convention throughout.

When should I use the Fourier sine or cosine transform?

When the function lives on \((0, \infty)\) only. The cosine transform corresponds to extending \(f\) as an even function, the sine transform to extending it as an odd function.

Related lessons

← All 12 Complex Variables & Transforms topics
Vipul Sir
Written by Vipul Sir

Vipul Sir has taught mathematics for over 15 years to HSC, CBSE, ICSE, IGCSE/IB, Diploma, Engineering and BSc students at VVS Classes in Goregaon and Vile Parle, Mumbai. He teaches every class himself, concepts first and exam technique second.

Complex Variables and Transforms

Get Complex Variables & Transforms right, with Vipul Sir beside you.

Concept-first classes in small batches in Goregaon and Vile Parle, or online. Your first class is free.

WhatsApp↗