How Do You Calculate Fourier Series Coefficients for a Piecewise Function?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
nikki92
Messages
37
Reaction score
0

Homework Statement



x(t) = 4 for 0 <x<1 and 0 otherwise and this process repeats for all values including negative.

find X_0 and X_n

and find the first 6th harmonics of the Fourier series in cosine form

Homework Equations





The Attempt at a Solution



x_0 = 4/3

x_n = (4/3)*exp(-i*n*(pi/3)) *sinc(n/3)

To find the first 6th harmonics in cosine form do I just use the X_n and plug the values in? Do I have to put it literally in cosine instead of sine or do they mean cos/sin form?
 
Physics news on Phys.org
nikki92 said:

Homework Statement



x(t) = 4 for 0 <x<1 and 0 otherwise and this process repeats for all values including negative.

find X_0 and X_n

and find the first 6th harmonics of the Fourier series in cosine form

Homework Equations





The Attempt at a Solution



x_0 = 4/3

x_n = (4/3)*exp(-i*n*(pi/3)) *sinc(n/3)

To find the first 6th harmonics in cosine form do I just use the X_n and plug the values in? Do I have to put it literally in cosine instead of sine or do they mean cos/sin form?
Could you please give us the problem statement exactly as given to you? You seem to be leaving out relevant details, like what the period of x(t) is supposed to be.