Ripetizioni di Analisi
EN

Worked examples · Sheet 1

Fourier series of square waves and step functions

Theory used:Fourier coefficientsCosine-only and sine-only seriesFourier series

Go to: Exercise 1Exercise 2Exercise 3

Exercise 1

Find the Fourier series of the -periodic extension of

The function equals to the left of the origin and to the right, so it is odd away from its jumps (the value assigned at does not affect the coefficients, which are integrals). This symmetry makes all the zero and the series contains only sines, with given by twice the integral over . On the function equals , hence what remains is the integral of , which equals . Since , the coefficient is zero for even and equals for odd ; in the final series only the odd harmonics survive, written with the index .

Exercise 2

Find the Fourier series of the -periodic extension of

x y -7-5-3-113571 O
y=12y = \dfrac{1}{2}y=12+2π(sin⁡x+sin⁡(3x)3+sin⁡(5x)5)y = \dfrac{1}{2} + \dfrac{2}{\pi} \left(\sin x + \dfrac{\sin \left(3 x\right)}{3} + \dfrac{\sin \left(5 x\right)}{5}\right)
Periodic extension ( on , on ), the mean (dashed) and the partial sum up to (red), which oscillates around the function

The function is neither even nor odd, therefore all the coefficients are computed with the integrals over ; since the function is zero on , every integral reduces to the interval . The coefficient equals , therefore the constant term of the series is , which is the mean of the function over one period. The with are zero because . The are those of the previous exercise divided by , hence the series is the constant plus half the series of the square wave: the result is consistent with the identity , where is the square wave of exercise 1.

Exercise 3

Find the Fourier series of the -periodic extension of the odd function defined on by

x y -7-5-3-11357-11 O
y=2π(sin⁡x+sin⁡(2x)+sin⁡(3x)3)y = \dfrac{2}{\pi} \left(\sin x + \sin \left(2 x\right) + \dfrac{\sin \left(3 x\right)}{3}\right)
Odd -periodic extension: on , on , on , on ; dashed, the partial sum up to

The function is given on and extended by oddness, therefore the are zero and the are computed with twice the integral over . The function is zero on , hence the integral reduces to . The value follows a cycle of length four, therefore the coefficients are no longer split into even and odd but into four classes according to the remainder of modulo : for odd , ; for a multiple of the coefficient is zero; for even not a multiple of , . In the series written out in full the term in has coefficient and the term in does not appear.

Report a mistake

Where:

Ripetizioni di Analisi

Keep studying

With a free account, you can pick up where you left off and see your progress next time you visit.

Sign up for free

Already have an account? Sign in

Contents