University & engineering mathematics

Fourier series
formula sheet

A periodic function, written as a sum of sine and cosine waves. Find the coefficients, use symmetry, and choose the right interval.

Back to Formula Library

Read this first. All angles are in radians. We use the constant term a₀/2, with n = 1, 2, 3, … and L > 0. The symbol ∼ denotes the Fourier expansion; equality at a point requires convergence to the function there.

For a periodic, piecewise smooth function, the series converges to the function at a continuity point and to the average of the two one-sided limits at a jump.

01 · Standard forms

Period 2π: Fourier expansion

\[f(x)\sim \frac{a_0}{2}+\sum_{n=1}^{\infty}a_n\cos(nx)\]
\[\hspace{1em}+\sum_{n=1}^{\infty}b_n\sin(nx)\]

Use one complete period, conventionally −π to π.

Period 2π: coefficients

\[a_0=\frac{1}{\pi}\int_{-\pi}^{\pi} f(x)\,dx\]
\[a_n=\frac{1}{\pi}\int_{-\pi}^{\pi} f(x)\cos(nx)\,dx\]
\[b_n=\frac{1}{\pi}\int_{-\pi}^{\pi} f(x)\sin(nx)\,dx\]

The average value is a₀/2, not a₀.

Period 2L: Fourier expansion

\[f(x)\sim\frac{a_0}{2}+\sum_{n=1}^{\infty}a_n\cos\!\left(\frac{n\pi x}{L}\right)\]
\[\hspace{1em}+\sum_{n=1}^{\infty}b_n\sin\!\left(\frac{n\pi x}{L}\right)\]

Set L = π to recover the standard 2π form.

Period 2L: coefficients

\[a_0=\frac1L\int_{-L}^{L}f(x)\,dx\]
\[a_n=\frac1L\int_{-L}^{L}f(x)\cos\!\left(\frac{n\pi x}{L}\right)dx\]
\[b_n=\frac1L\int_{-L}^{L}f(x)\sin\!\left(\frac{n\pi x}{L}\right)dx\]

Here L is half the period.

Any period T: angular frequency

\[\omega_0=\frac{2\pi}{T}\]

Replace nπx/L by nω₀t. Integrate over any complete period [t₀, t₀ + T].

Any period T: coefficients

\[a_0=\frac2T\int_{t_0}^{t_0+T}f(t)\,dt\]
\[a_n=\frac2T\int_{t_0}^{t_0+T}f(t)\cos(n\omega_0t)\,dt\]
\[b_n=\frac2T\int_{t_0}^{t_0+T}f(t)\sin(n\omega_0t)\,dt\]

Keep the phase origin consistent with the sine and cosine arguments.

02 · Symmetry shortcuts

Even function: cosine terms only

\[f(-x)=f(x)\]
\[b_n=0\]
\[a_n=\frac2L\int_0^L f(x)\cos\!\left(\frac{n\pi x}{L}\right)dx\]

This formula also gives a₀ when n = 0. The constant in the series is still a₀/2.

Odd function: sine terms only

\[f(-x)=-f(x)\]
\[a_0=a_n=0\]
\[b_n=\frac2L\int_0^L f(x)\sin\!\left(\frac{n\pi x}{L}\right)dx\]

Check symmetry about x = 0 before integrating.

Half-wave symmetry

\[f\!\left(t+\frac T2\right)=-f(t)\]
\[a_0=0,\qquad a_{2k}=b_{2k}=0\]

For k = 1, 2, 3, … . Only odd-numbered harmonics can remain.

03 · Half-range expansions

Half-range cosine series

\[f(x)\sim\frac{a_0}{2}+\sum_{n=1}^{\infty}a_n\cos\!\left(\frac{n\pi x}{L}\right)\]
\[a_n=\frac2L\int_0^L f(x)\cos\!\left(\frac{n\pi x}{L}\right)dx\]

Given f on 0 < x < L, extend it evenly to −L < x < L, then periodically with period 2L. Use n = 0 for a₀.

Half-range sine series

\[f(x)\sim\sum_{n=1}^{\infty}b_n\sin\!\left(\frac{n\pi x}{L}\right)\]
\[b_n=\frac2L\int_0^L f(x)\sin\!\left(\frac{n\pi x}{L}\right)dx\]

Extend f oddly, then periodically with period 2L. At an endpoint jump the series takes the midpoint value, not necessarily the assigned endpoint value.

04 · Complex exponential form

Complex Fourier expansion

\[f(t)\sim\sum_{n=-\infty}^{\infty}c_ne^{in\omega_0t}\]
\[c_n=\frac1T\int_{t_0}^{t_0+T}f(t)e^{-in\omega_0t}\,dt\]

