Ripetizioni di AnalisiAnalysis 2UnlockedITSearch

Worked examples · Sheet 2

Fourier series of even functions

Theory used: Cosine-only and sine-only seriesFourier coefficientsCoefficients of a trigonometric polynomial

Go to: Exercise 1Exercise 2Exercise 3

Exercise 1

Find the Fourier series of the -periodic extension of , .

x y -10-8-6-4-22468101234 O
y=π2−4πcos⁡xy = \dfrac{\pi}{2} - \dfrac{4}{\pi} \cos x
Triangle wave, the periodic extension of , and the partial sum (dashed)

The absolute value is an even function, therefore the are zero and the series contains only cosines, with the given by twice the integral over , where . The coefficient equals , hence the constant term is , the mean of over one period. For we integrate by parts: the term with is zero and what remains is the integral of , which equals after division by . Therefore is zero for even and equals for odd : the series contains only the cosines of the odd harmonics, with negative sign.

Exercise 2

Find the Fourier series of .

The cosine double-angle formula rewrites as , which is already a trigonometric polynomial. Since the Fourier coefficients of a trigonometric polynomial coincide with its coefficients, no integral needs to be computed: the Fourier series has only the terms and , and it coincides with the function at every point. It is always worth checking whether the given function reduces to a trigonometric polynomial by an identity, before setting up the integrals.

Exercise 3

Find the Fourier series of .

x y -7-5-3-113571 O
y=∣sin⁡x∣y = \left|\sin x\right|y=2π−43πcos⁡(2x)y = \dfrac{2}{\pi} - \dfrac{4}{3 \pi} \cos \left(2 x\right)
has period ; the partial sum (dashed) contains only a cosine of period

The function is even, therefore the are zero; on the sine is nonnegative and the absolute value can be removed. The coefficient equals , hence the mean of the function is . For the the product is transformed into the sum of two sines with the product-to-sum formulas, and each sine is integrated directly; the case must be treated separately because the second term would have a zero denominator, and the direct computation with gives . Since , for odd the numerators vanish and for even both equal ; the sum of the two fractions gives . Only the even harmonics remain in the series, written with : the result reflects the fact that has period , therefore only the cosines of compatible period appear in its expansion.

Contents