Testwiki:Reference desk/Archives/Mathematics/2022 January 21

From testwiki
Jump to navigation Jump to search

Template:Error:not substituted

{| width = "100%"

|- ! colspan="3" align="center" | Mathematics desk |- ! width="20%" align="left" | < January 20 ! width="25%" align="center"|<< Dec | January | Feb >> ! width="20%" align="right" |Current desk > |}

Welcome to the Wikipedia Mathematics Reference Desk Archives
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


January 21

Where do Template:Math in Fourier coefficients come from?

Template:Resolved mark

Equantions for Template:Plain link are Template:NumBlk Template:NumBlk I cannot figure out the equations above because of the occurrence of 2P. I guess 2P comes from the Template:Plain link being used for normalizing basis functions cos(2πPnx) and sin(2πPnx). Accroding to this, if I understand correctly, the inner product of cos(2πPnx) with itself is Template:NumBlk where P0. Therefore Template:NumBlk The normalized basis functions are Template:NumBlk So the Fourier coefficients I get should be like the scalar projection of s(x) onto orthonormal basis in Template:EquationNote Template:NumBlk Unluckily, Template:EquationNote is different from Template:EquationNote. Any idea? - Justin545 (talk) 17:02, 21 January 2022 (UTC)

It is not defined symmetrically. So
s(x)=a02+n=1(ancos2πpx+bnsin2πpx)
Ruslik_Zero 20:17, 21 January 2022 (UTC)
I still don't get it. Could you provide further explanation? - Justin545 (talk) 21:22, 21 January 2022 (UTC)
The basis for Fourier analysis of a periodic function is given by the following orthogonality properties of the sine and cosine functions. Let m and n be positive integers. Then
02πsinmxsinnxdx=02πcosmxcosnxdx={0if mn,πif m=n,
02πsinmxcosnxdx=0.
For the sake of simplicity, let us fix the period as 2π. Let function s be given by
s(x)=12a0+m=1(amcosmx+bmsinmx).
Let us also assume the infinite summations converge. Now consider what happens if we multiply s(x) by cosnx, n>0, and integrate over the period:
02πs(x)cosnxdx
=02π(12a0+m=1(amcosmx+bmsinmx))cosnxdx
=02π(12a0cosnx+m=1(amcosmxcosnx+bmsinmxcosnx))dx
=02π12a0cosnxdx+m=1(am02πcosmxcosnxdx+bm02πsinmxcosnxdx)
=πan.
(For the last step, split the summation into the cases m=n and mn and apply the orthogonality formulas.) So, to find the value of an, we need to divide to result of the integral by π, that is, half the period. For bn we have the same story, except that we multiply s(x) by cosnx.  --Lambiam 07:29, 22 January 2022 (UTC)

Thanks guys, in particular Lambiam. The answer for P=2π is understandable and crystal clear. I may try to figure out the term a02 of s(x) and ask for help if I'm stuck again. - Justin545 (talk) 10:23, 22 January 2022 (UTC)

For a0, just integrate s(x) without multiplier – which is equivalent to multiplying it by cos0x.  --Lambiam 14:26, 22 January 2022 (UTC)