Here n is any integer, i² = −1 and ω₀ = 2π/T.

Convert between coefficients

\[c_0=\frac{a_0}{2}\]
\[c_n=\frac{a_n-ib_n}{2}\]
\[c_{-n}=\frac{a_n+ib_n}{2}\]
\[a_n=c_n+c_{-n}\]
\[b_n=i(c_n-c_{-n})\]

For n ≥ 1. If f is real-valued, c₋ₙ is the complex conjugate of cₙ.

Amplitude and phase

\[a_n\cos(n\omega_0t)+b_n\sin(n\omega_0t)\]
\[=R_n\cos(n\omega_0t-\phi_n)\]
\[R_n=\sqrt{a_n^2+b_n^2}\]
\[\phi_n=\operatorname{atan2}(b_n,a_n)\]

Use atan2 to select the correct quadrant. If Rₙ = 0, the phase is arbitrary.

05 · Useful properties

Orthogonality: matching harmonics

\[\int_{-L}^{L}\cos^2\!\left(\frac{n\pi x}{L}\right)dx=L\]
\[\int_{-L}^{L}\sin^2\!\left(\frac{n\pi x}{L}\right)dx=L\]

For positive integers n. Different positive-integer sine harmonics are orthogonal, as are different cosine harmonics. Every sine–cosine product integrates to zero over −L to L. The integral of 1 is 2L.

Value at a jump

\[S(x)=\frac{f(x^-)+f(x^+)}2\]

For a periodic, piecewise smooth function, use the limits of the periodic extension, including at the interval endpoints.

Parseval: real coefficients

\[\frac1L\int_{-L}^{L}|f(x)|^2\,dx\]
\[=\frac{|a_0|^2}{2}+\sum_{n=1}^{\infty}(|a_n|^2+|b_n|^2)\]

Valid for square-integrable functions on one period. For real f, the absolute-value squares are ordinary squares.

Parseval: complex coefficients

\[\frac1T\int_{t_0}^{t_0+T}|f(t)|^2\,dt=\sum_{n=-\infty}^{\infty}|c_n|^2\]

The left side is the mean-square value over one period.

Linearity

\[\alpha f+\beta g\quad\longleftrightarrow\quad\alpha c_n+\beta d_n\]

Use the same period and angular frequency for both functions.

Time shift

\[f(t-t_s)\quad\longleftrightarrow\quad c_ne^{-in\omega_0t_s}\]

Shifting the waveform changes the phases of its coefficients.

Differentiation of coefficients

\[f^{\prime}(t)\quad\longleftrightarrow\quad in\omega_0c_n\]

For absolutely continuous periodic f with integrable derivative. Stronger regularity is needed to assert pointwise convergence of the differentiated series; use the jump rule when applicable.

06 · Standard examples

Sawtooth: f(x) = x on (−π, π)

\[a_0=a_n=0\]
\[b_n=\frac{2(-1)^{n+1}}n\]
\[x=2\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}n\sin(nx)\]

Valid for −π < x < π. Extend periodically with period 2π; at the jumps x = (2k + 1)π the series converges to 0.

Square wave: height ±1

\[f(x)=\frac4\pi\sum_{k=0}^{\infty}\frac{\sin((2k+1)x)}{2k+1}\]

Take f(x) = 1 for 0 < x < π and f(x) = −1 for −π < x < 0, then extend with period 2π. At integer multiples of π the series converges to 0.

Even example: f(x) = x²

\[a_0=\frac{2\pi^2}{3}\]
\[a_n=\frac{4(-1)^n}{n^2},\qquad b_n=0\]
\[x^2=\frac{\pi^2}{3}+4\sum_{n=1}^{\infty}\frac{(-1)^n}{n^2}\cos(nx)\]

Valid on −π ≤ x ≤ π, with the 2π-periodic extension outside this interval.

Before you finish

Three checks: use one complete period, keep the constant term as a₀/2, and test even or odd symmetry before calculating coefficients. For a piecewise function, split each integral at every change of definition.

Worked step: the sawtooth sine coefficient

Because f(x) = x is odd, all cosine coefficients vanish. Use integration by parts for the remaining sine coefficient.

\[b_n=\frac2\pi\int_0^\pi x\sin(nx)\,dx\]
\[=\frac2\pi\left[-\frac{x\cos(nx)}n+\frac{\sin(nx)}{n^2}\right]_0^\pi\]
\[=\frac{2(-1)^{n+1}}n\]

Mathematical reference: NIST Digital Library of Mathematical Functions, Fourier Series. This sheet uses the a₀/2 convention throughout.

Formulae

Available Formula Sheets

⌂ Home
Latest
Latest Content Auto
Home