determination of Fourier coefficients


Suppose that the real function f may be presented as sum of the Fourier series:

f⁢(x)=a02+∑m=0∞(am⁢cos⁡m⁢x+bm⁢sin⁡m⁢x) (1)

Therefore, f is periodic with period 2⁢π.  For expressing the Fourier coefficients am and bm with the functionMathworldPlanetmath itself, we first multiply the series (1) by cos⁡n⁢x (n∈ℤ) and integrate from -π to π.  Supposing that we can integrate termwise, we may write

∫-ππf⁢(x)⁢cos⁡n⁢x⁢d⁢x=a02⁢∫-ππcos⁡n⁢x⁢d⁢x+∑m=0∞(am⁢∫-ππcos⁡m⁢x⁢cos⁡n⁢x⁢d⁢x+bm⁢∫-ππsin⁡m⁢x⁢cos⁡n⁢x⁢d⁢x). (2)

When  n=0,  the equation (2) reads

∫-ππf⁢(x)⁢𝑑x=a02⋅2⁢π=π⁢a0, (3)

since in the sum of the right hand side, only the first addend is distinct from zero.

When n is a positive integer, we use the product formulas of the trigonometric identities, getting

∫-ππcos⁡m⁢x⁢cos⁡n⁢x⁢d⁢x=12⁢∫-ππ[cos⁡(m-n)⁢x+cos⁡(m+n)⁢x]⁢𝑑x,
∫-ππsin⁡m⁢x⁢cos⁡n⁢x⁢d⁢x=12⁢∫-ππ[sin⁡(m-n)⁢x+sin⁡(m+n)⁢x]⁢𝑑x.

The latter expression vanishes always, since the sine is an odd functionMathworldPlanetmath.  If  m≠n,  the former equals zero because the antiderivative consists of sine terms which vanish at multiples of π; only in the case  m=n  we obtain from it a non-zero result π.  Then (2) reads

∫-ππf⁢(x)⁢cos⁡n⁢x⁢d⁢x=π⁢an (4)

to which we can include as a special case the equation (3).

By multiplying (1) by sin⁡n⁢x and integrating termwise, one obtains similarly

∫-ππf⁢(x)⁢sin⁡n⁢x⁢d⁢x=π⁢bn. (5)

The equations (4) and (5) imply the formulas

an=1π∫-ππf(x)cosnxdx (n=0, 1, 2,…)

and

bn=1π∫-ππf(x)sinnxdx (n=1, 2, 3,…)

for finding the values of the Fourier coefficients of f.

Title determination of Fourier coefficients
Canonical name DeterminationOfFourierCoefficients
Date of creation 2013-03-22 18:22:47
Last modified on 2013-03-22 18:22:47
Owner pahio (2872)
Last modified by pahio (2872)
Numerical id 7
Author pahio (2872)
Entry type Derivation
Classification msc 26A42
Classification msc 42A16
Synonym calculation of Fourier coefficients
Related topic UniquenessOfFourierExpansion
Related topic FourierSineAndCosineSeries
Related topic OrthogonalityOfChebyshevPolynomials